Questions tagged [tags]

The built-in taxonomy 'post_tag'.

357 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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....
3
votes
4answers
18k views

alt, title tags not showing

I have added alt tags, title and description on all the images on my website but none are showing when I check them in the inspect element tool in chrome or firefox. Here's a screenshot: And here's ...
3
votes
1answer
395 views

Post tags saving as both tag name & tag ID on post update when tags are displayed as checkboxes

I've created a custom non-hierarchical taxonomy and changed it to display as check boxes instead of a tag cloud. However when I am in the post editor and select on of the available tags then update ...
3
votes
1answer
68 views

Is it possible to put tags and category information in the post as text?

Is it possible to put tags and category information in the post area, so one doesn't have to click the appropriate fields and use the mouse? Ideally I just want to type "#art" "cat:painting" in the ...
3
votes
1answer
885 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 ...
2
votes
1answer
116 views

Category archive page - loop through posts of certain tag (with pagination) - pre_get_posts

I have a category archive page (press), which I need to loop through posts of a certain tag (magazines). I tried to modify the query with pre_get_posts, but it is still just showing posts in the '...
2
votes
1answer
50 views

Related Tags Concept

On search results pages I would like to show a tag list collected from other posts that are listed for the seach result. // same tag should not be listed twice And for the taxonomy pages again; tags ...
2
votes
0answers
302 views

display most popular tags of category?

0ne year ago i used this code to show most popular tag of the current category in my sidebar: function my_tags_from_category( $atts, $content = null ) { extract(shortcode_atts(array( 'type' => ...
2
votes
0answers
72 views

URL scheme to retrieve tag archive by ID

You can retrieve a category archive by using a URL scheme like https://example.com/?cat=123. This even works if pretty permalinks are enabled. What is the equivalent query string for tags?
2
votes
1answer
842 views

How to add additional search terms (e.g. synonyms) to the search?

I'm running a blog about different software tools. I frequently use the search to find articles that I wrote for the blog. I also wrote an article about latexdiff, but always forget the name and try ...
2
votes
1answer
46 views

Is it possible to generate an alternate structure for multi-tag urls?

I know that one can query multiple tags with the + syntax, as in www.example.com?tag=?test+test2+test3 I'm looking for a solution where the URL would be in this format instead: www.example.com/foo/...
2
votes
1answer
85 views

Category vs Tag vs Table

I have a site that will hold roughly 1000 posts/articles from an in-house magazine dealing with Australian naval history. The articles cover a range of subjects (such as Aviation, Intelligence, Ship ...
2
votes
0answers
3k views

Search doesn't find tags or categories in custom post types

I've added tags and categories to a custom post, but the search bar doesn't find them when I use it. It does find the 'uncategorized' category (default category) that's inherent in wordpress though. ...
2
votes
1answer
2k views

Help with multiple dropdown tags search

I'm trying to build a search form that allows the user to choose certain post tags and filter through real estate listings. So far I have the form built but when I click the search button it brings me ...
2
votes
2answers
1k views

How to remove these comments and html tags from the content?

These are actually input fields. paragraph is the textarea field. i query the contents from database and try to show them in this textarea field. But the textarea field is showing me unwanted comments ...
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, ...
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
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 ...
1
vote
0answers
31 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 ...
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
10 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 ...
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
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 ...
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 ...
1
vote
0answers
9 views

Disable stored tags queries in admin page when posting a new post

First of all, I am sorry because I am a bit newbie here and I am still learning forgive me, please. I have a Wordpress website blog and I have a very big database of tags stored in MySQL the problem ...
1
vote
0answers
72 views

Force Balance Tags not working

I am trying to shorten my the_content() word count to 200 while retaining the html formatting as well as the shortcodes. I am pretty close but for some reason, I cannot get force balance tags or ...
1
vote
1answer
31 views

How to make tag post listing page working?

I'm adding tags to posts. Clicking a tag takes you to an overview listing of all posts for that tag. I created this listing by adding template "tag.php", which includes: $tag = get_queried_object(); ...
1
vote
0answers
32 views

I can 't display product images based on the label

The task is as follows. We have a product card template in Elementor, we have products with tags. The task is to use the Portfolio tool to display images of products that belong to the same label as ...
1
vote
0answers
65 views

Force Contributors to add Tags via edit-tags.php

I need to be able to stop contributors to the website from adding new Tags when they create or edit a Post in WP. The reason is that I need them to enter an additional field at the same time which I ...
1
vote
0answers
17 views

I want to add a new tag to Wordpress URL permastruct

I installed a TV SHOW plugin on my WordPress install. URLs are like this: https://www.mywebsite.com/tv-show/title-of-tvshow Now I would like to add a specific tag to redirect the user to the right ...
1
vote
0answers
887 views

Pagination is not working properly in Product Category/Tag pages

I have a store with several products. Pagination works fine on the main shop page. But when I open a separate product category or product tag pages, in some of them pagination not working as expected....
1
vote
2answers
44 views

Search the product by tag or category not working

I am working on search. I am trying to search the product by tag or category. I tried below code but it's not working. I am getting Nothing Found Also title and content is also not working. ...
1
vote
1answer
20 views

OG Meta Tags not being scraped by facebook or twitter

When trying to share a blog from my wordpress website on social media, (facebook, twitter), there is no URL preview card. No picture, no description, nothing. I installed yoast seo plugin on my ...
1
vote
0answers
26 views

Get link which associated with a specific category and tag

We have 500+ post, 60+ tags, 3 categories. We want to give link on header part which have specific one category and one tag. For example: We have multiple post like: Blanket, Blender, Mixer, Wardrobe ...
1
vote
1answer
267 views

How to get the Tags on Publish post hook?

Requirement: On the each publish/update post, we need all tags from the post and do some functionality on that. Case 1: Create post, add tags and Publish immediately === WORKS PERFECT === Case 2: ...
1
vote
1answer
329 views

How to show tag count for individual product post in wordpress woocommerce

I am using WordPress Woocommerce as a review platform rather than a eCommerce site. When a review is made, a pre-set arrangement of tags are able to be used for each individual product post. Currently ...
1
vote
0answers
568 views

woocommerce product tags display

I am using shopfront for sons website, while I can usually manage to sort out things with a little research (thanks everyone) I am stuck, He has a lot of tags showing on every item he sells (which ...
1
vote
0answers
256 views

How to display “Category and Post_tag” component in a CPT Gutenberg edit screen?

I want to use Categories and Tags everywhere in WP (Articles, Pages, Attachments and CPT like for example Jetpack-Portfolio) I have been able to show these 2 core taxonomies (category and post_tag) ...
1
vote
1answer
15 views

Please help me to figure out how to display my tags

desperately looking for help. Have a Wordpress theme which does not display post tags on a single page and I badly need to have them there. Developers only named a file which needs to be modified. It'...
1
vote
1answer
203 views

Is possible add icon in title posts only in specific tag?

I want to add an icon in title posts only in posts with specific tag. Is this possible? I've already tried these codes, but they didn't solve my problem: Approach #1 if (is_tag('162')) { ...
1
vote
0answers
17 views

Help with Taxonomies

I have a site about London that lists a wide range of attractions. This is the current setup. I use standard post with categories for attractions, I have also create some custom taxonomies for the ...
1
vote
0answers
21 views

Extend & Search Native WordPress Image Galleries With Tags and Taxonomies?

How can I tag, taxonomize and search native media? I believe my obstacle is my failure to think "the WordPress way". Building my own plugin or theme code, I am looking to achieve the following ...
1
vote
0answers
23 views

Query posts intersecting tags and categories

if I have category 'catname' and tag 'tagname' is it possible to visit for example site.ext/catname/tagname and query all posts that are contained in specific category 'catname' and specific tag '...
1
vote
1answer
21 views

Cross Site Related Posts?

This seems like a serious reach but it's something that would help me loads, so currently I have this structure to return the related posts for my music website, and it works flawlessly for returning ...
1
vote
0answers
256 views

Adding tag's featured image to tag archive

I'm looking for a way to add a featured image to post tags, then display it on that tag's archive page. I currently have the name and description displayed in the sidebar, using a custom sidebar ...
1
vote
1answer
1k views

Is it possible to display tag cloud widget by category?

Is it possible that Tag Cloud Widget will show only tags by category? If a single post is from sports category, then the Tag Cloud Widget will only show tags about sports.
1
vote
0answers
773 views

TinyMCE - how to select tags node from the place where the caret is?

Hello to everyone! I've been wracking my brains, trying to find a solution for this. And here is what I have. Task: I want to detect in which tag my cursor(caret) is standing, and then to select ...
1
vote
0answers
29 views

How to display categories which contains particular tag?

I want to display a list of categories which contains particular tag. E.g. The categories from the tag "Computer" I have checked get_categories(); method but it is not working for me. What should ...
1
vote
1answer
59 views

Does an action fire when adding a tag via the “Tags” meta box?

When a user adds a tag to a post, I'm trying to determine if they have permission to post in to that specific tag. If the user is not assigned to a tag that they try adding via the input in the "Tags" ...
1
vote
1answer
52 views

List tags by certain letter issue with special chars like å, ä and ö

I'm trying to list tags from a specific letter. It works from a-z but not special chars like å, ä and ö which we have here in Sweden. mb_substr() doesn't seem to solve the problem. I have double ...

1
2 3 4 5
8