What method should I use to store my plugin data (multi level menus with options on each item)
What method should I use to store my plugin data (multi level menus with options on each item)
What method should I use to store my plugin data (multi level menus with options on each item)
You can do this by using the category taxonomy for your stock symbols, then in permalink settings you would select the custom permalink structure with /%category%/ to get your url of AAPL/article-title.. Then you could use tags for mentioned stocks so you can tag the article with AAPL, GOOG, etc.. You don’t even need to … Read more
How to use tax_query other than by slug or id or solve custom taxonomy tags conflicts with pre-existing tags?
Since individual entries in taxonomies are terms, the template tag for displaying them, used between the_title() and the_content() hint-hint, would be the_terms() 🙂
There is no way to make the tag of a private post showed up by default, at least for now. I was hoping wp_tag_cloud be the answer but it isn’t. One alternative aside from hacking the core code is to create your own widget through plugin. But then I found a plugin that does exactly … Read more
If you’re on a taxonomy term archive page, you can access the current ID via get_queried_object_id(): echo function xyz( get_queried_object_id(), ‘product_cat’ ); You can also access the whole term object with get_queried_object(): $this_term = get_queried_object(); echo $this_term->term_id; echo $this_term->name; echo $this_term->description; echo $this_term->taxonomy; echo $this_term->parent; echo $this_term->count;
I found my own answer. Not sure why this different code works, but it does: <h4>Skills</h4> <?php $terms = wp_get_post_terms($post->ID, ‘skill’); $count = count($terms); if ( $count > 0 ) { foreach ( $terms as $term ) { echo ‘~ ‘ . $term->name . “<br /> “; } } ?>
Query Distinct Taxonomies of Custom Post Type
WordPress bool(false) means taxonomy compare not working [duplicate]
Resetting permalinks, as per this thread, fixed this problem. Visit Settings -> Permalinks -> Save current settings