Questions tagged [taxonomy-terms]

Terms are usually associated to custom taxonomies in Wordpress

Use this tag if you mean terms used for custom taxonomies in Wordpress

486 questions
0
votes
1 answer

Lookup posts by multiple values of a custom taxonomy

I have a custom taxonomy named Country. The values include individual country names as well as an 'International' field that is supposed to represent all countries. This is how it is supposed to work. If I lookup by the value 'International' it…
redGREENblue
  • 3,076
  • 8
  • 39
  • 57
0
votes
2 answers

Is it possible to sort terms by get_term_meta in wordpress

Lets see an example of my args: $args = array( 'orderby' . => $orderby, 'number' => $per_page, 'offset' => $offset, 'exclude' => array(), 'exclude_tree' => array(), 'include' =>…
user5247236
0
votes
1 answer

Show category by latest post date

I am working in a project where I am using below code to limit number of posts in each category. But I can't figure out how to sort these categories by latest posts. My code is working fine but when I add argument in wp query array, it does not sort…
Kxplorer
  • 28
  • 8
0
votes
1 answer

get posts within get_terms loop

I have a basic loop set up to display all terms in a custom taxonomy. 'name', 'hide_empty' => 0, ) ); foreach ( $workshops as $workshop ) { ?>

user1050887
  • 195
  • 3
  • 13

0
votes
1 answer

Get posts from a taxonomy inside a post as links but not get the current post as link in Wordpress

The Explanation I have Custom Post Type called Books, with a Taxonomy called book_series, I want to get all the other posts under this series as links Book Title but the current book as not a link. More Explanation: I have a single-books.php page to…
0
votes
2 answers

Wordpress: get_terms() not returning anything even if terms have objects

Normal behaviour of get_terms is not to return terms if there are no posts assigned to. But this is not the case, I can see terms assigned in admin and also checked the database and all seems fine. Also check this code: $p = get_post(5018); //…
Luca Reghellin
  • 7,426
  • 12
  • 73
  • 118
0
votes
1 answer

WP: import custom fields for taxonomy term

I'm trying to import some terms for custom taxonomies. Those terms have custom fields(added with ACF). I know I can insert terms with: wp_insert_term( $term, $taxonomy, $args = array() ); I can't add values for the custom fields though. Is there…
Luc
  • 1,765
  • 5
  • 24
  • 44
0
votes
1 answer

Wordpress - Single taxonomy term to link to category of term

Im currently displaying the custom taxonomy term for my post on a single-resources.php page. However I need it to link to the taxonomy category page and not the link of the page. This is what I currently have:
probablybest
  • 1,403
  • 2
  • 24
  • 47
0
votes
1 answer

Use meta value as taxonomy term in Wordpress query

I need to dynamically change the taxonomy term using custom meta. Below is where I've been starting from... makes sense to me but doesn't work. ID, blr_queryslug, true ); $args = array( 'posts_per_page' =>…
Beau
  • 1
  • 2
0
votes
1 answer

Geting post information by taxonomy term name

How can i get post id from taxonomy term name? Taxonomy is : post_tag post_type is : videos and i have the term name to use to get posts i tried $args = query_posts(array( 'post_type' => 'videos', array( 'taxonomy' =>…
Shakavkav
  • 151
  • 1
  • 2
  • 11
0
votes
1 answer

How do I display posts from tagchildren of taxonomy tagparent

Firstly, I'm trying to display all tags from a taxonomy called 'group'. However, this taxonomy currently contains two tags, from which one of of them has multiple tagchildren. Update: I should have mentioned it was for a particular post type. I'd…
digifrog
  • 77
  • 12
0
votes
2 answers

List posts from taxonomy term

I need to display posts assigned to taxonomy term. I can do it manually with no problem but I would like to have a loop to automaticall display posts from each taxonomy term so when user adds new term the posts from that term are displayed on the…
user2186701
  • 31
  • 1
  • 7
0
votes
1 answer

Add a DropDown Taxonomy Filter on Archive Page

I need to add a taxonomy dropdwon filter in archive page so that I can display the posts assigned to selected taxonomy. Here is the HTML Output for taxonomies:
0
votes
2 answers

How to add a product category in woocommerce wordpress

I really hope someone can help me with this problem asap. Ok so I am building a costum script for users to publish a new product, I have everything working and inserting successfully (Event the photo) but just cant seem to find anywhere what code…
0
votes
1 answer

Get Wordpress Custom Post Taxonomy Description for each term

I'm trying to show the Taxonomy description for Wordpress Woothemes widget "Brands Thumbnail". The code here returns a random term (i.e. 1 random brand) but I would also like it to include that random brands description along side it. Preferably…
KingLouie
  • 399
  • 1
  • 5
  • 13