Questions tagged [get-the-tags]

The tag has no usage guidance.

11 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
1answer
47 views

Related Tags Concept

On search results pages I would like to show a tag list collected from other posts that are listed for the seach result. // same tag should not be listed twice And for the taxonomy pages again; tags ...
0
votes
1answer
16 views

Inserting article:tags meta in html head-element, using get tags, no wp_head

I´m trying to add code to a template file of mine, working with a raw theme I generated from “”. The file is a duplicate of single.php and called single-post.php. Like WP states in Codex. I am trying ...
0
votes
3answers
77 views

Show posts from categories instead of tags

I am trying to change this wordpress function given in my theme to show posts from category instead of tags. But due to wordpress beginner i am unable to do this. Please help me to change this code....
0
votes
0answers
67 views

method to fetch entire tag list on archive.php

What I have Tried → <?php $taginto = get_the_tag_list(); if ( ! empty( $taginto ) ) { echo '<a class="categum" href="' . esc_url( get_tag_link( $taginto[0]->term_id ) ) . '">' ...
0
votes
1answer
22 views

Dynamically getting tags in post edit screen

I am trying to dynamically get the post's tags as the user adds them while editting a post, but I have not found any hook related to that action. I know I can make my own hooks, but the thing is that ...
0
votes
1answer
125 views

Show Tags of Custom Post Type outside of Loop

I have a custom function that someone else here help me build that shows custom post types on my front page. I want to add the tags/tag-links of each post to it, but whenever I reference get_the_tags(...
0
votes
0answers
111 views

get_the_tags function not retrieve all tags for specific category

I use this code below to retrieve all tags from a specific category. The code is working correctly, but only returns three tags in stead of all tags (I assigned six tags for this category). These ...
0
votes
0answers
85 views

Getting Post Tags From Certain Categories

The site I am working on has about 4 different post categories. I need to output a list (unordered) of tags in that category so that a user can click on them and see posts in THAT category tagged with ...
0
votes
1answer
502 views

How to get tags and categories?

I used the following code to get tags from the post and then simply echo them: $posttags = get_the_tags($post->ID); if ($posttags) { foreach($posttags as $tag) { echo $tag->name . ', ';} ...
0
votes
1answer
260 views

Retreive tags from attached post for media on page

I am working on a custom template file that pulls all images in my Media Library with a specific tag. I was able to get this working with some help from the community, it also shows the title of the ...
-1
votes
3answers
1k views

Tags outside the loop

I want to display the tags of the posts in my main page. I used: global $post; the_tags(); But it's only showing up for my FIRST page.