Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options answers only user 73

Every Post in WordPress is filed under one or more Categories. Categories allow the classification of your Posts into groups and subgroups, thereby aiding viewers in the navigation and use of your site.

1
vote
There are two ways to solve this issue. You need a clean array of category names for both, so let’s start with that: $cat_names = wp_list_pluck( get_the_category(), 'cat_name'); $cat_names is now a …
answered Feb 26 '13 by fuxia
1
vote
You can filter the output on wp_list_categories: add_filter( 'wp_list_categories', function( $html ) { return str_replace( ' current-cat', ' active', $html ); }); If you are stuck with an outda …
answered Feb 9 '14 by fuxia
0
votes
There is an argument walker for wp_dropdown_categories(). It accepts an instance of a custom walker, a class extending Walker_CategoryDropdown or the generic Walker. Let’s create such a class. We hav …
answered Dec 11 '12 by fuxia
2
votes
Look at the code @scribu suggested for a function unregister_taxonomy_from_object_type($taxonomy, $object_type) (the last patch currently). Until the code has found its way into the core, add it to yo …
answered Mar 27 '11 by fuxia
2
votes
This function is declared in wp-admin/includes/taxonomy.php. This file will be loaded in wp-admin/includes/admin.php. And that now is called in wp-admin/admin.php. So the solution is: Use the hook 'a …
answered Dec 30 '12 by fuxia
1
vote
You can filter category_link and replace the URL here. I have used the newest post in the following example, because first could also mean the oldest and that sounds … strange. :) add_filter( 'catego …
answered Apr 21 '13 by fuxia
3
votes
This is probably not possible or it would require some really scary and fragile hacks. Use a custom taxonomy for the news or a custom post type instead. Setting a different permalink structure for the …
answered May 17 '12 by fuxia
3
votes
Hook into publish_post. Check if the post is in the category news. Get all posts with that category: $query = new WP_Query( array( 'category_name' => 'news', 'posts_per_page' …
answered Oct 29 '12 by fuxia
2
votes
Use wp_reset_query() after query_posts(). We have lots of posts on this. ;)
answered Apr 6 '11 by fuxia
1
vote
Categories are meta data for n:n relations: Each category can be related to multiple posts, and each post to multiple categories. So categories aren’t what you need. I would set up a multi site …
answered Feb 12 '12 by fuxia
2
votes
Use term_is_ancestor_of(). That is the function cat_is_ancestor_of() is calling: term_is_ancestor_of( $parent, $child, 'taxonomy_name' );
answered Jun 20 '12 by fuxia
1
vote
There is already a function in WordPress doing that: wp_terms_checklist(). It is used in the metabox for hierarchical taxonomies in the post editor. Maybe you can reuse that? The following is unteste …
answered Apr 20 '13 by fuxia
1
vote
You have to pass the values, not echo them. So something like this should work: $post_cats = get_the_category(); $slugs = wp_list_pluck( $post_cats, 'slug' ); post_class( join( ' ', $slugs );
answered Apr 15 '13 by fuxia
1
vote
Use the plugin Taxonomy Images by @mfields.
answered Aug 23 '11 by fuxia
10
votes
Tags are not hierarchical in WordPress, categories are. That’s the only difference. Sometimes people make up additional differences but I’ve never seen an argument which could stand a semantic …
answered May 24 '11 by fuxia

15 30 50 per page