Tagged Questions
1
vote
0answers
66 views
get_terms not returning any custom taxonomies
I have a custom post type called project with custom taxonomy called tagportfolio
I use this code to generate both:
add_action('init', 'project_custom_init');
/*-- Custom Post Init Begin --*/
...
0
votes
1answer
44 views
Running a function only once when a taxonomy term is changed
Probably quite a simple problem.. I have a custom post type with taxonomy terms. I wish to run a function from my functions.php whenever the admin ticks a specific term box.
My original thought was ...
1
vote
2answers
116 views
Check if term is in a taxonomy?
Is there a function that does something like:
is_in_taxonomy($term, $taxonomy)
Where it returns true if $taxonomy has that $term. ????
Thanks!
1
vote
0answers
183 views
Why is my 'list_terms_exclusions' filter function timing out? [closed]
Why is my function timing out?
When the issue was first noticed I added wp_defer_term_counting('true') to delay that process but to no avail.
/* Filter category from get_categories and ...
0
votes
1answer
627 views
get_term_by not working when in functions.php
I have an odd issue with get_term_by(). It's working fine when I use it inside a template, but when I use it in functions.php it just returns false.
$term = get_term_by('slug', 'some-term', ...
2
votes
1answer
1k views
Formating the_terms() function output
This code:
<?php the_terms($post->ID, 'type') ?>
Gives:
<a href="/archives/type/image" rel="tag">Tag</a>
What do to if I want to display only "Tag" word, not link eg.
Tag
...