Skip to main content
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
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
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 not deleted user 74311

Since WordPress 2.3, plugin and theme authors have had the ability to create custom taxonomies-- essentially specialized "categories"-- to help organize information.

1 vote

modify show UI of a registered taxonomy

you can use this filter which is used inside register_taxonomy add_filter("register_taxonomy_args", function ($register_taxonomy_args, $name, $object_type) { if ("taxonomy" === $name) { …
mmm's user avatar
  • 3,795
1 vote

Display all posts in main category and 1 subcategory

to get the children of the queried object, you can use this code is the file taxonomy-galleries.php $o = get_queried_object(); $children = get_term_children($o->term_id, $o->taxonomy); $children is …
mmm's user avatar
  • 3,795
0 votes

Automatically Add a default category to a Custom Post Type before save_post action

the hooks "save_post..." are called too when a new post is created then you can set default values with that $customPostType = "customTypeCode"; add_action("save_post_$customPostType", function ($p …
mmm's user avatar
  • 3,795
1 vote
Accepted

Remove url rewrites for registered taxonomies

in the args try to add this : "rewrite" => FALSE,
mmm's user avatar
  • 3,795
0 votes

How to set "manage categories" capabilities on a post type taxonomy but not on the general c...

you can just define your own capabilities to use this taxonomie 'manage_terms' => 'manage_terms_TAXONOMIE_NAME', 'edit_terms' => 'edit_terms_TAXONOMIE_NAME', 'delete_t …
mmm's user avatar
  • 3,795
0 votes

Is there a template file to list all terms of a given custom taxonomy?

You can include the same file in template-composers-terms.php and template-interprets-terms.php like that : <?php /* Template Name: List of composers */ $tax = "composer"; require "include/file_whi …
mmm's user avatar
  • 3,795
0 votes
Accepted

multiple taxonomy select display only one in front end

add a loop to display all taxonomy : if (2 > count($locations)) { echo '<strong>Location:</strong> '.$locations[0]->name.'<br>'; } else { echo "<strong>Location:</strong>"; echo "<ul>" …
mmm's user avatar
  • 3,795