Linked Questions

16 votes
2 answers

List all sidebar names?

I'm listing all sidebars like that: global $wp_registered_sidebars; echo '<pre>'; print_r($wp_registered_sidebars); echo '</pre>' So I'm getting something like: Array ( [sidebar-1]...
Wordpressor's user avatar
  • 5,041
14 votes
6 answers

No Error Log File, no debug info

My error when writing a plugin for uploads and yes, I can debug. But it just jumps directly from this line to destruct the end of my wp-config.php EDIT: // Enable WP_DEBUG mode define('WP_DEBUG', ...
Toskan's user avatar
  • 514
0 votes
3 answers

Pagination that includes "view all on one page"

I'm using the code below to create pagination for my post results, it works fine but is it possible to add a "view all posts on one page" button to the pagination? This would presumably override ...
maikunari's user avatar
  • 165
1 vote
2 answers

how to get all post with the same post meta?

some of my posts have the post meta of "project_id". How can I retrive all the posts which have the meta key of "project_id" ? I tried: $meta_key = 'project_id'; return $wpdb->get_var($wpdb->...
Jenny's user avatar
  • 1,757
1 vote
3 answers

Custom URl parameter

i have Wp blog that need to receive a custom paramter on category page for filter the posts like my rule. For example: How can I get the myvar from URL?...
Marcomar's user avatar
0 votes
1 answer

Different Menus based on Category Page

I was trying to set up different menus based on what category "page" you were on using the built in Wordpress menu editor. In my header file I set up: <?php if (is_home()) { $menu = 'home'...
Louis Stephens's user avatar
0 votes
1 answer

Wordpress 3.1.2 Bug: add_theme_support() and video post format registering twice

Ive been experiencing a problem with the new WordPress 3.1.2 update. When i use add_theme_support(); and register an array of post formats, it registers all of them fine, but when it comes to the ...
VicePrez's user avatar
  • 678
-2 votes
1 answer

Can't manage to display an uploaded picture (uploaded from a custom button) in the front end

I followed this tutorial in order too add a custom upload button in the Wordpress admin. It displays the picture you just uploaded right after saving: The problem is that I can't manage to display ...
wyc's user avatar
  • 3,867
1 vote
1 answer

Truncating varying lengths of information

I was helped not long ago with a form of custom truncating by Toscho on this post it works very well but I'm finding that I need to create multiple length variations for different bits of content. For ...
Zach Shallbetter's user avatar
0 votes
1 answer

How-to inspect filter-able $vars?

Note: This is more of a tutorial/wiki than a real question and should be a reference for later Questions. If you got something to add, please feel free to add an answer. Working answers get upvoted. :)...