How to limit number of posts in the certain category and exclude the oldest post automatically
How to limit number of posts in the certain category and exclude the oldest post automatically
How to limit number of posts in the certain category and exclude the oldest post automatically
I’ll answer this myself, though kudos to @jacob-peattie for noticing the selection box was non-standard and a likely culprit. So we had the ‘Radio Buttons for Taxonomies’ plugin running (up to date) with the affected taxonomy types selected there. When we removed the taxonomies from there, the problem stopped. But we wanted radio buttons here … Read more
Add new taxonomy in WP without generate any url
Child terms with improper parent in the url should redirect to 404
WordPress taxonomy and terms question
taxonomy change to post/page type
It sounds like you’re looking for get_ancestors(). In your case, something like get_ancestors( $term_id, ‘product_cat’, ‘taxonomy’ ); should get an array of ancestor (parent, grandparent, etc) IDs for a given $term_id.
Add text in custom taxonomy
I’m having some trouble understanding your code. It looks like you’re: Looping over every search result. For each result, getting all tempo terms. For each tempo, querying all posts that belong to that term. Doing nothing with the queried posts. This is all extremely inefficient and doesn’t do anything like what you say you’re trying … Read more
custom taxonomy not return in the code