Questions tagged [tags]

The built-in taxonomy 'post_tag'.

Filter by
Sorted by
Tagged with
0
votes
0answers
6 views

How to add term_id to tags list

How to add term_id to tags list in admin post like photo : Example : tag name - id:15 tag name 2 - id:845
0
votes
0answers
13 views

Tags, categories or attributes for thematic item?

for a new website I need to use categories as geographic categories and I need to have something to indicate the pre-established thematic, just think about a news site with geographics categories full ...
0
votes
0answers
18 views

tag link error post

I'm using a script (cyb-glossary) to sort the posts alphabetically according to the first letter of the title. The script is very simple and it works. First register a taxonomy as a hidden tag, create ...
0
votes
1answer
9 views

Tags on page (not post) returns nothing - why? Improved clarified question!

Problem: I'm trying to echo tags to list items but only manage to echo the "else statement". Since this is about tags for pages I have added support for pages to show tags in functions.php: ...
0
votes
1answer
21 views

Random tag in the post

Each post has 5 tags. But I want to display only 1 tag and every time it must be a random tag. Can you please tell me how I can do it?
0
votes
1answer
13 views

Get thumbnail URL for Woocommerce Product Tag

I am using this plugin https://woocommerce.com/products/custom-product-tag-image/ To add thumbnail images to my product tags. I'd like to display a that list of tags with their accompanying images. I'...
0
votes
0answers
8 views

How to replace all links on my wordpress blog with short links automatically

Most of the links on my wordpress blog are external and I want to replace them with short links automatically. Is there a plug-in for that. Or I have to manually replace each link. I tried prettylinks ...
1
vote
1answer
17 views

How can I make WP_Query get posts that have a tag but also have random other tags?

I am trying to make the category page on my Wordpress website. To position some of my content, I use post tags. To get the post that goes in a specific spot on my page, I make a WP_Query with $args ...
1
vote
1answer
18 views

How to list custom tags too, to wp-list-table table?

there are a "posts" list at admin page, and you can see each post creation date, tags, authors... I have custom tags, which are not appears here: how to make it shown? They are registered ...
0
votes
1answer
19 views

Get Posts by Category, Tag , and CPT Taxonomy

How to print only those posts which have Category, Tag, CPT Taxonomy. I have tried out with this code but nothing prints. To print posts I used SS [commonposts category="2" tag="3" ...
1
vote
0answers
13 views

What hooks are needed to bind a tag to a reusable block?

What do I need to hook or filter to associate a tag with a reusable block such that when the block is used the tag is added to the post (and, ideally, removed if/when the block is)? I'm thinking ...
0
votes
0answers
10 views

Count specific tags in specific category

How do i count total number of tags called "box1" & "box2" & "box3" etc in categories called "house1" & "house2" & "house3" ...
0
votes
1answer
22 views

How do I get tags linking to proper pages (/tag/sample-tag -> pages with that tag)

(Warning: WordPress newbie ahead...) I have a WP site with a bunch of posts, many of which have tags associated with them. However, clicks on links to such tags -- https://example.com/tag/sample-tag) ...
0
votes
0answers
9 views

How to redirect a custom post type archive tag page?

I'm sticking with that problem: I am able to redirect my custom post type archive page to a custom page easily but I am not being able to do the same with an archive page custom post type tag's. Let's ...
0
votes
0answers
17 views

Add width and height attribute to an img tag

I am using Hood Theme and I have a logo on the top left on my navigation. I have set this logo to 150x50 which works fine. But the tag doesn't have the width and height attribute. Google PageSpeed ...
0
votes
0answers
9 views

Multiple tags not getting displayed

I want to retrieve combined tag-results within my tag.php template. That tag-template-page can only be fired in that 1 specific use case, as I have no search boxes or forms available anywhere in my ...
0
votes
0answers
14 views

How to get tags from different blog?

Its very easy to use on a blog, it works standallone: but what about if those tags comes from another blog? I cant see the way to switch_to_blog() or something. I also must not be writing into the ...
0
votes
0answers
17 views

How to Show All Categories Related to a Tag

Is there a way to show all categories in a tag page (all categories from posts by a tag)?
0
votes
1answer
12 views

limit number of tags shown in tag.php

Been hitting a nail with this one as i'm very amateur with php. I have a loop in tag.php but it shows all posts with that tag - how can I limit the number to say, 5? <?php if ( have_posts() ) : ...
1
vote
0answers
21 views

Cluster WooCommerce products in each Category Archive by Tags assigned to products

Hello WordPress specialists. I am building my dream shop and I prepared a structure which I can not build now. Can you help me think about it? I prepared a product_cat categories which are based on ...
0
votes
0answers
17 views

How to display products sort by Tags for Woocommerce

I have tried to display products by tags on shop page, i found this code and it workes perfectly $args = array( 'number' => $number, 'orderby' =&...
1
vote
0answers
20 views

Print all the tags from a custom post type Please

I'm looking for solution that will display all the tags that are used on a custom post type. wp-admin/term.php?taxonomy=tour-destination&tag_ID=316&post_type=tour&wp_http_ref From a ...
1
vote
0answers
8 views

Display tag image in post using Taxonomy Images plugin index.php

I'm a beginner programmer, and I need to display its image along with the tag, how can I do this? Here is the code: <div class="blog-list row"> <?php ...
0
votes
0answers
12 views

Related post - don't know how to change the code

I'd like to display related post from the same category or by tag. I found this and try adopt to my solution /** * Related posts * * @global object $post * @param array $args * @return */ ...
0
votes
0answers
19 views

Show the tag if the custom field is set to “Yes”

Using the following code and shorcode, I display 10 tags in the basement of the site: function getTagListfoot($classes = '') { global $post; wp_tag_cloud( array( 'taxonomy' => 'tags_type', '...
0
votes
1answer
29 views

How to add Text before my Custom Term and hide it when empty

This is my code: <?php $terms = get_the_terms( $post->ID , 'this_is_custom' ); $links = []; foreach ( $terms as $term ) { $term_link = get_term_link( $term, '...
1
vote
0answers
24 views

CPT UI - elementor tags archive template not working

I've faced a situation with CPT UI and Elementor. I've created a CPT with categories and tags. But, when I tried to create a template for those tags (to dynamically redirect to my CPT posts associated ...
1
vote
1answer
57 views

Get current tag list in Gutenberg save function

I am trying to get the current tag list for a given post inside the save function to render on page. There is a similar Q here: How to return a list of custom taxonomy terms via the Gutenberg ...
0
votes
0answers
14 views

Add post title as a tag

How can I add post title to post tags? Example: Post title: post title Tag: before post title after wp_set_post_tags(4260, array ('befor','.get_the_title().','after'), true ); this function didn't ...
0
votes
0answers
20 views

Remove H1 site-tittle tag from product page with a function SEO

How to Remove H1 site-tittle tag from product page SEO. I only want the product-tittle tag in the H1 tag How can i do that with a function? https://www.jazzboekingsburo.nl/the-blueberries-james-bond-...
0
votes
0answers
33 views

Twentytwenty theme p-tags break em- and strong-tags that span several paragraphs

Going from twentysixteen to twentytwenty theme has disrupted formatting. As I understand WP2020 introduces p-tags within em- and strong- tags that are not closed. It looks like screenshot one. The ...
1
vote
2answers
32 views

Different templates for different category tags

Is there any method to create different template in a theme for different category tags search? For example, I have category 'blog' and category 'glossary' - there is no any similar tag for both ...
0
votes
1answer
8 views

Determine if term is Category or Tag

I am working on a piece of code for my plugin and I am trying to find the best way to pull Terms in to post object. The object will have the usual title, description etc. but it will also need ...
0
votes
0answers
9 views

Limit categories, tag count on back-end?

Before I re-invent the wheel. We are looking to limit the number of tags, or the number of categories that a specific blog article can be assigned to. I currently do this on the front end, similar to: ...
0
votes
0answers
27 views

Combining old and new 'tags

I have wordpress site that uses tags to represent the amount of workouts a client has been to. That number has become a competitive spark for my clients and they compete with each other. I am in the ...
1
vote
0answers
12 views

Site search needs to find posts for category topic AND Tag or keyword thats not in the post

So I have about 20 categories on the site, one of them is Press Releases. I've been asked to make sure that posts in the press release category only show up in that single category BUT can can also be ...
0
votes
0answers
8 views

Show ‘tags’ for a post on the frontend when in a list view

Show ‘tags’ for a post on the frontend when in a list view. When these are toggled on we will show #tag-name next to the categories of the post. See the screenshot provided as reference.
0
votes
1answer
9 views

How remove tags just have one post?

I have a auto feed website and there are too many unsueful tags that have just one or two post. Is there any sql code to clear all of these tags from database at once?!
0
votes
0answers
27 views

Remove little gray box from content page

Hello! I would like to remove the 'em' element from the code using the 'additional CSS' function (or other way) since it appears on the main page has a little gray box. I have attached an image to ...
0
votes
1answer
29 views

How can I display tags as categories?

I'm using the "Pages with category and tag" plugin because my website uses individual long pages as posts. I would like to make a gallery of the past posts (sort of like an archive section), ...
0
votes
1answer
27 views

Checking if one of the post tags has options

I have some option in some of my wordpress tags and I'm trying to determine (in single.php) if one of those tags has options and if one of them (options) is equal to a specific value. This is what I ...
0
votes
0answers
6 views

Filtering get_terms so it displays tags by category

Is there a way to filter get_terms so it'll list only tags assigned to a post in a specific category? I have two categories on the site I'm building, Recipes and Nutrition and I would like to display ...
0
votes
0answers
17 views

Custom search bar - search in a specific category/tag field

I want improve on my website some search bars for search a specific post in only one category or tag. For example i have a page with 200 posts, eachone have one or more tags/catgeories: tag "x&...
0
votes
0answers
15 views

How to add Featured Image Alt tag ( wordpress Home page)

I want to set the first picture on the subject as the featured visual. and I added these codes to content.php. <?php if ( has_post_thumbnail() ) { the_post_thumbnail(‘large’); } else { echo ‘<...
0
votes
1answer
16 views

Get the publish date of the older post inside a tag

What would it be the best approach to get the publish date of the oldest post inside current tag?
0
votes
0answers
22 views

How can I create zip code search filter to link to specific agent(s) on same page?

I have a page on my site (https://eliterenetwork.com/member-roster/) that has a list of agents that are categorized by states they do business in. I'd like to create a search filter at the top of the ...
0
votes
1answer
38 views

Is it possible to have “two” sets of tags?

I have several Custom Category Taxonomies but what I am wondering is, if it's possible to have a second set of "tags"? I am using my tags for a very specific purpose (the naming of cities) ...
0
votes
3answers
53 views

Show the amount of posts in a tag in a specific category has

I am creating a page template in Wordpress that displays multiple tags that are in a particular category. I have this working, but now I want to have the number of posts within each tag that is ...
0
votes
0answers
13 views

How to Display Custom Formatted Blog Post with Provide tag name as attribute in Shortcode

I want to make Shortcode where if client pass the name of tag(available or added in blog posts) as attribute then it will show 2 blog post from that mentioned tag. as i cannot ask him to do all html ...
0
votes
0answers
20 views

Images and Links Not Working on Tag View

We frequently (almost always) use images and HTML links in our blog posts. When I go to Mysite.com/blog or click individually on any of the posts, all the images and links work correctly. If I click ...

1
2 3 4 5
26