Skip to main content

Questions tagged [tags]

The built-in taxonomy 'post_tag'.

Filter by
Sorted by
Tagged with
1 vote
2 answers
15 views

How to display posts from a specific tag in the current category on a single page

I am trying to get all posts with a specific tag from the current category on a single page. However, my code is showing posts from the main category instead of the current subcategory. Let me explain:...
pagol's user avatar
  • 203
0 votes
1 answer
39 views

How to add 'nofollow' flag to all Tag archive hyperlinks?

As we are noindexing all the Tag archives, this sometimes creates a lot of warnings in the Google GSC panel because the Google bot tries to follow the Tag hyperlinks and sees the noindex meta tag, and ...
Jesse Nickles's user avatar
0 votes
1 answer
42 views

How to Display Posts on a Tag Archive Page Based on Custom Field(term meta) Values in WordPress?

I am not sure whether this is possible with the current architecture of WordPress, but I think there should be a way. I have a WordPress site with around 11,000 posts and have recently added about 60 ...
Ranuka's user avatar
  • 1,794
0 votes
1 answer
20 views

Insert Tag in WordPress Post

I have below code. $args = array( 'post_title' => $this->h1, 'post_content' => $this->profile_text, 'post_status' => 'publish', 'post_type' => 'post', '...
Foysal's user avatar
  • 445
0 votes
0 answers
11 views

Getting checkboxes for some tags in a search box

I'd like to modify the following $array = array( 210 => array( 'id' => '210', 'name' => 'animali permessi su richiesta' ), 216 => array( 'id' => '216', 'name' => 'aria ...
Andrea Sacconi's user avatar
0 votes
1 answer
435 views

ACF - Tags not showing up in Custom Post Types

I have a tags taxonomy and then I've added it to my CPT, however it does not give me the option to add tags to my CPT now. How do I get it to do that?
user3382763's user avatar
0 votes
0 answers
27 views

wp_tag_cloud: list only general tags associated with a custom taxonomy tag

I have a custom taxonomy called, for example, "colour". And I have normal tags. I use them both on posts. So, for a specific tag cloud I'm building, I want it to list all taxonomies that are ...
Nicodemus's user avatar
0 votes
1 answer
34 views

Search only by post_tags

Is it possible to search only by post_tags? If the tag is not found, no result is displayed. Any modifications to functions.php or premium plugin? I tried using WordPress Extended Search, but it ...
Adde's user avatar
  • 1
0 votes
2 answers
38 views

Count post with tags within one category?

I have a code that counts how many posts I have in with certain tags, is it possible to add the functions to count how many posts I have with a certain tag that's in a particularly category called &...
Adam Larsson's user avatar
1 vote
2 answers
121 views

How to run this plugin every time a post is saved?

So far this is what I have... I'm new to developing plugins so I'm not sure how to make a plugin run code on a post save. I know that this would likely work if it was added to the post.php page but I ...
Cody King's user avatar
1 vote
1 answer
69 views

search filter for search and tag page doesn't work

Here is my search function in functions.php function search_filter($query) { if ( ! is_admin() && $query->is_main_query() ) { if ( ($query->is_tag() ) || ( $query-> ...
made leod's user avatar
0 votes
1 answer
97 views

Only an admin can add new tags

Hello, How can I restrict the addition of new tags for users who are not administrators in Posts -> Tags?
user59's user avatar
  • 1
2 votes
2 answers
61 views

Search for portfolio tags & mixing portfoliotags and post tags

I have been trying to filter my search result without success. Here is my function in functions.php I want to retrieve only post and portfolio posts (no pages). Below is the code I found on your ...
made leod's user avatar
0 votes
0 answers
28 views

Wordpress blog post tags in 2 rows

In the WordPress theme I use, I can usually add 5-6 tags in one blog post. If I add more tags (7, 8, etc...), the tags continue to go under the sidebar, and don't make a second row (what usually the ...
DeeJay's user avatar
  • 1
0 votes
0 answers
27 views

Category and tags are not working properly

When click on cateory or tag they diplaying all posts in the every category but every categpry have different posts.Please help how to fix this. Using Blockkit Corporate Theme
Naeem Khan's user avatar
0 votes
0 answers
30 views

Add tags to blog-posts by php-script

I currently have a different blog software where the blog-post-keywords are in the database record of the blog post. So title, content and keywords are one record, not like in WordPress where each tag ...
Fabian's user avatar
  • 1
0 votes
0 answers
36 views

How to change product title color in shop page if product has specific product tag (Woocommerce)?

How to make Woocommerce automatically change product title color for shop page if product has specific product tag (Woocommerce)? Example: if products have tag "banana" or "melon", ...
null's user avatar
  • 1
0 votes
0 answers
13 views

Wordpress tag hyperlink creation in the content when a post is saved

I am managing one website. When I create a post i will enter tag keywords in tag section of post in WordPress. When i save the post I need php/javascript function to get the current post’s tags and ...
user3365200's user avatar
0 votes
1 answer
66 views

Tag template for Custom Post Types

I have setup a Custom Post Type called 'Sports Clubs'. These use tags. I need a page to display a list of posts associated with the various tags. I'm currently doing this for standard posts via the ...
Gareth Roberts's user avatar
1 vote
1 answer
269 views

disable adding new tags on the edit and add post

I use the admin menu editor plugin. I have not allowed editors and authors to access the tags section But they can add a new tag in the post edit section This is not good for our site We want them to ...
Ali Kiani's user avatar
0 votes
1 answer
31 views

Wordpress converting ' to ’ and - to –?

When I create a post (or whatever) in wordpress if i type - wordpress converts it to – on site for public users. as you can see left one is bigger than right one (i added right to just show what i ...
Maria's user avatar
  • 1
0 votes
0 answers
198 views

REST API not returning all tags - is there a way to return all tags even ones that are not part of published posts?

I am using the REST API to upload posts and I include tags with them. I get existing tags and check them to ensure I am not trying to upload a duplicate tag. However, the new posts are uploaded in ...
MattE's user avatar
  • 101
0 votes
2 answers
330 views

Error while add Category or Tag in Wordpress

When I want to create a new category or tag on the Wordpress site. I encountered this error. Empty Term. As usual, My theme and Plugins are updated. I disabled all plugins. The error was not resolved. ...
Pouya Zehfroush's user avatar
0 votes
1 answer
352 views

Adding tag slug to post permalink

I'm trying to create a permalink structure for regular posts that looks something like this: /category-name/tag-name/post-name I've been using an AI friend that insists I simply use custom ...
LexGear's user avatar
0 votes
2 answers
137 views

Adding support for Post Tags to a CPT added by a plugin

I have a plugin that adds a CPT, but it does not support Tags (normal post tags), which I need it to. SO what I need is a code snippet to add to my Child Theme's functions.php so that as the plugin ...
Trisha's user avatar
  • 428
4 votes
1 answer
678 views

Get related posts matching most of the provided tags using WP_Query

I need help in getting related posts using multiple tags. I have posts with the tags poetry, motivational, attitude, rules, lines, sigma and inspirations. I want related posts matching most of these ...
Ghost's user avatar
  • 43
1 vote
0 answers
115 views

Enable Gutenberg Editor when editing tags

My content creators love the Gutenberg editor in Wordpress. However, they now want to write extensive descriptions for the tag pages for SEO reasons, and WordPress only offers the old default editor, ...
Sorcy's user avatar
  • 145
0 votes
2 answers
640 views

How to get a list of pages (not posts) with specific tags?

I am using the Pages with category and tag plugin to assign tags and categories to pages. And now I would like to retrieve a list of items with specific tags associated with a page and can’t seem to ...
Giacomo1968's user avatar
0 votes
1 answer
73 views

Real estate schema markup not showing up on Rich Results test

I am not very techy, but I am trying to add schema markup to real estate listings automatically. The site is built using MyHome theme. Here is an example of a listing that I want to add schema markup ...
3vanse's user avatar
  • 13
0 votes
0 answers
45 views

Custom Titles for Multiple Tag Taxonomy Page

Let me explain what I want to achieve. Normally WordPress allows "filtering" tags with multiple tags. It goes like this: https://example.com/tag/tag1+tag2 It's useful when tag1 has a lot of ...
Recofa's user avatar
  • 67
-2 votes
1 answer
183 views

How to get tags only with custom meta field and display them randomly?

I'm trying to have a function to display only the tags with custom meta field tax_image_url_universal and display them randomly, which means when page reloads different tags to be displayed. Currently ...
ooneland's user avatar
0 votes
1 answer
23 views

Can I create my own query in wordpress with traditional methods?

I am new to developing themes with wordpress, so here's my question. Can I create my own query in wordpress with traditional methods? I know we use the WP query methods, but what is the most efficient ...
Rookie Recruits's user avatar
0 votes
1 answer
712 views

In my wordpress admin panel Suddenly The Category, tag and featured Image Option are not showing

In my wordpress admin panel Suddenly The Category, tag and featured Image Option are not showing. I write blogs in my wordpress blogs but suddenly there are missing three options for adding The ...
Md. Sabbir Al Mamon's user avatar
0 votes
0 answers
45 views

How do I keep raw HTML in my RSS feed and not lose my paragraph breaks?

My blog posts have paragraph breaks, but my RSS feed does not. Here's a screenshot of the Code Editor for a post that shows paragraph breaks. And the rss feed which doesn't seem to have them: https://...
Katy Kauffman's user avatar
1 vote
1 answer
101 views

See when a tag was first added

Does anyone know how to determine the time/data when a tag was added to the site? Is this even kept in the database?
Matt's user avatar
  • 163
0 votes
2 answers
52 views

Can Wordpress show posts based on a button that the user clicked 2 pages back?

For a new website, I need to show posts based on age category (Adult or Kids), this input should be remembered until the user arrives on specific page a few clicks later, input can also be changed on ...
Tjorven Dewulf's user avatar
0 votes
0 answers
38 views

Get all taxonomy terms for attachment, get_terms does not work for me [duplicate]

I have created tags and category for my media attachments with a function like this register_taxonomy( 'gallery-tags', 'attachment', array( 'labels' => array( 'name' ...
zac's user avatar
  • 650
0 votes
1 answer
86 views

Code to check how many posts a tag has?

I would like to noindex any of my /tag/ pages that have less than three posts attributed to them. Any idea how I would go about doing that? I know is_tag() of course, but am not aware if there is any ...
Matt's user avatar
  • 163
0 votes
1 answer
816 views

wp_get_canonical_url showing first url of the post for custom page

I have created a tag.php page in the theme. It's working perfectly. I am getting the tags post on the page. Now I have added the below link to the header.php page. <link rel="alternate" ...
user9437856's user avatar
0 votes
0 answers
167 views

Show Posts via cat+cat in URL that are in both Categories doesn’t work

it seems like i am the only person on this planet currently experiencing this issue. When i search for www.gooloo.de/category/balea+vegan, it should only show posts, that are in BOTH categories, but ...
gooloode's user avatar
0 votes
1 answer
755 views

Include results with tags relevant to the search keyword with JSON rest API v2

Wordpress doesn't natively search for tags so I need to install WP Extended Search and add post_tags as one of its parameters so whenever I search for keywords natively, posts with that tag will ...
mark-in-motion's user avatar
0 votes
1 answer
1k views

How do I add a tag slug to a category URL to filter posts?

I want to add an option to my site to filter posts by one specific tag on the category page and at the same time have a nice URL (no query strings). So something like this: https://example.com/%...
Rafaucau's user avatar
  • 173
0 votes
1 answer
34 views

For each loop on every word in post

I'm having a recipe site where every post naturally contains ingredients. Every ingredient is a tag, and I would like to automatically link every ingredient so the user can click on it and see all ...
Fernando Redondo's user avatar
0 votes
1 answer
24 views

How can I automatically hyperlink tag names that are in my post body to the tag page

I have a number of sports sites with hundreds of thousands of existing news posts. The site also has a custom post type for team and a custom post type for person. I wish to be able to somehow ...
Stewart Robinson's user avatar
0 votes
0 answers
77 views

How to exclude labels from certain categories in a shortcode?

Good afternoon. There is a shortcode [alltags] that displays ALL site tags on a separate page of the site in alphabetical order with a letter. function wph_alltags_shortcode( $atts, $content ) { $...
mEdvEd's user avatar
  • 1
0 votes
0 answers
71 views

Is it possible to embed a wordpress tag page on wordpress?

I'm trying to use the "Embed URL" block to include another WP site's tag page on my WP page. It seems like I'm able to embed individual posts from that site (so the theme supports embedding)...
milpool's user avatar
  • 101
0 votes
1 answer
408 views

Display list of only specific tags on product

Good afternoon, I know I'm doing this wrong, looked at all the other questions but can't get it figured out. I have a tag list with images assigned that are displayed in a separate area of my site. I ...
CSPoirier's user avatar
0 votes
0 answers
75 views

Best approach to make all tags searchable by the wordpress search function

I have over 2000 tags on one of my sites and I like them to be searchable by the wordpress search function. The problem is if I use a plugin, the time it takes to search them all is enormous. I think ...
bpy's user avatar
  • 299
0 votes
1 answer
85 views

Save all the post tags inside a custom field

I'm having some trouble to add_post_meta using the code below with all the post tags inside a custom field. The code works to echo all the tags, but not for saving them because it only saves the first ...
bpy's user avatar
  • 299
0 votes
1 answer
395 views

Filter products on category AND tag

I want to be able to filter products based on category AND tag, as well as sub category AND tag. From my research I heard that I must write some kind of rewrite rule in functions.php for this to be ...
Fernando Redondo's user avatar

1
2 3 4 5
27