The built-in taxonomy 'post_tag'.

learn more… | top users | synonyms (1)

5
votes
3answers
31k 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
1answer
17 views

Exclude Custom Post Type & Pages From Auto-Tag Function

I am happily using this bit of code to auto-tag posts by author (thank you again cybmeta): add_action( 'save_post', 'add_authors_name'); function add_authors_name( $post_id ) { $post = get_post( ...
0
votes
1answer
56 views

Adding An Author Tag To Posts Automatically

I have been researching how to automatically tag a post by author, so if "Peter Parker" authors a post, that post would automatically show up with a tag "Peter Parker." This is because I will have a ...
0
votes
0answers
10 views

Hide Certain Tags on Single Post Page

I'm trying to hide certain tags from single posts pages. I've googled and found 2 codes but both are hiding the whole post page. I'm using a theme that needs using 2 tags ticker and slider to show ...
4
votes
3answers
145 views

Better way to get tag stats?

I have over 4000 posts. I am trying to query all the posts and get the count of tags each post has and sum up posts count based on number of tags the post has in dashboard. The posts count shows up ...
0
votes
1answer
13 views

Creating a unique, linked list of tags from a specific category?

I am hoping to make a custom tag widget which displays all tags from a specific category. The code I am currently using is working correctly, but it is displaying duplicate tags. I would like to ...
0
votes
0answers
8 views

Can I set a permalink that filters by three categories and a tag, and will be recognised for caching?

I run http://www.oldies.org.uk, a charity website for rehoming elderly dogs. It's been running on Wordpress since 2005 and has only recently begun using permalinks instead of the default query string ...
0
votes
0answers
17 views

register portfolio tags taxonomy

I need to add a tags system in the portfolio. I found similar requests but I found some conflict in adapting solutions to my theme. This is my code: // titles $labels = array( 'name' ...
0
votes
1answer
22 views

In what context should Categories and Tags be used

I was thinking on writing up a post called "Review: Ni no Kuni" which would be a personal review on the title game having finished it. Under categories i could make a "Reviews" Category to group all ...
2
votes
2answers
40 views

Convert IPTC keywords to blog post tags

I'm a total newbie regarding to wp or coding or anything like that but I manage to get things done with a bit of reading. I need a way to convert IPTC extracted keywords that are attached to it's ...
-3
votes
1answer
351 views

Get all posts without tags

I'm working with a tag plugin. Is there a WordPress way to get_posts or query all posts that have no tags? EDIT I had already queried the WP Codex, search Stackexchange and Google for a related ...
-1
votes
1answer
24 views

Search and replace titles of posts with specific tags

I'd like to do a search and replace of post titles but only affect those with a specific tag. Eg, Change post title: This is a new post to: This is an old post but on only on posts that have the ...
0
votes
1answer
366 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
0answers
12 views

Design: year of work creation: custom field, tax, something else?

Let's say I have to build a site for publishing old books and manuscripts or histories about those books and manuscripts. For many of them they knows a year of creation/publication, but for many ...
0
votes
1answer
24 views

Woocommerce Filter Main Loop by Tag [closed]

Two questions: How can I modify the query results of the archive and search pages exclude the product-tag "audio"? How can I make the Recent Products shortcode of Woocommerce exclude the product-tag ...
0
votes
2answers
972 views

How to add shortcode tags in single.php [on hold]

In my theme has one shortcode tags to display tags of post and function to load content post. But in function doesn't include shortcode tag. Now I want to add it to function but i don't know how to do ...
0
votes
1answer
16 views

add custom tags for custom post type in wordpress

I have many custom post type and I want two of them to be relate by tags. These tags are only useable to these two custom post type only. like I have two custom post type 1. books 2. writer and I ...
0
votes
0answers
8 views

wp_tag_cloud based on user id

I am using the wp_tag_cloud, however i want to filter this by the taxonomy and a user id, thus having a user tag cloud, I have seen a few hooks but not had much success. So wanting to keep this on the ...
0
votes
0answers
7 views

how to get Tag in menu populated with recent posts submenus

I would like to know if it would be possible to implement an option to "populate" each tag menu items of my WordPress site automatically with links to recent post as submenus. In other words, when ...
0
votes
1answer
10 views

Issue attempting a wp_query_posts with tags

Having an issue trying to query the most recent posts using the tag, in this case, trending. I used the following code but I get no results. If I switch out 'tag' to 'post_type' it will work: ...
0
votes
2answers
40 views

How to selected which tags to print, instead of printing the whole tag list?

When having this: $tag_list = get_the_tag_list( '', ', ' ); I substituted the meta print: printf( $tag_list, $category:list, etc ); by this: $printArray_tag_list = explode(', ', $tag_list); ...
1
vote
1answer
56 views

Sticky posts on home page, search, tag and archives without plugin

I have a question today. I am looking for a solution to make sticky post available on my website. But, i just got it work on homepage with the code below. function wpb_latest_sticky() { /* Get all ...
0
votes
0answers
10 views

Two or more tag inputs

I wonder if this thing is possible in wordpress post. Two or more input tags in a single post. basically they have different names. or if not, how to make it using advanced custom fields? Please help ...
0
votes
1answer
417 views

If tag exists, then echo once

I have the following code and I'm trying to check to see if a specific tag exists, and if so, I need to echo it once. The problem is when the tag exists in multiple places, it echos multiple times. ...
0
votes
2answers
555 views

WP Query - duplicated posts once including tags in search results

I running WordPress on IIS & SQL server. As some of the plugins do not work correctly with DB ABSTRACTION I am using a lot of functions.php filters as so on. To make my search results include ...
2
votes
3answers
453 views

Why is there no global function in wordpress to return the output of any function call?

We have template tags and some functions that start with get. Sometimes it would be just nice in themes to do like: $title = the_title(); to use the html later on. This is just a simplified ...
3
votes
1answer
1k views

Exclude Specific Term from Search

It is possible to search for posts with a specific term by appending the URL with: ?&term=abc Is it possible to do the opposite and search excluding a specific term? Something like: ...
0
votes
0answers
17 views

Custom tag archive not working on second page

Here is what I'm trying to accomplish: I have a custom post type called entry. When users click a tag in the site's tag cloud, I want to show them all posts of the type entry with that particular tag. ...
0
votes
2answers
938 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
20 views

Track tags in Google Analytics? [closed]

I'd like to track tags for our posts in GA. Is there a way to submit them and have them associated the same way they apply in Wordpress, so that you can see how a particular tag is doing? For ...
0
votes
1answer
24 views

Custom display for homepage, tag and author pages

I need to have pages where the first post on the page has a special format. I've figured out how to modify loop-home.php to get the result I want outputted on the homepage. I want to have the same ...
0
votes
1answer
12 views

Remove Url from Tag

I've google searched and i cant seem to find what i hope to achieve. I'm trying to display the tags without the hyperlink, that is this: <a href="blalblalba.com/tag/tagname/">tagname</a> ...
1
vote
3answers
2k 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 ...
-1
votes
1answer
16 views

How to do query_posts on tags pages

So I am using the tags.php on my WordPress site to create special featured pages; what I would like to do is create a featured area on the index of every page that contains the first five posts. I ...
1
vote
1answer
387 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 ...
2
votes
2answers
560 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= ...
0
votes
1answer
501 views

Custom WP_Query for current category (in category.php)?

I'm using a small code to display a tag list for the current categories like below: <?php $custom_query = new WP_Query('posts_per_page=-1&category_name=overnachten'); if ...
0
votes
1answer
28 views

Use Tags to Query Associated Multiple Posts and Get The Average Of Custom Field Values

I have created a custom post type named “Rating” that I’m using to add customer rating sections to my website. Each rating post has the ability to have a: Title Comment section Featured Photo ...
0
votes
0answers
24 views

How to display Category name in tag's URL

Iam displaying tag's in my sidebar of blog page now I need to have post category name in tag's url for example we get url like this http://example.com/category/blog/testpost when we click on post ...
0
votes
0answers
52 views

How to get all tags of a custom post type by id

simple question, how to get all tags of a custom post type by id? post_type=product. i have tried with http://codex.wordpress.org/Function_Reference/wp_get_post_tags in my post loop and the print_r ...
0
votes
1answer
8 views

How to restrict users in edit post that can just select exists tags? not add new

How to restrict users in edit post that they are just can select exists tags in select box and can not add new tags in Tags meta box?
0
votes
0answers
16 views

Show related posts by tag on a page

I've enabled tags on pages to help with a website which features mountains and walks. Each mountain has its own page. Walks are done via posts. I'd like on each mountain to show any walks which have ...
2
votes
2answers
2k views

Display posts by tag on page

I'm trying to create an advanced WordPress page that shows the regular content, plus a second section on the same page that shows the latest posts from X tag. For example, a page is created about ...
0
votes
0answers
27 views

Add Tags to Post from Multiselect form field

I create for my project Frontend submisson form. And want allow user before posting select Tags for post from dropdown list. List of Tags I call: <select name="post_tags" id="post_tags" ...
0
votes
1answer
17 views

Exclude Tags by Array

and thanks for any help!. I'm trying to display all of the tags except ones that start with a token ("Author: "). I have figured out how to exclude a single tag (just typed it into the exclude ...
0
votes
2answers
32 views

Echo tags with an if statement and display php inside of the IF?

I am having issues displaying tags only if there is tags and including php inside of it as well. This is what I tried but nothing is showing. <?php if( has_tag() ) { ?> <!-- Start of ...
4
votes
3answers
2k views

A plugin to show post tags in a widget

I'm looking to show the tags of a post within a widget. I know this is hard because it's outside of the loop, but has it been done, is there one available? Thanks for any assistance. Hudson
0
votes
1answer
31 views

How to remove specific categories from tag archives?

I need tag archives don't display specific categories. Thanks!
0
votes
1answer
66 views

Organizing The Custom Post Type with Taxonomies / Parent Posts

I am trying to make a custom post type called 'Songs'. It will have only two fields being 'Title' & 'Audio File'. I would also be creating a tag taxonomy field called 'Genres' so that admin can ...
0
votes
0answers
32 views

Manually add URL for Post Tag Links

I want to be able to set a custom URL to tag links, I've checked in the tags section under post but there isn't a box for me to put a custom URL in. Is this possible with WP out of the box, or does ...