Tagged Questions
0
votes
1answer
49 views
Changing taxonomy term by slug (wp_update_term)
What I am trying to accomplish is to update a taxonomy term name using its slug rather than the $term_id
Wordpress does this by:
<?php wp_update_term( $term_id, $taxonomy, $args ) ?>
Is it ...
0
votes
0answers
63 views
How to pass the term slug to the ajax function as a parameter [closed]
this is the original code of the script
var $mainCat=$('#main_cat').val();
and i replaced it with this
var $mainCat=$('#<how to pass the slug here>').val();
echo '<ul>';
foreach ...
0
votes
1answer
169 views
Does WordPress limit the length of slug names for Post Meta or Terms?
The WordPress Codex states the the Post Type Names and Taxonomy Names have a limit to the slug name.
Register Post Type -- max. 20 characters, can not contain
capital letters or spaces
Register ...
1
vote
1answer
223 views
How to edit/remove a term that's in multiple taxonomies?
Some of the terms on my site appear with the same exact slug, in multiple taxonomies.
For example: 'education' appears in both the 'department' taxonomy and the 'topic' taxonomy.
Now, I can't seem ...
2
votes
1answer
301 views
Why does WP rename similar “term name”-slugs in separate taxonomies?
I have several custom taxonomies and within two of those ( Company Categories and Photographer Categories ) I have a term that is similar. The Company Category called Boudoir and the Photographer ...
4
votes
1answer
5k views
How to get a taxonomy term name by the slug?
If I know a taxonomy term slug, how can I get that term's name?