The built-in taxonomy 'post_tag'.

learn more… | top users | synonyms (1)

0
votes
0answers
5 views

How to list categories within tags?

I'm currently working on an ecommerce site with WooCommerce. I'm using product categories for product types (e.g. cards, DVD's), and product tags for topics/themes (e.g. Christmas, children). What ...
1
vote
1answer
16 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 ...
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: ...
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 ...
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 ' . ...
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
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 ...
-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
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 ...
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
31 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
0
votes
2answers
33 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' => __( ...
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" ...
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 ...
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 ...
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 ...
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'. ...
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
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
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 ...
0
votes
2answers
30 views

Show all tags NOT applied to post

I'm working on a checklist within wordpress – I have a huge list of posts and I want to tag them with checks that have been done for the post. However, I want to display all the tags not applied on ...
0
votes
0answers
14 views

How to compare 2 attachment tags against category tag

I need to compare 2 tags from an image attachment against tags that are used in categoryID=2. And only get returned the tag that is used under the categoryID=2. With that, I should get returned just 1 ...
0
votes
0answers
15 views

Allow only certain tags when category chosen

Is it possible to allow only certain tags when one category is chosen? For example I have mulitple categories: Fruits and Tools And then I have multiple tags: Apple, Hammer, Saw, Banana, Wrench, ...
0
votes
1answer
26 views

How to make tag pages look as /tags/%tagname%/ in the URL?

Example Tag's page, which involves all blog posts tagged with it, resides at /example-tag/ which is problematic for me since a post titled Example Post has the URL extension /example-title/. How can ...
0
votes
0answers
38 views

Exclude one tag while calling another one from the same post

I have a very specific problem. While displaying posts from one of my categories, I want to display below a selection of related posts using the same tag. The problem is that my posts all have two ...
-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 ...
0
votes
0answers
16 views

Assigning custom title in tag template

Wordpress (at the moment of writing the question): 4.4.1 The task: create tag pages with the following features: tag page URL ends in .html tag page display posts marked with the tag in specified ...
-1
votes
2answers
52 views

Tag custom loop show posts

i have a posts tag with 'php'.....i am using this code to show all posts tag with 'php' but it not work <?php query_posts('tag=$tag'); if ( have_posts() ) : while ( have_posts() ) : the_post(); ...
0
votes
1answer
18 views

Querying for specific tags

I currently have this code that pulls all of the tags and creates a list with links for them: <?php $tags_array = get_tags(); foreach( $tags_array as $tag) : $tag_link = get_tag_link( ...
1
vote
1answer
18 views

Search Posts / Pages with multiple options?

Here is what I am trying to accomplish. Need to design a website for Alcoholics Anonymous (local Chapter) to search for meetings. Need to search for multiple choices of meetings for example. Men's ...
0
votes
1answer
42 views

Exclude posts with certain tags in category archive

When we click a category link we find all posts under that category. I would like to hide posts from specific tag within that category, and to show a link which enable us to show the posts on that tag ...
0
votes
1answer
39 views

Wordpress title as keywords (tags) with excluded stop words

How to change normal sentence WordPress title to "tag like" list with excluded "stop words". Example: "This is one test post title about something." To: "one, test, post, title, something" This ...
1
vote
1answer
24 views

How get permalink for the current category or tag?

There was a problem in which it was necessary to get permalink of the category/tag viewed. I have not found standard functions, everything other authors offered was only for categories. I resoved the ...
0
votes
1answer
32 views

Hide category name using mod_rewrite

I have a website with at least 3 categories. I have set one of them as the default category. Next step was that I need to have the category slug of the default category to be hidden from the URL ...
0
votes
1answer
62 views

Include tags from array, ignore the rest in get_the_tags

I'm trying to exclude a large amount of tags from being displayed in get_the_tags function. I have successfully excluded tags using this code: <?php $links = array(); foreach ...
-1
votes
1answer
31 views

How can i get tag without />?

I see that wordpress make tag meta, link, style, img, ecc.ecc. like theese: <img /> <meta /> <link /> <style /> with the /> at the end of the tag. How can i get tags like ...
-1
votes
1answer
34 views

Show all tags but exclude a certain tag

I'm trying to get it work with tag__not_in but it doesn't work. $args = array('order' => 'DESC', 'orderby' => 'count', 'number' => '70', 'taxonomy' => 'post_tag', ...
1
vote
2answers
61 views

Script to duplicate categories as tags

I have a site with 900+ posts, each with about 3-5 categories. I would like to copy each of the categories to be a tag and am looking for the SQL code to do just that. I do not want to delete or ...