Questions tagged [tags]
The built-in taxonomy 'post_tag'.
368
questions with no upvoted or accepted answers
4
votes
0
answers
375
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' => ...
3
votes
1
answer
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
4
answers
20k
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
1
answer
74
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
1
answer
1k
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
0
answers
107
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 ...
2
votes
1
answer
129
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
1
answer
67
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" ...
2
votes
1
answer
51
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
0
answers
97
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
1
answer
994
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
1
answer
49
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
1
answer
87
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
0
answers
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
1
answer
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
2
answers
2k
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
0
answers
32
views
How to Disable auto id attributes in Heading tag?
I don’t know why but WP is automatically adding id attributes to h2 tags. I am not supplying any id or class attribute and I don’t need it. Also, it’s adding type="1" to <ol> tag that’...
1
vote
1
answer
141
views
wp_update_term_count_now doesn't work with a custom post type?
I have a custom post type name session and a tag name post_tag.
This is the declaration of my custom post type :
function create_posttype()
{
register_post_type(
'session',
array(
'...
1
vote
0
answers
24
views
Add tag to a custom post type doesn't change the total of custom post type in backend
I add a tag to a custom post type nammed "session" programmatically like this :
wp_add_post_tags( $session->ID, "annule");
I tried this as well
wp_set_post_tags( $session->...
1
vote
0
answers
22
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 ...
1
vote
0
answers
40
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
1
answer
31
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
0
answers
21
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
0
answers
155
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
0
answers
21
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
0
answers
12
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
0
answers
160
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
2
answers
89
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
0
answers
14
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
0
answers
91
views
Filter on the_content doesn't update the content being searched via register_rest_route
I'm trying to get my custom REST route to include search results from a filtered the_content. I'm trying to automatically include the post tag names within each post's content, so that searching can ...
1
vote
0
answers
10
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
0
answers
101
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
1
answer
44
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
0
answers
54
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
0
answers
91
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
0
answers
22
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
0
answers
1k
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
2
answers
73
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
1
answer
30
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
0
answers
28
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
1
answer
431
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
1
answer
464
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
1
answer
2k
views
Adding a H1 Tag to Post Tags automatically, but hide the tag? (Same for Category)
So to increase my SEO score I require all tag pages to have a H1 title, for example website.com/tags/taghere would need the title: <h1>TagHere</h1> or simply <h1>taghere</h1>
...
1
vote
0
answers
718
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
0
answers
330
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
1
answer
16
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
1
answer
299
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
0
answers
18
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
0
answers
25
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
0
answers
33
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 '...