Search Results
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 |
A taxonomy is a generic "category" used to organize posts and custom post types
3
votes
Accepted
How to add automatically keyword to taxonomies when a post published, and assign them to the...
the save_post hook, in your hooked function use wp_insert_term as described here:
http://codex.wordpress.org/Function_Reference/wp_insert_term
Then use wp_set_object_terms on the post to assignt he taxonomy … post_id, 'bannanapost', 'fruit', true )
}
add_action('save_post','my_save');
The above code, placed in functions.php of your theme, would add the term 'bannanapost' to each post when saved, in the fruit taxonomy …
0
votes
Using Taxonomy Image code with my get_categories code
As described via the plugins wordpress download page instructions:
$image_id = apply_filters( 'taxonomy-images-queried-term-image-id', $categories_item->term_id );
wp_get_attachment_image( $image_id, … $cat_id);
echo "<ul>";
foreach($catlist as $categories_item)
{
$image_id = apply_filters( 'taxonomy-images-queried-term-image-id', $categories_item->term_id );
print '<li><a href="' . get_category_link …
0
votes
taxonomy terms are not populating select tag options
I believe this has more to do with the ternary operator being used inside of string concatenation.
I would eliminate this issue by relying on a classic if statement, but WordPress provides a helpful …
2
votes
Accepted
How to get all Custom Post Type Filtered by one Specific Taxonomy Term
Specify this when you make your query:
'genre' => 'comedy'
Where genre is the name of your taxonomy ( not the human readable version, but the internal slug ), and comedy is the slug of the term you …
0
votes
Accepted
How to add a taxonomy type in Menus?
Is this because WordPress knows no such thing as a taxonomy archive index page? My understanding is, that is not a thing. … The reason you don't see the page for the taxonomy itself is because there isn't one. you can test this out by taking example.com/taxonomy/term and removing /term, you'll get a 404 or redirected elsewhere …
8
votes
Accepted
How many categories can WordPress handle before performance suffers?
How many categories can WordPress handle before performance suffers?
It depends.. you're not going to find a precise answer, because there are too many variables, ranging from where you host, the …
0
votes
Accepted
update_term_meta not working
A terms slug is not stored as meta/custom fields, and it's definitely not post meta, so update_term_meta and update_post_meta are innapropriate and can never be used to achieve your goal.
The correct …
0
votes
How can I rename custom taxonomy if multiple custom post type have the same taxonomy name?
even with different names, URLs, and semantics, because they all use the name category the database does not distinguish between them, and they are the same taxonomy. … Note that sometimes using a single taxonomy across multiple post types is desirable and useful. …
0
votes
Query top level custom post in taxonomy
The problem is this:
'tax' => array(
There is no tax option in WP_Query so it's ignored. Did you mean to use tax_query?
2
votes
Accepted
How to orderby Taxonomy Term in a WP Query
You can't order by taxonomy terms, the very concept breaks down when you try to handle posts that have multiple terms in a taxonomy. … Instead, keep your taxonomy so that you retain all the performance/theming/Admin UI benefits, but also save the information in post meta so that you can sort. …
7
votes
Accepted
Can a Child Category Have More than One Parent?
Here is the database schema:
As you can see if the same term and taxonomy were referred to multiple times, but with a different parent, perhaps a term can have multiple parents? … Here we have a term in my local copy of my blog:
It has a parent of 4, lets attempt to give it a second parent of 5:
INSERT INTO `tjn2_term_taxonomy` (`term_taxonomy_id`, `term_id`, `taxonomy`, `description …
2
votes
My custom taxonomy page is leading in 404 page
You have to re-save the permalinks when you add or change a custom taxonomy, or a custom post type.
Go to the permalinks settings page, and re-save, then go back and refresh. …
4
votes
Retrieve taxonomies from arbitrary site
how can I retrieve all taxonomy terms for a post in an arbitrary site programmatically? … So we register both taxonomies on both sites, but on A we make tags a hidden private taxonomy, and on B we make categories a hidden private taxonomy. …
2
votes
Invalid Taxonomy
Your taxonomy has the slug "Guide Categories" which is invalid. The first parameter is the name of the taxonomy, not the human readable name of the taxonomy. That gets defined in the labels. … I recommend you generate your taxonomy registration code using this generator:
http://themergency.com/generators/wordpress-custom-taxonomy/
It covers all the options available in a nice step by step …
2
votes
Accepted
Get the most popular terms for a custom post type
To get around this, create another taxonomy, a hidden taxonomy with no GUI. This taxonomy will only be attached to your desired post type. … ){
if($taxonomy == $this->from){
// duplicate to ovum_research_authors taxonomy
//$terms2 = array();
$r = wp_set_object_terms( $object_id, $terms, $this->to, …