Questions tagged [tags]

The built-in taxonomy 'post_tag'.

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

Automatically Add Custom Fields Value as Tags

I want to automatically add my custom fields value as a tags. My ACF’s Custom field’s id is: app_name I want to add Download Free app_name Latest Version as a tags automatically after saving the post.
0
votes
1answer
27 views

Custom post type or category?

I want to create a similar structure as this website https://www.gamespot.com/games/bloodborne/ has but I don't understand if their game page acts as a category or as a custom post type. On the game ...
0
votes
1answer
24 views

Return all Tags and Categories in Separate List

I am using the snippet below to create a shortcode to get all tags for a search in a separate list including tag count. Eg search for 'foo' and it returns all tags for all posts that match the search '...
0
votes
0answers
13 views

Is there a way to categorize a list posts all at once?

We are going through a re-categorization of our blog and need to migrate our posts from the current taxonomy to an entirely new one. Is there a way, either through a plugin or FTP to recategorize the ...
0
votes
1answer
26 views

Return All Tags from Search Result in Separate List

I am trying to create a list of tags on top of my search results page that returns all tags and tag count for all tags that are included in the search results. For example, I search for 'Foo' and it ...
0
votes
0answers
13 views

wp-cli error: "Term is missing a parent"

When I try to export posts via the command line, I get an immediate error that the term is missing a parent: $ wp export Starting export process... Error: Term is missing a parent: name-of-tag (123) ...
0
votes
0answers
50 views

Can I create categories or attribute contain more than 70,000?

I'm will making a website for advertising services in the property sector using wordpress and woocommerce. I created categories consisting of provinces, cities and sub-districts that number more than ...
0
votes
0answers
13 views

Pushing a tag search on top result from a particular post type in wordpress live search?

I'm using the code below to push my custom post type to the top, which is working fine, but, I like to display results based on the tags of professional, example - anger management, sleep-disorder etc....
1
vote
0answers
17 views

Custom Tag Description unable to display just below and outside of the Loop

Hello StackExchange Team! In my wordpress tags for custom post type, the code <?php echo term_description();?> or outputs fine just outside and above the loop. The problem I am having is that ...
0
votes
0answers
10 views

wp_set_post_tags() on every page?

I'm importing lots of content being generated manually and transformed into html code. (data in excel, add html tags as columns, concatenate all, output is html page, import individual pages in bulk ...
0
votes
0answers
28 views

Permalink refresh, the good, the bad, etc. What is best?

I have written various functions/plugins and they require Permalinks to be refreshed, or switched form settings plain then back to to post name in Permalinks settings; to make urls of custom post ...
1
vote
0answers
22 views

How to remove 'noindex, follow, max-image-preview:large' in search page Wordpress 5.7 up

Is there any way to remove 'noindex, follow, max-image-preview:large' in search page in Wordpress 5.7 and up? As I want to make the search page indexed in search engine, but Wordpress 5.7 and up ...
0
votes
1answer
44 views

Extracting relevant tags associated with that particular single post only

$tags = get_tags(array( 'hide_empty' => false )); echo '<ul>'; foreach ($tags as $tag) { echo '<li>' . $tag->name . '</li>'; } echo '</ul>'; The ...
0
votes
0answers
36 views

Choosing the category that's used in the URL slug

So, I have a Wordpress site with a significant back-catalogue of content. We're reducing and flattening our tag structure to reflect a change in the business, less tags, no child tags. Much simpler ...
0
votes
1answer
19 views

How to change the layout of posts when viewing all posts by tag [closed]

In Wordpress, tags are applied to our posts. When I view a post, at the bottom are the associated tags. If I click one of the tags, I am taken to a view that shows all posts with that tag. The view ...
0
votes
0answers
13 views

Sitemap Help - Remove /tag/ from URLS

I have a website that uses both categories and tags to organise posts. I have removed the /tag/ in the URL so that it reads: example.com/tag-1-details/ However in my sitemap (Yoast) it says: example....
1
vote
0answers
30 views

How to filter my posts by categories and tags simultaneously?

I need your help with advice for post-filtering in WordPress. I will describe the situation briefly: I created the main categories of posts which I placed in the main menu: Accessories; Exterior; ...
0
votes
0answers
18 views

How do I implement an on-the-fly playlist of audio posts?

My blog consists exclusively of audio posts, made of: title, short description, WP audio element, a few tags. As usual, when a user clicks a tag, he's presented with a page listing all relevant posts. ...
0
votes
2answers
34 views

Only show tag with the same id as the post

I have been stuck on the following case for a while now. On a page I have a list of tags which I try to filter. When the post for example has an ID of 10586, the only tag displayed should be 10586. ...
0
votes
0answers
20 views

Add "new" tag for existing products

Is there a way to add "new" tag for products, for products that have less than 14 days? I searched all over the internet, but I didn't find a solution. Please help me to do that with php, I ...
0
votes
0answers
13 views

Display related products by matching the product title to any tags of the current article

How do I display products in a custom post type single page by matching the queried product title to any tags of the current article? Below is my code which seems to output some random product names, ...
0
votes
0answers
28 views

Add a specific tag to default tag list

Is there a way to add a specific tag to default list? I mean, I want 45 default tag and one specific (chose by me) among them. I tried with include parameter of wp_tag_cloud() but as a result I ...
0
votes
0answers
62 views

How to get tags when using publish_post

I need to get tags from new posts as they get created. Problem is, with my current code, the tags can't be grabbed when using publish_post as the hook upon post creation, as publish_post fires BEFORE ...
0
votes
0answers
19 views

Add Tag to post after publishing

I want to add a specific tag to posts being published, I tried the following code and searched for answers here but it doesn't work. Does anyone have an idea why? function tag_to_published_post( $...
0
votes
0answers
8 views

Include tags in ajax search

I have set up a simple ajax search in my theme more or less based on this Now I'd like to search through post tags and propose tags in the live search that fit the search of the user. I haven't really ...
0
votes
1answer
94 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
29 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
42 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
11 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
36 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
27 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
17 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
16 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
14 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
17 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
24 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
10 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
19 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
24 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
17 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
11 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
10 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
26 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
14 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
2 3 4 5
26