The built-in taxonomy 'post_tag'.

learn more… | top users | synonyms (1)

1
vote
1answer
14 views

How to build a WP_Query using mulitple tags and using AND or OR operator between them

I'd like to craft a query to return posts based on the conditional presence of certain tags. The pseudo query is: return posts with "((tagA OR tagB) AND (tagX OR tagY))". But I'm having issues ...
1
vote
1answer
19 views

Echo tags used to describe the theme

I've got a plugin I am working on to return an instance of the WP_Theme object properties. The plugin essentially allows for a simple child-theme creation. /* Theme Name: <?php echo ...
2
votes
4answers
4k views

Wordpress removing <p> tags?

I'd already come across a case where Wordpress added <p> tags. However now I'm dealing with the opposite situation. When I add [] shortcodes inside <p> tags WordPress automatically removes ...
0
votes
0answers
9 views

Multiple tags to create an RSS feed not working as docs describe

I'm trying to create an RSS feed that is based off of AND not OR with tags. In the codex https://codex.wordpress.org/WordPress_Feeds it says that you can use the format: ...
0
votes
2answers
2k views

Filter categories using tags

I have a website with the following categories: Videos Pictures Stories And I have a lot of tags like: Funny, Awesome, Mind Blowing, Crazy, etc. Is there a way I could filter lets say: Videos ...
0
votes
1answer
432 views

How to add tags to post from frontend?

I am working on a site where visitors will be able to add tags to post from frontend without being able to edit the already assigned tags. It basically will be a add tag button where upon clicking ...
1
vote
2answers
451 views

wordpress the_tags not in alphabetical order

I'm using wordpress' the_tags() to display the tags of each post on a single side. What I intend to do is to display the tags by the order they are typed in in the backend, and not by alphabetical ...
2
votes
2answers
830 views

Pagination problem after WP_Query with tag filtering

I have a problem with a custom WP_Query. I want a page with all posts with a specific tag. This is the code I'm using: <?php //save old query $temp = $wp_query; //clear $wp_query; $wp_query= ...
4
votes
1answer
30 views

Executing Queries in tag.php

I'm probably being dense, but I can't seem to figure out what the issue here is. The site I'm developing uses a custom loop, with a query that excludes any posts ticked as archived. The reason I ...
1
vote
2answers
836 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
1answer
825 views

How to remove specific tag from multiple posts?

I am trying to find a method to delete a certain tag, that is used in my theme to display differently "featured" and "dont-miss" posts, from multiple posts and I was not able to find a solution. Or ...
1
vote
1answer
534 views

Non-hierarchical custom taxonomy using checkboxes on edit-screen -> saving issue

I registered a non-hierarchical custom taxonomy ('property_features'). There is a checkbox for every terms of this tax in a custom meta box on the edit-screen. All terms are displayed and all terms ...
0
votes
1answer
432 views

Display a tag only if there is a description

I'm building a site glossary and trying to display only tags with descriptions. Is there a way to determine if the description is available and only display the tag when it is? Here is where I am so ...
3
votes
1answer
50 views

Special characters in tag get removed for comparison on save

Is there a list of characters, that are not allowed / are allowed in Tags? Or are there some more complex rules? I first ran into the issue, that some tags are ok with a *-prefix, like: *BLA-BL-BLA ...
0
votes
1answer
38 views

How do I get my suggest to only suggest one taxonomy?

I am using the built-in wordpress suggest plugin to call the entries from the terms table. Using the following sql query it spits out all terms: $query = 'SELECT term_id,name FROM ' . ...
0
votes
1answer
592 views

/tag/tag_name/page/2 gives a 404 error

I created my own template for list of entries for certain tag (tag.php), It will shows up 10 entries, and with Previous & Next link. <?php $paged = get_query_var('paged') ? ...
0
votes
2answers
20 views

Adding Related Articles to post

Been pulling my hair out trying to get related articles going. I've tried a few methods but this is the only one that has given me results but random posts are shown rather than posts related to it by ...
2
votes
3answers
2k views

How to display post tags

I'm converting an HTML template into a wordpress theme and I'm having some trouble displaying the post tags within the functions.php file. What I would like to do is add the following code into the ...
1
vote
1answer
45 views

how to filter each tag item?

By default wordpress displays tags as: Tagged in: Tag1, Tag2, Tag3, ...so on I want to print it as Tagged in: #Tag1, #Tag2, #Tag3, ...so on I know I can do this using CSS by using :before, but I ...
-1
votes
0answers
9 views

post_tag description search in admin

How can i add a function, that implements post_tag descriptions in the search query for backend (tags screen)? If i search for "tennis" it should show up all tags, where "tennis" and "tennisball" are ...
-1
votes
3answers
475 views

Moving Categories submenu to Media, but still opens Posts menu

I'm developing a very media-centered site with WordPress and am using the default categories and tags on uploaded media using, in part this plugin Media Categories. I am displaying a sub-menu item ...
0
votes
2answers
18 views

Conditional inside search result excerpt

I'm trying - and failing - to add a conditional tag to the excerpts in my search results... so that if the excerpt is from a post it displays the post date and permalink, whereas if the excerpt is ...
0
votes
0answers
10 views

Can't display tag cloud by widget

I want to display tag cloud products and to use the widget of woocommerce - Tags products. Tags isn't displayed even though they are added to the 90% of the products. Tested on other sites and work ...
1
vote
1answer
27 views

Adding Taxonomy Image to taxonomy loop [closed]

I'm using the code below to show six random tags, adding a class on an <a> tag. $args = array( 'taxonomy' => 'post_tag', 'hide_empty' => 0 ); $tags = get_terms( $args ); $class_name = ...
0
votes
1answer
27 views

Customizing the_tags output?

I am trying to display a list of tags. I want to display 6 tags but random tags. Not post tags but tags from the entire site. <?php $number_to_show = 10; $tags = wp_tag_cloud( array( ...
-1
votes
1answer
42 views

WordPress More tag doesn't work on Single post

When I add read more on my post (single.php) I can see < !--more-- > in HTML editor and when I publish it, I don't get to see it on my website. I already tried several plugins to solve this ...
0
votes
0answers
23 views

How can i implement “select from existing tags” for front end posting?

Hy,on the bottom of Tags: I want to add something to be able to select from existing tags. Something like on backend "Select from the most used tags" Here it's html and php code : case ...
0
votes
0answers
19 views

How do I add a related tags list to a wordpress tag page

I would like a tag list that shows related tags on a tag page. For example when on the tag page for the tag "Technology", I would like a tag list of other popular related to that tag based on other ...
0
votes
2answers
30 views

get posts that doesn't contain a specific tag

I want to get all the posts that do not contain the tag 'index'. How can it be done? I mean in the reverse of get_posts(array('tag' => 'index')) Thank you
1
vote
4answers
2k views

Showing all tags in admin -> edit post

Someone knows how to show 'all tags' insteads of the 'most used tags' in edit post of administration panel? This should give the ability to select with a single click tags that are not yet used! Here ...
0
votes
2answers
32 views

Custom Post Type tag taxonomy “Page Not Found”

I have a custom post type that looks like: register_post_type( 'letters', array( 'labels' => array( 'all_items' => __( 'All Letters', 'text_domain' ), 'name' => __( ...
0
votes
1answer
33 views

How to display all posts assigned to some tag?

I have tag url - example.com/tag/new-shoes and I have 2 posts tagged with those keywords new-shoes. I would like to display on this url example.com/tag/new-shoes all posts (titles and first keywords ...
1
vote
3answers
25 views

Change Post Class function

I wish to change/remove parts of the automatic post class function that's built in to wordpress, lets say when i make a post, the html code generated looks like this: <div id="post-106" ...
4
votes
4answers
4k views

Display list of most used tags in the last 30 days

I am looking for a way to display the most used tags over the last 30 days. I am no coder, but I have come up with this mashup to display a list of the most used 28 tags (preference to fit my theme). ...
0
votes
3answers
118 views

Exclude a specific tag from the get_the_tags list

I am building a child theme for my personal use. Not very familiar with php, can only do basic things based on logic. I need to exclude one tag from being displayed on the tag list on a single post. ...
5
votes
5answers
43k views

how to query posts by category and tag?

I am trying to show a list of posts that are related to category X and tag Y. I've tried the following code: $args = array( 'posts_per_page' => 4, 'tag_id' => $tag_id, 'cat' => ...
0
votes
0answers
15 views

Category and tags of CPT customize URL

Actually I have created categories and tags of my Custom Post Type. My URL of category or tags are : www.example.com/category/name-category www.example.com/tags/name-tags but I want to customize ...
1
vote
4answers
2k views

Stop wordpress from removing HTML attributes

I try to insert a post with html tag with class attribute, like this: <dl class="dl-horizontal">, but after saving the post, WP removes an attribute. How can I fix it? The only way I've found, ...
0
votes
0answers
19 views

Exporting tags to cloned blog

So, I've been developing a blog in local, using a clone of a site, same posts, categories, tags, etc. The problem is that meanwhile, the client has created a lot more tags that were not present when I ...
0
votes
0answers
20 views

Display tags belongs to a category even if if it belongs to multiple categories

Here is my case: I have 2 main categories I would like to display posts in separately: 1) Garden 2) Recipes One page for Garden with posts belong to "Garden" and one page for Recipes with posts ...
1
vote
1answer
36 views

Allow only 1 instance of each term in each custom taxonomy

I'm looking for a function that restricts the creation of each term to only 1 instance within each custom taxonomy. Each custom taxonomy may have the same term but the term may only occur once in each ...
0
votes
0answers
15 views

Adding Value to Custom taxonomy from frontend

I am using this page template to create posts from frontend. I want to add a field in this template so that users are able to add value to a custom (non hierarchal tag-like)taxonomy called 'athelete'. ...
0
votes
0answers
68 views

I want to show products based on post tags

Id like to get WooCommerce products on the blogpage (single.php) by tag whereas the tag is the same as the blogpage. The idea is when users read the text, they get related products based on tags from ...
1
vote
1answer
107 views

How to tax query X number of posts related by tag first, then by category if not enough in tag-related

Question How to output tag related posts first, then IF there are less than 4 tag related posts, fill the rest of the 4 spots with category related posts? Scenario Sometimes a post has very few ...
0
votes
3answers
497 views

How To Add One Tag to Multiple Posts?

I have nearly 1500 posts in my wordpress blog. Before moving to a new design, I need to tag all these posts with one tag 'old'. How can I do this? I tried to bulk edit posts and it will always go only ...
0
votes
1answer
24 views

Random posts in WP_Query when searching by tag

I have a section that want to include featured posts. I want to look for featured posts based on tag. For example, I want to fetch all the latest posts that have the featured tag. I use the following ...
1
vote
1answer
38 views

How to remove/hide the predictive autocomplete popup when I type in the tag/term metabox

When I start to type in a few letters in the tag or term metabox (in the post edit page) there is a predictive autocomplete popup thingy containing other tags/terms to choose from. How do I ...
0
votes
0answers
33 views

How to fill up in tags?

i have some problem to fill up the data Here is my code $.getJSON( url + input + "/keywords?" + apikey, function(tmdbdata) { $.each(tmdbdata, function(key, val) { if(key == "keywords"){ ...
5
votes
1answer
340 views

Do tags have dates?

I've created something using reverse tags – when something isn't tagged, it's flagged up to say "Hey! This post hasn't been checked yet!" Now i'm wondering, is there a way to get the last tag ...
-1
votes
1answer
54 views

Convert wordpress tags & categories to woocommerce tags & categories?

With the ref of Convert WordPress posts to products in WooCommerce I have learnt how to change wordpress posts to woocommerce products. How can i change wordpress categories to woocommerce ...