The built-in taxonomy 'post_tag'.

learn more… | top users | synonyms (1)

1
vote
1answer
355 views

How to echo tag description on loop-page.php using WPeC 3.8

I'm trying to display the 'Tag Description' on my tagged pages. I've added an if statement to loop-page.php already to only show custom text when a tagged page is being displayed... <?php } elseif ...
1
vote
1answer
658 views

How to rename 'Tag Base' with WPeC 3.8?

In Wordpress>Settings>Permalinks there is an option at the bottom of the page to change the 'Tag Base'. I've entered 'testtag' in this option and saved, but my tag pages are still displaying as ...
1
vote
1answer
201 views

Wordpress “Categories to tags converter” not working. Pointing to import.php instead

I just imported my posts from blogger into wordpress. In doing this, the tags were converted to categories for some strange reason. I am now trying to convert them back into tag using wordpress' ...
1
vote
1answer
578 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 ...
1
vote
2answers
736 views

limit a list of tags to one category [closed]

Sorry if this has already been asked, but I am attempting to limit a list of tags to one category, in a couple different spots on my web page. I have this code: <?php $tags = get_tags(); ...
0
votes
2answers
255 views

Allow AJAX call to other roles than admin

On my website, registered users (subscriber role) can send drafts and, if admins validate them, they are published. I'm trying to add a tag box to frontend editor used to send new posts. To implement ...
0
votes
1answer
140 views

How to rename 'TAG' to 'TOPIC'

i want to rename TAG to TOPIC and url it should be wordpress.stackexchange.com/tag/ to wordpress.stackexchange.com/topic/ is it possible ?
0
votes
3answers
88 views

how to change # of tag posts on /tag page?

I have my blog page limited to 5 posts on the main page, which I'm happy with. However, I want my tag pages to list much more, maybe 15 or so. How do I most easily make this change? There's no ...
0
votes
3answers
996 views

How to totally get rid of Category in my blog?

I prefer using tags and have no interest in using the categories. All my posts now are labeled with a category named "Uncategorized" and I want to turn them off! I want no more categories at all. How ...
0
votes
1answer
2k views

Filter query_posts by tag slug on “Tag Archive” page (when tag is 2 or more words)

I'm using the following to bring up a tag archive page: <?php query_posts( "tag=". '' . single_tag_title( '', false ) . '' ); ?> This works perfectly for all tags of one word only, but any ...
0
votes
1answer
392 views

how to programmatically change post tags

Is there a php function which can add/remove tags of posts? If not how would I do this? I am looking for something like this: add_tag($post_id, 'tag-name'); remove_tag($post_id, 'tag-name');
0
votes
2answers
1k views

I want a query to list tags

how are you? I want to using a string query to list tags in array and using it. I write this query but dosen't work $tags= $wpdb->query("SELECT * FROM $wpdb->term_taxonomy , ...
0
votes
3answers
2k views

Have multiple category queries from the URL been fixed yet?

Is it now possible to query multiple categories from the URL? http://www.mywpsite.com/?cat=1+7 ? I think this has worked for tags for some time. If not, is there another way to achieve this?
0
votes
2answers
3k views

Custom post type tag archives don't work for basic loop?

I have registered a custom post type with the right parameters. By that I mean I have added 'taxonomies' => array('post_tag','category'), I have also tried using ...
0
votes
2answers
332 views

WordPress Tag Page Hook?

Is there any hook for a tag page, so I can alter it's content before outputting?
0
votes
1answer
147 views

get postviews under every posts in the main page

i need to display under every article in the main page, the respective number of post views. I tried with a plugin called wp.postviews but I cant figure out how it's works...it allow only the widget ...
0
votes
2answers
67 views

How to add class on term link?

I am looking for a way to add tag slug as a class. I can't figure out how to achieve this... Here is how I display the products tags <?php echo get_the_term_list( $post->id, 'product_tag'); ...
0
votes
2answers
182 views

Wordpress query_posts by tag doesn't work anymore(?)

I had this code running fine forever. Some days ago it just started outputting nothing (just the <ul></ul>). No errors in logs: <ul style="margin-left:0"> <?php ...
0
votes
1answer
92 views

Tag page only display 10 posts

I've had a problem with this for quite some time now and cannot for the life of me figure it out. I am using Multi-site and not sure if that has anything to do with it or not, so keep that in mind. ...
0
votes
2answers
134 views

Exclude page name from loop

I'm currently using this loop: if (is_single() || is_page() ) : if (have_posts() ) : while (have_posts() ) : the_post(); How can I exclude multiple pages within the loop? For an example, ...
0
votes
1answer
224 views

How to check if post has any tag?

I am displaying post tags like this: <div class="tags"><?php the_tags('<span>Tags</span>' , ' '); ?> </div> It works fine, but if the post does not have any tag, then ...
0
votes
3answers
64 views

Pull Tags But Not as Links

I'm trying to take a list of tags and list them on the page but without linking to their archive page. At the moment I'm doing this: <?php global $wp_query; $postid = $wp_query->post->ID; ...
0
votes
1answer
112 views

Display Posts Only with Specific Tag

I'm trying to only display posts with the tags Movie Trailers and Gaming Trailers but my loops are still displaying everything under the category /videos/ heres what I have category-videos.php: ...
0
votes
4answers
235 views

100+ terms in any taxonomy slows down post updates?

I'm making a fairly large (for me) e-commerce shop with Woocommerce. The shop has ±1300 products and will be going to ±2000 products. There are also ±2500 Product Tags. I've had speed problems on a ...
0
votes
1answer
179 views

tags not showing on custom post type single page

I have a single-events.php and in there i want to show the tags on that post. I have tried using this but nothing comes up. I have put it within the loop but still nothing. This is my code ...
0
votes
2answers
1k views

Stop wordpress from adding html tags but not remove my own tags?

I've been trying to make wordpress stop adding html tags to my content but leave my own html tags alone? Tried remove_filter( 'the_content', 'wpautop' ); and installed PS Disable Auto Formatting ...
0
votes
1answer
68 views

Tag with Alias capability

Is there such a feature in WordPress, that you have one tag which is the alias for another? Example: Muhammad Ali and Cassius Clay is the same thing. I have two separate tags for each. And I tag my ...
0
votes
1answer
61 views

merging terms programmatically while maintaining the count

This question is all about finding out the best way to handle merging similar terms. Let's say you have 10 posts tagged as Barack Obama and 20 posts tagged as Obama. and you want to group them all ...
0
votes
2answers
62 views

displaying tags in a widget

I have a widget which displays the latest projects as thumbnails on my website. When I mouse over a thumbnail the project title appears; this is the code for title: <h2><?php echo ...
0
votes
1answer
433 views

Add tags to pages

I'd like to be able to add tags to my pages just like I can with posts. What would I need to do to enable the tag editor/entry for the page editor?
0
votes
1answer
328 views

How to get the first tag of a post as a hyperlink?

This WordPress Codex document clearly shows how to get the name of the first tag of a post: <?php $posttags = get_the_tags(); $count=0; if ($posttags) { foreach($posttags as $tag) { ...
0
votes
2answers
467 views

Conditionals if tags exist?

I have the following code to display tagged articles with the same name as the page title, but I only want the to appear if the tag exists, otherwise it just says 'Related Articles' with no content. ...
0
votes
2answers
392 views

Dynamically output a class to an anchor tag depending on what tag is chosen

Not sure if this is possible, but what Id like to do is have the ability to output/add a class to an anchor tag depending on what tag I choose when creating the post. My reasoning behind this is to ...
0
votes
4answers
295 views

Can custom taxonomies items have attached properties?

Let's say for (a classic) example that I want to create an event custom post type, which will have assigned some specific fields/properties. One of them: location venue. Location venue, which I'm ...
0
votes
2answers
2k views

Taxonomy count per Post type

Below is the code i use to output the post tag (taxonomy) count/number. I want to be able to split the count based on post type that the taxonomy features in (rather than the total number). So i ...
0
votes
1answer
423 views

display tag slug as class per link in tag cloud

I would like to filter wp_generate_tag_cloud so each of the tag links include the slug as a class. More specifically, I would like to output "tag-" + the tag slug. Currently what is assigned as the ...
0
votes
1answer
313 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 ...
0
votes
2answers
684 views

Making tags appear as an Unordered list <ul> instead of a 'cloud'

I'm developing a a site using the wp e-commerce plugin, and it handles tags in pretty much the same way it would if I were using it for a blog instead of a store. The issue is that I want to use the ...
0
votes
3answers
274 views

Include related posts on a page

i've got several posts which are tagged with "design", but also a page called "design". my question: i put some text into the design-page and would then display all posts which are tagged by ...
0
votes
1answer
415 views

get_the_tags with separator control?

I'm building a function in theme options to give the site owner more control over the post's "Tags" collection that I display at the bottom of each post page. Specifically, whether to add anchor text ...
0
votes
1answer
317 views

Creating tags via API

I'm working on using the WP API to insert posts via AJAX. What's the proper way of adding tags dynamically to a custom post type? These tags would not be predefined, but rather be created on demand ...
0
votes
2answers
451 views

Problem with removing post tags programmatically

I use the following function in order to retrieve tags of a post, remove an element from the array and then set the result to the post: $post_tags = wp_get_post_terms( $post_id ); foreach ( ...
0
votes
2answers
248 views

How to not treat categories as tags in feeds

Basically we're (ab)using Category to determine whether a post is a News post or a Blog post, and so it's not a category in the traditional sense to the outside world. I'd like the category to not be ...
0
votes
2answers
419 views

Related Tags not in category

I'm using this piece of code to show related posts based on the tag of the post you are viewing. I'd like to modify is a little to exclude the related posts from the loop if they are in the same ...
0
votes
1answer
115 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 ...
0
votes
4answers
43 views

How to find the number of Tags a post has?

Is is possible to find how how many tags (and categories) a post has and to display it? something like this: when a post has three Tags and two categories, at the end of the post show that number ...
0
votes
1answer
90 views

term/tag not being saved for custom post type

I have been using a chunk of code as a plugin that was suggested in the answer to this question. Please check the code provided below instead of the one in the question, as I may have modified it a ...
0
votes
1answer
36 views

scaleability of tags

I had seen a post by Wordpress where they mention that they support unlimited 'tags' (as opposed to categories). Since php is driving Wordpress, would you mind explaining how/why they can make such a ...
0
votes
1answer
73 views

How to list tags from custom post type attachments?

So I am trying to list out all the tags created for images uploaded within my custom post type only. I added in a snippet of code to my themes functions.php file to enable media categories and tags: ...
0
votes
1answer
183 views

Highlight current tag using get_tags()

I'm nearly there with this, but I need to highlight the current tag link/archive being viewed: <ul id="blog-tags"> <?php $tags = get_tags(); if ($tags) { ...