Questions tagged [tags]

The built-in taxonomy 'post_tag'.

Filter by
Sorted by
Tagged with
1
vote
2answers
5k views

Mass remove a number of tags from a number of posts

i am having a wallpapers site. I was having lots of posts with no tags and i tried some plugins to auto add tags like simple tags where you need to set some tags and it will auto use those tags for ...
0
votes
2answers
879 views

Editing edit-tags.php page in wp-admin

I want to edit the edit-tags.php, particularly the post_tag page. I want to add some content as shown in the pic below. I have found the way to detect the page with the get_current_screen function, ...
0
votes
1answer
17 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
38 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
1answer
654 views

Unable to get all tags from specific categories

Page in question. I'm trying to use a WP_Query(); targeting specific categories and displaying all the tags used for posts within those categories. I noticed that some tags, like truffles aren't ...
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
2k views

problems with alt text not appearing in source code

I have added alt tags, title and description of all the images on my website but many do not show up when I check them in the inspect element tool in chrome or FireFox. SEMRush states over 900 images ...
0
votes
1answer
25 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: ...
0
votes
1answer
865 views

how to see P and BR tags in tinymce?

As a developer, I'd really like to have the ability to see every tag written out on the editor in source mode. Is there a way? Some filter, action, or so?
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 '...
3
votes
1answer
2k views

How can I remove certain HTML tags from the RSS feed?

One news aggregator wants to have RSS feed without any links into the <description> field. So I try to use this code in functions.php to remove <a href></a> tags, but it doesn’t work....
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
20 views

Get thumbnail URL for Woocommerce Product Tag [closed]

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 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
1answer
877 views

Display tags cloud from a specific category ID with a shortcode

I'm trying to display some tags cloud in different locations of my Wordpress. I'm using a shortcode but I'm looking for a way to display only the tags from a specific category ID by adding this ID ...
0
votes
0answers
15 views

Tags, categories or attributes for thematic item? [closed]

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
1answer
665 views

Using Tag Groups: Displaying groups and adjacent tags of current post

I am trying to use tag groups (plugin) and tags as a way to display basic info on a portfolio/blog website's posts. I have organised them as *ex. Tag Group: Year / Tags: 2012, 2013, 2014... etc and ...
3
votes
1answer
883 views

Automatically Add New Tags to Sub-menu

Been searching for any related plugins or info. about this case but didn't find anything relevant or working. I need every new tag that is added to a post automatically appear in a menu as a sub-menu ...
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
722 views

getting posts by tags

i use below code for getting posts by word tag $search_songs = array( 'posts_per_page' => -1, 'post_type' => 'songs', 'tax_query' => array ( array ( ...
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
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?
-1
votes
1answer
2k views

How can I add meta tags in the WordPress header?

I want add WordPress post tags in meta property="article:tag". Something like this: This site is optimized with the Yoast WordPress SEO plugin v1.4.25 meta name="robots" content="noodp,noydir" meta ...
0
votes
1answer
1k 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
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
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) ...
1
vote
3answers
1k views

WP API: Get posts excluding those with a tag or category name

I know from this post that I can get posts by tag name by just specifying a filter[tag] query parameter. And similarly with filter[category_name]. Is there a way to get posts that are not in a list ...
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" ...
0
votes
2answers
1k views

Search by tag, category and author without plugin

I'm creating a website that has search feature. I am wondering what should i do in order to make the search box works like search everything. The search term that visitor inserted may be hitting the ...
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
1k views

Tag archive page not working

I am having a hard time dealing with the tag base page. When I go on a tag archive, the URL is as follows : http://example.com/blog/tag/tag1 But when I go to http://example.com/blog/tag I end up ...
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
1answer
847 views

php wp_insert data on front using a form

I'm using a form on my website to allow user to create posts on my wordpress admin. It works fine, but I have an issue, I don't get the tags meta inside my admin. here is my php code : <?php if(...
5
votes
3answers
2k views

Control term order on a per-post basis

I have a taxonomy in which term order matters, but varies from post to post. So I want to be able to set the order that terms are displayed in on a per-post basis: My first post | Tagged: Apples, ...
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 ...
1
vote
2answers
1k views

Show tags selection similar to category selection in WordPress

Is there anyway we can display tags similar to category selection in WordPress dashboard when editing/adding posts? If we go to publish a new post, we can see a list of categories as checkbox, I want ...
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
950 views

How to check if there are posts with the same tag

I have this code but I can't get to delete the div with the class otrasObras <?php $test = ""; $posttags = get_the_tags(); if ($posttags) { foreach($posttags as $tag) { $test .= ',' . $...
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() ) : ...
0
votes
3answers
1k views

Changing permalink from /postname/ to category/postname/

I have a website where it consists more than 800 posts, At present my permalinks structure is /%postname%/, but due to some reasons I want to change it to /%category%/%postname%/ I have implemented ...
0
votes
1answer
948 views

Exclude posts with certain tags in category archive

When we click a category link we find all posts under that category. I would like to hide posts from specific tag within that category, and to show a link which enable us to show the posts on that tag ...
1
vote
0answers
26 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
1answer
860 views

Add/remove tags on frontend programmatically

I generated a link on the frontend toolbar to feature a post (adding the 'featured' tag). It works OK adding or removing, but the problem is showing the post. When removing the tag and then using ...
0
votes
0answers
18 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
2 3 4 5
26