emilyjune
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Exclude Term from get the term listThat did it!! It worked perfectly. 🙂 Thank you so much for your help with this solution, much appreciated.
Forum: Fixing WordPress
In reply to: Exclude Term from get the term listSure! Here is the pastebin link with the cooking custom post type template code: http://wordpress.pastebin.com/Qef3NYBT
I’m currently using this code:get_the_terms( $post->ID, 'cooking-category' );successfully…I just want to be able to “exclude a post term” from showing on the custom post type blog page if I don’t want it to show on the page even though I still have it categorized. How can I use the code above still:<?php echo get_the_term_list( $post->ID, 'cooking-category', ' ', ', ', '' ); ?>and just exclude a term if I want to exclude one term from displaying on the page? Thanks again for your help.Forum: Fixing WordPress
In reply to: Exclude Term from get the term listThanks for this 2nd code – it is still doing the same thing as it was earlier. The term is being excluded, but all posts are showing the same terms.
I did notice that the term categories are reflecting the terms I’ve checked in the top (or latest) post. When I changed the term categories for the top post, all the term categories changed to show the same thing….
Thanks.Forum: Fixing WordPress
In reply to: Exclude Term from get the term listThank you so much! While this worked perfectly to exclude a term from the list of terms, when attached to a post, it still displayed all the terms (whether the post was checked with this term or not) and only excluded the term I set in the function. For normal posts, in the past I have used:
<?php the_category(', ') ?>to display only the categories that are associated with a specific post. Is it possible for the wp list categories function to display only the categories that are associated with the post? And not all the taxonomy terms?
Thanks again for your help.