Articles of custom taxonomy

On Taxonomy Template page, want to add Post_Type

I have a custom taxonomy template page in my theme. Essentially, when someone clicks on a term link into this taxonomy, I -ALWAYS- want to add a specific post-type to the query. I’m not entirely sure how to do this, I’ve found some functions that are included in PHP 5.3 that seem like they might […]

Use the_taxonomies() to create a simple list

I’m trying to create <div class=”cat-hidden categories”></div> where categories is a list of the categories the current post is posted in. When just using the_taxonomies(), it outputs something like this: <div class=”cat-hidden Job Type: &lt;a href=’’&gt;Early-Career&lt;/a&gt;, &lt;a href=’’&gt;Internship&lt;/a&gt;, &lt;a href=’’&gt;Other&lt;/a&gt;, and &lt;a href=’’&gt;Web Development/IT&lt;/a&gt;.”></div>` Whereas I want it to output something similar to this: <div […]

Display an image instead of tag name?

i’m currently using this code to display a custom tag: <?php echo get_the_term_list( $post->ID, ‘region’, ‘Region: ‘, ‘, ‘, ‘<br>’ ); ?> The output of this looks like this: Region: USA What i want to do is display a flag instead of the words USA, EUR, JPN, etc like so: Region: What’s the easiest way […]

Displaying ACF image field

I’m trying to display a list of all my custom taxonomy terms with an image field that I have created in ACF. The ACF image field I have is <img src=”<?php the_field(‘brochure_logo’); ?>”>, but how can I display that image in my code below? I have left a gap where the field needs to go, […]

get_terms() returns an empty array

I’ve read all the posts about displaying terms of a custom taxonomy and it’s still not working. Ok, so here’s the code: <?php //part of template-offer.php $taxonomy = ‘brand’; $term_args=array( ‘hide_empty’ => false, ‘orderby’ => ‘name’, ‘order’ => ‘ASC’ ); $tax_terms = get_terms($taxonomy,$term_args); echo $tax_terms; ?> And on the output I’m only getting an empty […]

Get custom field values of taxonomy terms

I added a Custom Field named ‘cognome_nome’ in my Custom Taxonomy named ‘authors’. I would like to display in a Archive Page a list of all ‘cognome_nome’ values of the terms. Examples: 1.term Name: Elena P slug: elena_p cognome_nome: P Elena 2.term Name: Andrea P slug: andrea_p cognome_nome: P Andrea I would like to display: […]

Taxonomies in URL

I have a custom post type and two custom taxonomies associated with it. One is locations and the other is activities. How can I form the permalinks in the following format? Therefore the first one would be the location taxonomy and second would be the activity taxonomy?

Count number of post in Taxonomy?

wp_count_terms() counts the number of terms in a taxonomy but not the number of post that have those terms and I’ve found that wp_count_post() does not accept a taxonomy. So whats a guy gotta do to count the number of post in a taxonomy term? Example: Term: Apples Post: 89 (this is what I want […]

Many to Many Taxonomies or rewrite rules?

Im developing a theme for article directory and i would like to link some way taxonomies to taxonomies. I had a custom post type called “company” with 2 taxnomies Taxonomy #1 is category with terms(shops,workshops,churchs,shoppings,etc) Taxonomy #2 is location with terms(New York, New jersey,Miami, etc) With taxonomy #1 i can do to list all […]

Which template name to use for taxonomies but not their terms?

I can’t figure out which template name to use to modify custom taxonomy archive page, but not the one for terms in that taxonomy. My goal is to show terms list in custom taxonomy archive and in custom taxonomy terms – custom post types.. {taxonomy}-{term}.php is used to display custom taxonomy terms ( so there […]