Method to retrieve category names and IDs only as an array?
Can’t you use wp_dropdown_categories? wp_dropdown_categories(‘show_option_none=Select category&exclude=1,2,3&selected=6’);
Can’t you use wp_dropdown_categories? wp_dropdown_categories(‘show_option_none=Select category&exclude=1,2,3&selected=6’);
I was having a similar error when using a WP_Query as given at https://wordpress.stackexchange.com/a/42334/16898. I replaced the variable name $posts with an arbitrary name $mposts and the error was gone.
You can display attached images as gallery instead of individually.
This is typically called edit in place. Try the Front End Editor plugin.
“Won’t work” doesn’t say much. Use Firebug with Firefox, or in Chrome or Safari or IE8, use the developer tools to check for JS errors on your site. WP3.2 now includes jQuery 1.6 and your jsfiddle example uses 1.4, so there’s a possible conflict.
Many plugins currently available allow you to enable this feature on your site. My favorite is Jetpack Subscriptions for reasons including: Very much up-to-date, well-maintained plugin Emails sent from WordPress.com servers, so there’s absolutely no load on your servers (Make sure you disable all the unnecessary modules activated by default when you activate Jetpack by … Read more
If you look at the Gravatar API you will see that you can call a user specific and specify a default so here a built proof way to get the the image url in your code. $email = $comment->comment_author_email; $size = 60; $rating = get_option(‘avatar_rating’); $default = urlencode( ‘http://www.gravatar.com/avatar/ad516503a11cd5ca435acc9bb6523536?s=” . $size ); $grav_url = “http://www.gravatar.com/avatar/’. … Read more
A simple way to arrange your comments by most recent is to add this to your functions.php file: if (!function_exists(‘custom_reverse_comments’)) { function custom_reverse_comments($comments) { return array_reverse($comments); } } add_filter (‘comments_array’, ‘custom_reverse_comments’);
What is happening is that your theme does not have support for featured image. What you need to do is add in the functions.php file of your theme the line : if (function_exists(‘add_theme_support’)) { add_theme_support( ‘post-thumbnails’ ); } and then you will be able to use featured image in your theme
The child ul comes with the class “children”, so you can use this to target your css. ul.children li { } Even without that, though, you could just use the hierarchy of lists to target.. ul#catList ul li { } would target any li within a ul, within the #catList ID.