wordpress

WordPress register_nav_menu suddenly stopped working locally

Ok, this is a biggie. Here's the deal: I have upwards of 50 installs of WordPress running on MAMP Pro locally. For some of them I use local/whatever, for others I set up virtual hosts as whatever.local/. WordPress has never had any problems. Yesterday, installed a copy of WP 3.0.1 (fresh, straight off the server), and started templating...

Set Wordpress Post Subcategory to Variable

Hi all, In the situation that I am viewing a wordpress post, I'd like to be able to identify only the subcategory that the post is in and set that subcategory as a variable. I can't seem to find any easy way to do this. Can anyone help? Example: I'm viewing a baseball blog post under a sports category - but I want to only set the subca...

wordpress plugin inserted into a post

Hello i have installed the wp e-commerce plugin for wordpress but when i go to the products page its as if the plugin is installed within a post like you would write on a blog. Above my products page it geves me a categorie like in a blogpost and it also says "reactions disabled" like in a blogpost. Anyone who knows why this is like that...

Commenting systems: loading different comment threads through callbacks

I'm looking for a commenting system with a specific feature, and I wondered if anyone could advise. I want to be able to load different comment threads without reloading the entire page, via JavaScript callbacks. That means I need a commenting system that allows multiple comment threads to be associated with the same URL, with threads d...

wordpress pagination by year

Somebody answer me if you know how I do paging per year? Like pagenavi plugin, but instead of displaying the pagination links like: 1 2 3 4 >> exhibit: 2010 2009 2008 2007 >> ...

wp-super-cache, reload from php

Is it possible to reload (or delete) the wp-super-cache from a php script? Is there a specific function for that? ...

Wordpress ads plugin

I have a wordpress blog set up for someone I know and they want to be able to show affiliate ads on this blog, I have no idea what kind of ads etc so was just wondering what the best wordpress plugin would be for this? Thanks ...

wordpress custom peramlink problem, not opening 2nd page of same post

Hi, I am running article-stack During the testing if found that after updating to wordpress 3.0 i am not able to open 2nd page or other pages of same post. Just visit article-stack.com/education/programming/how-to-handle-runtime-exception-in-db2.amty/2 Above link will automatically redirect you to its first page ie article-stack.com/e...

Wordpress show link of parent and child pages

Hi There, I am building a wordpress site and in the sidebar I wanting to show the sub nav of the section the user in, so I would like to show something like if they were on the about page, About Links Useful Contacts However at the moment I have only managed to the child pages out (Links, Useful Contacts), how would I show th...

Wordpress get option:selected value

Build a quick plugin that makes use of dropdown menus in some instances. Is there a wordpress correct way in recalling option:selected values? ...

Including WYSIWYG Editor in Plugin Admin Settings Page?

How would I include a WYSIWYG editor on the admin settings page as opposed to a standard text area? Thanks. ...

How to play an asx into wordpress sidebar?

I'm searching for a widget that can play an asx file into wordpress sidebar. If this widget exists, where can i find it? ...

Drupal Content Manger module that approve content, Track changes....

Hello Guys, I know for a fact that Drupal is a content management software. What I would like to know is, is their any module in drupal that does content management? Like approving a submitted contents, post or comments, Track changes and so on and so forth. If you visit this site http://www.formstack.com/forms/envato-tuts_net_content_s...

enable wpautop filter on single posts only

I've added the following to my wordpress themes functions.php file: //disable wpautop filter remove_filter ('the_content', 'wpautop'); remove_filter ('the_excerpt', 'wpautop'); Which strips out all those pesky <p> </p> tags wordpress wraps around everything! However, I was wondering if there was a way to do this ONLY on non-single pa...

disaply child category in single post (wordpresss)

hi i am trying to create a blog and a portfolio (both in one) wordpress theme im using categories for my posts (as many other blogs). i am using one category named portfolio, so that i can distinguish all my portfolio post from the blog posts. when use click on one of the portfolio post they go to a page, where they get some picture...

Add menu counter to Wordpress plugin

Hi, I'm developing a Wordpress plugin and I need to have a menu counter as the ones present in "comments" or "plugins" menu (i.e. 'Comments [10]', 10 is the "awaiting moderation" comments). I use this code to have new menu in wp-admin: add_menu_page('MyMenu', 'MyMenu', 8, 'mymenu_func', 'mymenu_func', 'mymenu_icon.png'); Anyone can ...

Toggle Posts in wordpress using jquery

I am trying to do something I have not seen before in wordpress. Basically, when you arrive at the blog, a title, thumbnail and an excerpt is displayed. When a toggle button is pushed, the post should slide down to reveal the content. (<?php the_content(); ?>) Here is my Jquery: $(document).ready(function() { $('span.play a')...

Can you test the_content() in wordpress for img tags?

I would like to make an if statement that tests if a post has images in them. If they do I want them to do one thing and if not I want them to do something else. Can someone guide me in the right direction? ...

Wordpress Plugin and Jquery

I am trying to create a gallery through a plugin I am making but am getting a javascript error and cant figure out why. Below is my code any help would be greatly appreciated. Here is where I have implemented it. http://findlegalanswers.com/?page_id=4 <?php /* Plugin Name: iPad and iPhone Swipe Gallery Version: 1.0 Plugin URI: http://ww...

Is there an easy way to import Drupal Advance Forum to BuddyPress forum?

I want to migrate my Drupal community to Wordpress + Buddypress. After struggling for a while I was able import Drupal blog to Wordpress but I also want to import Drupal forum to BuddyPress forum. Is there any easy way for that? Thanks. ...