Click here to Skip to main content
15,888,286 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I had to get custom tags, so I used get_tags, it displays as a word array. then I use get_the_term_list() and it works.
So what's the difference between these two functions.

What I have tried:

I use get_tags() function to get a custom tag
Posted
Updated 28-Nov-20 23:37pm

1 solution

get_tags[^] is for retrieving for all posts as an array.

get_the_term_list[^] is for retrieving terms associated with a specific post in a defined list format.

For your use case, seems you need for all tags and thus get_tags would be better option.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900