Questions tagged [tags]

The built-in taxonomy 'post_tag'.

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

Increase number of tags shown on EA Post Grid [closed]

I'm using Essential Addons Post Grid widget, but it has a limit on the number of tags shown - showing just 3. I've tried entering the below code on code snippets to override the limit, but it doesn't ...
  • 1
0 votes
0 answers
6 views

How can I let each user add their own private tags and categories on posts?

I am developing a standard wordpress website. I want to let each user of a specific role to be able to add their own tags and category on any post. These tags and categories would be private not ...
0 votes
0 answers
12 views

In my wordpress admin panel Suddenly The Category, tag and featured Image Option are not showing

In my wordpress admin panel Suddenly The Category, tag and featured Image Option are not showing. I write blogs in my wordpress blogs but suddenly there are missing three options for adding The ...
0 votes
0 answers
17 views

The search doesn't work properly

The search page, gives results that are sometimes irrelevant. Here is "search.php" : <div class="list-posts"> <?php if ( have_posts() ): ?> <?php ...
0 votes
0 answers
14 views

How do I keep raw HTML in my RSS feed and not lose my paragraph breaks?

My blog posts have paragraph breaks, but my RSS feed does not. Here's a screenshot of the Code Editor for a post that shows paragraph breaks. And the rss feed which doesn't seem to have them: https://...
0 votes
0 answers
7 views

Automatically add tag (first 4 characters) to uploaded media

I am looking for a way to automatically add tags to media (a PDF file) that I upload to WordPress via FTP. The tag should always be the first four characters of the file name. For example '1234' as a ...
  • 1
0 votes
0 answers
10 views

How to make different urls for some tags pages

I have some tag pages which I want to modify urls for. For example, I have a page "[domain]/tags/tag-1" and I want to change it to, for example "[domain]/projects/area/tag-1". I ...
1 vote
1 answer
17 views

See when a tag was first added

Does anyone know how to determine the time/data when a tag was added to the site? Is this even kept in the database?
  • 161
0 votes
2 answers
28 views

Can Wordpress show posts based on a button that the user clicked 2 pages back?

For a new website, I need to show posts based on age category (Adult or Kids), this input should be remembered until the user arrives on specific page a few clicks later, input can also be changed on ...
0 votes
0 answers
80 views

How to Rearrange Wordpress Tags list on frontend using Shortcode with specific order?

I have created a shortcode for WordPress tag list to display on the front end. Using the below code, it's working fine. function getTagList() { global $post; $tags = get_the_tags($post->ID);...
0 votes
0 answers
38 views

Get all taxonomy terms for attachment, get_terms does not work for me [duplicate]

I have created tags and category for my media attachments with a function like this register_taxonomy( 'gallery-tags', 'attachment', array( 'labels' => array( 'name' ...
  • 630
0 votes
1 answer
12 views

Code to check how many posts a tag has?

I would like to noindex any of my /tag/ pages that have less than three posts attributed to them. Any idea how I would go about doing that? I know is_tag() of course, but am not aware if there is any ...
  • 161
0 votes
1 answer
60 views

wp_get_canonical_url showing first url of the post for custom page

I have created a tag.php page in the theme. It's working perfectly. I am getting the tags post on the page. Now I have added the below link to the header.php page. <link rel="alternate" ...
0 votes
0 answers
95 views

Show Posts via cat+cat in URL that are in both Categories doesn’t work

it seems like i am the only person on this planet currently experiencing this issue. When i search for www.gooloo.de/category/balea+vegan, it should only show posts, that are in BOTH categories, but ...
0 votes
0 answers
18 views

how to create hierachial taxonomy and manage under single post type?

i have created Farmers Post type for managing farmers data in wordpress. now i want to create hierarchical taxonomy as below: ->state ->district ->g.panchayat ->village ->farmers Please ...
0 votes
0 answers
26 views

Tags hierarchical

I changed the default code in the wp-includes/taxonomy.php file to: register_taxonomy( 'post_tag', 'post', array( '...
  • 101
0 votes
0 answers
19 views

remove specificly the last <p> tag in all posts

How to remove the last line of content in all of my WordPress posts, which always have its own tag <p>...</p>? Ex: <p>content I want to keep</p> <p>line I want ...
0 votes
1 answer
111 views

Include results with tags relevant to the search keyword with JSON rest API v2

Wordpress doesn't natively search for tags so I need to install WP Extended Search and add post_tags as one of its parameters so whenever I search for keywords natively, posts with that tag will ...
0 votes
1 answer
78 views

How do I add a tag slug to a category URL to filter posts?

I want to add an option to my site to filter posts by one specific tag on the category page and at the same time have a nice URL (no query strings). So something like this: https://example.com/%...
0 votes
1 answer
32 views

For each loop on every word in post

I'm having a recipe site where every post naturally contains ingredients. Every ingredient is a tag, and I would like to automatically link every ingredient so the user can click on it and see all ...
0 votes
0 answers
30 views

How to add site tags in alphabetical order to shortcode?

Good morning. There is a shortcode that displays site tags on a separate page. function tag_cloud_shortcode($atts) { extract(shortcode_atts(array( 'cat' => '' ), $atts)...
  • 1
0 votes
1 answer
11 views

How can I automatically hyperlink tag names that are in my post body to the tag page

I have a number of sports sites with hundreds of thousands of existing news posts. The site also has a custom post type for team and a custom post type for person. I wish to be able to somehow ...
0 votes
0 answers
51 views

How to exclude labels from certain categories in a shortcode?

Good afternoon. There is a shortcode [alltags] that displays ALL site tags on a separate page of the site in alphabetical order with a letter. function wph_alltags_shortcode( $atts, $content ) { $...
  • 1
0 votes
0 answers
17 views

Display all categories but only if they have posts in them that have a specific tag assigned

I have a WooCommerce site and am working on the product tag pages. I want to display every product that is assigned to that tag, and break them up into their individual categories (this bit is working)...
0 votes
0 answers
24 views

Is it possible to embed a wordpress tag page on wordpress?

I'm trying to use the "Embed URL" block to include another WP site's tag page on my WP page. It seems like I'm able to embed individual posts from that site (so the theme supports embedding)...
  • 101
0 votes
1 answer
20 views

Display list of only specific tags on product

Good afternoon, I know I'm doing this wrong, looked at all the other questions but can't get it figured out. I have a tag list with images assigned that are displayed in a separate area of my site. I ...
0 votes
0 answers
9 views

Sort query_terms_list for post_tags alphabetically

I have the following array that currently sorts tags by tag count and returns the tags with the individual tag count. I would like to keep the individual tag count but sort the tags alphabetically ...
  • 7
0 votes
0 answers
9 views

display specific category when website loads

I have a website with WordPress and I want to load a specific category when the page loads. I have not tried it. Will it create problems or error if I change it.
0 votes
0 answers
35 views

Best approach to make all tags searchable by the wordpress search function

I have over 2000 tags on one of my sites and I like them to be searchable by the wordpress search function. The problem is if I use a plugin, the time it takes to search them all is enormous. I think ...
  • 299
0 votes
1 answer
29 views

Save all the post tags inside a custom field

I'm having some trouble to add_post_meta using the code below with all the post tags inside a custom field. The code works to echo all the tags, but not for saving them because it only saves the first ...
  • 299
0 votes
1 answer
44 views

Filter products on category AND tag

I want to be able to filter products based on category AND tag, as well as sub category AND tag. From my research I heard that I must write some kind of rewrite rule in functions.php for this to be ...
0 votes
1 answer
12 views

List latest post for each tag with a category

I have a page where the latest posts are displayed from within a specific category. array( 'posts_per_page' => -1, 'post_status'=>"publish", 'post_type'=>"post&...
0 votes
0 answers
14 views

Calling an Archive Page with specific Tag/Tax ID

Hope I am explaining this correctly. I need to style a specific archive page with the taxonomy: dn_campaign_cat and the tag ID: 115; it shows as below on the front end. www.site.com/campaign-cat/...
  • 1
0 votes
0 answers
21 views

How can I combine Wordpress default Tags and bbPress tags into one archive page?

I'm trying to figure out how to combine two taxonomies? I've got three things going on: Tags from Buddyboss's Forums (Buddypress/bbpress) Tags from The Events Calendar Pro Tags from Wordpress's ...
0 votes
1 answer
108 views

How to get and set the post tag value within WP Query from URL?

This is new grounds for me. I'm on a hunt trying to figure out how can use a WPQuery to list all posts, that are filtered by the tag which the user clicked on. So for example if the end-user is on ...
  • 730
0 votes
1 answer
62 views

Help to display the current categories and tags of a post

I am using a shortcode to try to display the tags and categories of a post. Specifically, this is a portfolio post, so when a user visits a post they will see the associated categories and tags. ...
0 votes
0 answers
10 views

How do I make it so a post only shows in its category archive but not the home page?

As of right now if I make a post and attach a menu to it, it shows in the main page too. Like I am making a hamburger recipe and I only want it to show under 'fast-food' but it also shows on the home ...
-1 votes
1 answer
45 views

How to remove a specific script from bulk wordpress posts and images description?

My site got hacked and I found on the end of each post and image description. Is there any way to remove it? Thank you Gusti
  • 1
1 vote
0 answers
41 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’...
0 votes
1 answer
38 views

Set two terms for a post when they differ only by an accent

I face the following situation: after manually adding (in the backend) the terms with names (not slugs) Mânie and Manie, that differs only in an accent/diacritic (they are totally different words with ...
  • 1,101
0 votes
2 answers
106 views

List custom queried terms in the edit-tags.php?taxonomy page

This is my first time posting a question here. I have this problem that I feel that I am soooo close to solve, but can't manage to do it. I have a custom taxonomy called "aplication" and ...
  • 11
0 votes
0 answers
64 views

How to add product tag to order list

Hello, how can I add in the column, the tags of the products corresponding to the order please, the tag column which is painted in yellow, I saw that it was possible to put the name of the products ...
1 vote
1 answer
163 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( '...
  • 157
1 vote
0 answers
25 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->...
  • 157
0 votes
0 answers
26 views

Automatically adding tags and categories into Post Excerpt for searching

I have created a complete user front end posting system. Users post content that only they can view from a front end posting system. They can add tags and set a category. In order to be able to run a ...
0 votes
0 answers
44 views

Can I show category name in url for only one of my categories?

I have several categories in WordPress. I have set the Permalinks in WordPress Settings as https://www.example.com/sample-post/, without the category name. For some reason, I have to show the ...
0 votes
0 answers
15 views

How do I display all tags (linked) from all posts, inline, with a separator?

How do I display all tags (linked) from all posts, inline, with a separator? I have this code but it has no separator <?php $tags = get_tags(); $html = '<div class="post_tags">'; ...
  • 976
0 votes
1 answer
91 views

How to display tags with post_content

I have this code to display the content of a specific post outside the loop (actually in the archive.php template file). How do I include the tags? <?php $my_id = 1576; $post_id_1576= get_post($...
  • 976
0 votes
1 answer
23 views

How to add tags under categories

How to add specific tags under categories on Wordpress Main categories on my blog example.com/recipes example.com/fashion example.com/beauty example.com/life I want to add tags under this recipes ...
  • 1
1 vote
1 answer
199 views

How to display Custom Post Type Post based on Tag with Shortcode Parameter?

I need to search in Custom Post Type 'Case Studies' based on tags which is specified in Shortcode Parameters like [casestudyhook tag="show-this-casestudy-onhome"] so image | title | link of ...

1
2 3 4 5
27