Questions tagged [tags]

The built-in taxonomy 'post_tag'.

Filter by
Sorted by
Tagged with
0
votes
1answer
45 views

Change (replace) <b> tags to <strong> tags

Wanted to change / replace all my "b" tags ~ bold tags to "strong" tags in wordpress. I used some snippets to achieve it but they are not making them work. Snippets used, #First ...
1
vote
1answer
27 views

Match tag names with form titles

I am trying to match tag names with form titles to fetch the correct form into the current post, to subscribe to new posts tagged with the current posts tag. I only have 1 tag assigned per post. The ...
0
votes
1answer
18 views

Auto-set a term's language upon creation (polylang)

I want to do a specific task each time a given term is created. My first approach was to do this via the addition of the following code into the main plugin file: add_action( 'created_term', ...
0
votes
1answer
39 views

Need to put a script above </body> tag in header.php - WP 5.7.1

I need to put this script above the tag in the header.php. window.Futy = { key: '0000000000' }; (function (e, t) { var n = e.createElement(t); n.async = true; n.src = 'https://v1.widget....
0
votes
0answers
10 views

Scripts Slowing Page Speed and Low Performance Scores

We have several scripts that load when pages from our website are viewed. The scrips are used for call tracking, user patterns, show different page elements, and so on... The scripts are place in ...
0
votes
1answer
28 views

What is wp_get_post_tags for media tags?

I'm trying to customize a function where I have wp_get_post_tags( $post->ID ); My need is to have this function querying media assets' tags, which I see the plugin called "attachment_keywords&...
0
votes
0answers
20 views

How to filter tags by category?

is there a way to add a custom filter in the Tags admin page? I'd like to filter tags by category. I saw plenty of custom filter for the POSTS admin page, like this one that filter posts by format: ...
1
vote
0answers
16 views

Add A Tag To A Post Through JavaScript In Gutenberg UI?

My creators have a large variety of tags (500+), and want a "tag grouping" button to click and add sets of related tags through the Gutenberg UI. I could easily add them through PHP hooks, ...
0
votes
1answer
14 views

Search CPT by tag ids

I need to search custom post type by tagids. I have created a post type that is "gampu". In this post type i have register 5 tags taxonomy like 'fitting', 'adapter', 'type', 'volume' and '...
0
votes
0answers
9 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
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
10 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
22 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
0answers
9 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
21 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
15 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
18 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
29 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
21 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
9 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
13 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
36 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
102 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
15 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
36 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
10 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
13 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
9 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
31 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
30 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
7 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
18 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&...

1
2 3 4 5
26