Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [tags]

The built-in taxonomy 'post_tag'.

Filter by
Sorted by
Tagged with
0 votes
0 answers
19 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 ...
user avatar
  • 149
0 votes
0 answers
11 views

Trying to create a Video News Page, that contains only the video and the title of the post that it was first uploaded to [closed]

I'm trying to create a new Page that contains only Videos, which are first uploaded inside a post that also contains some text and a title, which title I want to use to represent that particular Video....
user avatar
0 votes
1 answer
9 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/%...
user avatar
0 votes
0 answers
17 views

shortcode that have access of information outside [closed]

I'm really new to wordpress dev and I try in fact to make a plugin work the way I want. I use (start using) motopress hotel plugin, and sadly they don't provide a simple way to send specific mail when ...
user avatar
  • 101
0 votes
1 answer
29 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 ...
user avatar
0 votes
0 answers
22 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)...
user avatar
  • 1
0 votes
1 answer
9 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 ...
user avatar
0 votes
0 answers
45 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 ) { $...
user avatar
  • 1
0 votes
0 answers
15 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)...
user avatar
0 votes
0 answers
19 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)...
user avatar
  • 101
0 votes
1 answer
13 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 ...
user avatar
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 ...
user avatar
  • 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.
user avatar
0 votes
0 answers
27 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 ...
user avatar
  • 299
0 votes
1 answer
15 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 ...
user avatar
  • 299
0 votes
0 answers
19 views

Get categories that has posts with a certain tag

I have a tag template where I list all the products based on category and tag combined. At the bottom of this page I want to show the visitor all the other categories that have products with the same ...
user avatar
0 votes
1 answer
21 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 ...
user avatar
0 votes
1 answer
11 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&...
user avatar
0 votes
0 answers
13 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/...
user avatar
  • 1
0 votes
0 answers
15 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 ...
user avatar
0 votes
1 answer
33 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 ...
user avatar
  • 708
0 votes
1 answer
31 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. ...
user avatar
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 ...
user avatar
-1 votes
1 answer
20 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
user avatar
  • 1
1 vote
0 answers
18 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’...
user avatar
0 votes
1 answer
33 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 ...
user avatar
  • 1,081
0 votes
2 answers
57 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 ...
user avatar
  • 11
0 votes
0 answers
61 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 ...
user avatar
1 vote
1 answer
94 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( '...
user avatar
  • 157
1 vote
0 answers
23 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->...
user avatar
  • 157
0 votes
0 answers
21 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 ...
user avatar
0 votes
0 answers
23 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 ...
user avatar
0 votes
0 answers
9 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">'; ...
user avatar
  • 976
0 votes
1 answer
52 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($...
user avatar
  • 976
0 votes
1 answer
21 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 ...
user avatar
  • 1
1 vote
1 answer
92 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 ...
user avatar
0 votes
1 answer
20 views

How to get tags outside of loop for specific page I'm on?

Outside the loop, if I use the following code in my child theme... $mtags = get_tags(array( 'taxonomy' => 'custom_tag', 'orderby' => 'name' )); It prints out all my tags....
user avatar
  • 708
1 vote
1 answer
61 views

How can I prevent wordpress from creating tag pages?

I use the built in wp tag functionality to group my posts thematically and then I use the WP_query to have the posts displayed according to custom design. I do not need the tag pages created by ...
user avatar
0 votes
2 answers
32 views

Need to return all tags - including empty ones - in list

I have a client who wants to review and revise their Tags and tagging strategy, but they want to start with a spreadsheet of ALL tags, including those that have no posts assigned to them. SO I created ...
user avatar
  • 408
0 votes
1 answer
20 views

Edit the_category (); for a hierarchical display

For my wp theme I want to use the categories as tags on my posts. Example: The problem is that the category in red must always be the parent and in gold the child. Except that returns the categories ...
user avatar
0 votes
0 answers
60 views

How to add first 3-4 post tags on WordPress Post Title

Is there any theme function code that put the first 3-4 post tags on WordPress Post Title. Let's assume I am creating a new article for my site and I added the below tags for my post My Post Title - ...
user avatar
0 votes
1 answer
46 views

how to add tags to post in the Loop?

I have the following code below, which loops through all posts in a db of books. I would like to tag book entries which do not have the tag $tag="book_".$booknum."_".$chapnum; ...
user avatar
0 votes
0 answers
57 views

Get all categories inside a Product Tag archive page

I want to get the list of categories inside a product tag archive page. I've searched around but I can't seem to find a code that is exactly the solution for this. I really appreciate if anyone could ...
user avatar
0 votes
0 answers
22 views

Hide/exclude certain tags under single post

I'm using the 'featured' tag to show certain posts on my homepage. But under the single post it also shows the featured tag, next to my real tags. How do I hide this with code? I've looked at similar ...
user avatar
  • 1
0 votes
1 answer
28 views

How to not display tags with less than X posts

Is there a way to avoid displaying tags which have less than X Posts? the answer here is close Remove from Google Tags with less than 2 posts however it suggests to send a respose header to google. I ...
user avatar
0 votes
0 answers
26 views

What parameters do I need to pass to get_tags to get ALL tags for the site, when used in a post

I want to show all non-empty tags used on the site in a sidebar next to the post. Currently, inside a shortcode-triggered function in functions.php I'm calling... $tags = get_tags( array( 'orderby'...
user avatar
  • 125
0 votes
1 answer
41 views

Get posts that do not have the same tags as current

I'm trying to get all posts in a custom plugin loop that DO NOT share the same tag as the current one. I'm trying: $events = tribe_get_events([ 'start_date' => 'now', 'eventDisplay' =&...
user avatar
0 votes
0 answers
36 views

Remove link and Add class to get_the_tag_list()

Is it possible to remove the link on the get_the_tag_list() and add class name per tag id? if it's possible, how to do that? Thank you,
user avatar
0 votes
1 answer
26 views

Tag title not being returned in page title of tag archives

I am using the snippet below to add the category or tag title to their respective archive page title. While the category title is working as expected, the portion that is supposed to target the tag ...
user avatar
0 votes
1 answer
46 views

Pagination on and tag.php not working

I have added tags to a custom post type, on its $args array using 'taxonomies' => array('post_tag'). Im using the following code on tag.php to loop posts from a certain tag. It works well but ...
user avatar

1
2 3 4 5
27