The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
2answers
25 views

list of tags overlay

I have an overlay of project's tags, and I want to display them like a list and NOT with a coma like it appears bellow, in the attachment. Here is the code : <p class="nom"> <?php echo ...
0
votes
1answer
39 views

get_the_term_list give me a whitespace

I'm using this code to get my term list, It works fine, but it also give me a white space before my TERM name, Any thoughts? <span class="metaorange"><?php $terms_as_text = strip_tags( ...
0
votes
1answer
31 views

How to get this value inside RETURN

I'm doing something new & unexpected tonight with a lot of errors, and I have asked a lot of stupid questions tonight, so I promise this is the last one :) In last post, I received an answer that ...
0
votes
1answer
41 views

How to list Custom Taxonomy

I have a WordPress taxonomy, and I was wondering if there's anyway to list the taxonomy like: <ul id="portfolioFilter"> <li class="filter" ...
1
vote
1answer
67 views

List custom taxonomy terms from custom field

I am trying to output a list of terms associated with a custom taxonomy for each image I am pulling from a custom field, like so: $portfolio_images = get_field('portfolio_gallery'); Each image has ...
0
votes
1answer
33 views

Custom taxonomy list in two columns

I am using this to get taxonomy list. For each post, there are more than 20 terms. How can I get them in two columns. echo '<ul>'; echo strip_tags( get_the_term_list( $post->ID, 'trade', ...
-1
votes
1answer
292 views

Sorting Attributes order when using get_the_terms

This code has worked to display product attributes on a page. How do I sort/order them by slug? They are currently sorted by name. global $post; $terms = get_the_terms( $post->ID, 'pa_size'); ...
0
votes
2answers
137 views

How to add class on term link?

I am looking for a way to add tag slug as a class. I can't figure out how to achieve this... Here is how I display the products tags <?php echo get_the_term_list( $post->id, 'product_tag'); ...
1
vote
1answer
65 views

Can I use a Custom Meta Value inside of 'get_the_terms'?

I have a custom Page Template, and this is the code that I am trying to manipulate to change depending on a custom meta value that I write for specific Pages. $terms = get_the_terms($post->id, ...
0
votes
0answers
148 views

Get only last child category link of products

At the moment i have this code: $collections = get_the_terms( $post->ID, 'product_cat' ); foreach( $collections as $collection ) { $link = get_bloginfo( 'url' ) . '/' . $collection->slug . ...
1
vote
0answers
48 views

get_the_term_list - Return links to edit.php instead of link to taxonomy archive template

I would like to use get_the_term_list or another function if it exists to return links to the posts of the appropriate term (which has been clicked) on edit.php instead of returning links to posts of ...
1
vote
1answer
119 views

PHP Code to Display Term URL & Name of a Post Under a Custom Post Type

I am featuring a post in my footer(outside the loop) from a custom post type and am using Advanced Custom Fields plugin to do so. This is the code I am using: <h5>Featured Movie</h5> ...
0
votes
1answer
136 views

get_the_term_list() display in ul li and remove <a> tag

I want to remove tag in get_the_term_list() <?php echo '<ul class="styles">'; echo get_the_term_list( $post->ID, 'portfolioType', '<li>', ',</li><li>', '</li>' ...
0
votes
0answers
122 views

get_the_term_list & url

I have 2 custom post type and i want to link them together with an url from the first one and a image from the second one. I can get the title and the url of my taxonomy like that : ( CPT = ...
0
votes
1answer
254 views

Display term description on hover using get_the_term_list

I have a custom taxonomy called services. Each service term will have a description. I am using get_the_term_list to show all the terms attached to each post. When hovering over the term link in the ...
0
votes
1answer
915 views

Allow user to set custom order to a list of custom taxonomies?

I have a custom category checkbox on each individual bio attorney page that shows what practice areas these attorneys are involved in. Currently I have them sorting alphabetically. I am wondering if ...
2
votes
2answers
1k views

Get the Term List - Ordering

I have a country taxonomy with children taxonomies > state & city. For a given entry for a restaurant in Nantucket, I want it to say "Nantucket, Massachusetts, United States (each linked to ...
0
votes
1answer
446 views

Get_the_term_list inexplicably adds values in foreach

I'm trying to get three values from all my custom posts, to populate a Google Map with the places where I've been. All is going fairly well, except for an issue I'm having with get_the_term_list. For ...
0
votes
1answer
3k views

Display Child Categories of Current Post ID

I'm starting to love this place more and more, super helpful! Anyway, todays dilemma is as such: I want to display as a list the child terms only, of a specific parent term, of a custom taxonomy, ...
1
vote
6answers
3k views

How do I list custom taxonomy terms without the links?

I've searched far and wide to try and find an answer to my question. I'm hoping I can get help here. Here goes... I'm currently retrieving the terms of my custom taxonomy using: <?php echo ...
0
votes
1answer
637 views

get_the_term_list() wanting to loop through the returned values

I have a custom post type, I am echoing out my custom taxonomies in my template by doing the following, get_the_term_list( get_the_ID(), 'work', '<li>', "", '</li>') , this currently ...
0
votes
1answer
125 views

How to create a list of terms who's posts also have a predefined external term?

I have a pretty extensive music collection and my friends are always borrowing my stuff. I would like to keep better track of my library so I'm building a sudo-checkout system using WP. The ...
0
votes
1answer
803 views

Displaying my custom taxonomies in a <ul> using the_term_list()

I need help with displaying my custom taxonomies in a ul using the_term_list(). I can get it to list all the terms I want, but I need them in an unordered list, rather than just a list of links ...
1
vote
2answers
470 views

get_terms problem : related articles

I'm trying to use get_the_term_list to catch the name of the current taxonomy of the page, and then use it with get_terms and a foreach method, to show the result of all the "elements" from the same ...
3
votes
4answers
9k views

get_the_term_list without links in 3.1

What function will display custom taxonomies associated with a post as text? I'm currently using get_the_term_list which works great for a singular page but not so much when using a taxonomy in the ...
5
votes
3answers
4k views

Change order of Custom Taxonomy List

By default WordPress orders custom taxonomies (as tags in this case) by alphabetical order not by the order they were entered in the tag box. Is anyone aware of a way to show the custom taxonomies in ...