The built-in taxonomy 'post_tag'.

learn more… | top users | synonyms (1)

21
votes
1answer
9k views

The Difference Between Hierarchical and Non-Hierarchical Taxonomies?

The question is "What is the Difference Between Hierarchical and Non-Hierarchical Taxonomies?" This question really stumped me at first so I figured it would be a good idea to show the difference to ...
21
votes
5answers
17k views

Adding Fields to the Category, Tag and Custom Taxonomy Edit Screen in the WordPress Admin?

The question is "How do I add one or more fields to the Category, Tag and Custom Taxonomy Edit Screen in the WordPress Admin?" This question was asked on the wp-hackers list August 1st 2010 and I ...
11
votes
2answers
5k views

Is There a Difference Between Taxonomies and Categories?

I've been reading the codex for WordPress closely and am confused about the vague definitions between what a Taxonomy is and what a Category is. For that matter, term is also a word that is used in ...
11
votes
4answers
1k views

What is the difference between a “tag” and a “category”?

I have been using WordPress for several years, but have yet to see a reason to employ tags over categories or tags with categories. What is the thinking behind the two, and when are each appropriate? ...
10
votes
3answers
264 views

Posts with at least 3 tags of a list of tags

There is a set of tags against which posts that have at least 3 of those tags should be matched. Say there is the tags {foo, bar, chocolate, mango, hammock, leaf} I would like to find all posts with ...
8
votes
3answers
3k views

How can I allow commas in tag names?

I want to allow commas in tag names? For example, "hello, world" or "portland, or" but Wordpress keeps separating them. I can do it from the categories page: And it shows up fine. But anything ...
7
votes
2answers
21k views

How to customize woocommerce related products? [closed]

I have the following lines of code in my website that will display the related products at the bottom of my single product page in WooCommerce... functions.php: // display upsells and related ...
7
votes
1answer
1k views

How to remove the tag cloud from custom taxonomy admin page?

When I register the taxonomy I have this which I thought might hide it: 'show_tagcloud' => false The default category page does not show a tag cloud so why does my custom taxonomy page, how do ...
7
votes
2answers
430 views

Show all post tags on post edit screen/sidebox

I am looking for a way to show all post tags on post edit screen/tags sidebox in WordPress admin section. By default WordPress shows 45 most used tags but I need a way to list all tags there or at ...
7
votes
1answer
2k views

Can't custom taxonomies have same terms (slugs) as categories?

I knew that it's not possible to have same terms (term slugs) under categories and tags, but surprisingly, as I realized today, that's the case with custom taxonomies as well. So for instance, if my ...
7
votes
1answer
644 views

Assign a Class to the Current “Tag” for Formatting

Essentially what I am hoping to replicate is something like the "current-menu-item" class that is applied to WP Menus. My client is wanting to use Tags as a sub-nav, and I've managed to get the tags ...
7
votes
0answers
366 views

Wordpress: Can I add categories/tags to all sites in my network at once?

I've installed Wordpress 3.1.2, and have enabled the multi-site network. Each employee in my department can now have their own company blog. I was hoping to provide a bunch of pre-defined categories ...
6
votes
2answers
3k views

On the WordPress Admin section how do I link to submenu pages created for a plugin?

So i'm trying to create a WordPress plugin and I've created some menu pages using this provided function: add_submenu_page('my_plugin_menu', 'Edit record page', 'Edit record page', 'manage_options', ...
6
votes
1answer
2k views

How do I display a tag cloud under my post that only shows tags from that post?

I've be looking to add a tag cloud under my post that only shows tags pertaining to the post. The tags shown should be in a tag cloud format; the post tags that have more post tagged with it will be ...
6
votes
4answers
2k views

Plugin to restrict non-admin user to existing tags

Is there a plugin that would restrict non-admin users to only existing tags? I could have used categories for this, but it will be difficult to display with a large population (~1000) of tags.
6
votes
2answers
3k views

How to configure Wordpress to be able to use <script> tag inside posts?

I'm looking for a solution that would allow me to write tags inside posts and be sure that the visual editor or wordpress will not alter them. The same problem can apply for other specific HTML code ...
5
votes
6answers
2k views

Check if current page has given tag ID

I am using custom taxonomies. How to check if current page has tag_ID = "XXX" ? If that is any help the URL form WordPress admin looks like this: ...
5
votes
3answers
599 views

Add tag to post api wordpress

I have been googling around but could not find the "add tag to post" api/codex. Does anyone know what it is ? Also, the "delete tag from post". Thanks.
5
votes
3answers
742 views

Separate Media Library for each user

I'm creating a theme for a client and one of their requests is to allow users to upload images for their own use, but there may be an option to share the images. Here are some of the caveats: Each ...
5
votes
3answers
35k 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' => ...
5
votes
3answers
1k views

How to Get Next or Previous Post in a Specific Tag?

I'm trying to create links to the next and previous posts within a specific tag (on the post page itself), but I can't seem to find a plugin or source that does this. I want to be able to something ...
5
votes
5answers
2k views

Best way to show map of tagged posts?

This seems so simple that I'm tearing my hair out. I want to add a page with a map showing all the posts with a particular tag. I want each marker to pop up with the title and the preview, allowing ...
4
votes
3answers
205 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 ...
4
votes
1answer
430 views

How can I let my audience tag my posts?

I have over 400 interviews on my site and my audience keeps asking me for a way to sort through them. I don't have time to tag all 400 interviews. Do you think there's a way for my audience to tag ...
4
votes
1answer
586 views

Can I turn off write-in tags/taxonomies?

One of the big problems my site staff has had with tags is the overwhelming number of similar or duplicate tags, due to the write-in ability. I'm about to add new custom taxonomies to my site for ...
4
votes
1answer
90 views

How to not allow users to create new tags, but allow to them to use existing ones

I want a certain role to be able to add new tags, but other users should just be able to use the text bar to search for existing tags. I know I can hide the tag bar in the sidebar, but I don't want ...
4
votes
3answers
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). ...
4
votes
2answers
4k views

Adding post tags to custom post types

Standard WordPress post types have "Post Tags" which can be used to "tag" posts with similar content, makes those similar posts easily accessible just by opening that particular tag page and receiving ...
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
4
votes
1answer
763 views

Control term order on a per-post basis

I have a taxonomy in which term order matters, but varies from post to post. So I want to be able to set the order that terms are displayed in on a per-post basis: My first post | Tagged: Apples, ...
4
votes
1answer
752 views

<!--More--> not functioning

I have the following blog template with the the_content outputted. I have placed <!--more--> However it does not appear to be functioning, http://www.milknhny.co.uk/DVine/?page_id=19 Is there ...
4
votes
1answer
309 views

How to use the Tag description as the title attribute?

I'm trying to use tags to create a list of cross references for each post and want the tag description to show next to the tag and/or as the title attribute for the hyperlink so the description shows ...
3
votes
4answers
5k views

How to display non-hierarchical taxonomy as terms with checkboxes?

I'd like to have a non-hierarchical custom taxonomy displayed in the add/edit posts admin screen for a custom post type. Obviously, when the custom taxonomy is non-hierarchical, the meta box that's ...
3
votes
1answer
2k 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: ...
3
votes
3answers
4k views

Custom columns on edit-tags.php main page

I am trying to add custom columns to edit-tags.php for a custom taxonomy that I have created. This custom taxonomy is called equipment-types and it only applies to one custom post type called ...
3
votes
3answers
1k views

Plain-text tag list?

I'm looking for a way to display a plain-text list of tags to use as classes on my post elements, I've been trying $tags = get_tags(); $tag_list = ""; foreach($tags as $tag){ $tag_list .= ...
3
votes
1answer
2k views

How to get the url to tag & category base set by the user?

I'm searching for half an hour now on how to get the url/permalink base in Wordpress (the 'category' and 'tag' value set in the backend). Could you please point me in the right direction? I want to ...
3
votes
3answers
2k views

Undefined property: stdClass::$labels in general-template.php post_type_archive_title()

I've got a custom post type with a standard tag taxonomy added to it like so: 'taxonomies' => array('post_tag'). I've added some tags to some posts of this CPT which are display on the front-end ...
3
votes
2answers
1k views

remove tags from posts in php

I feel like this should be a simple question, but I can't figure it out. If I have a post_id, how can I remove a particular tag from that post in php?? I know how to update meta information, but tag ...
3
votes
1answer
1k views

Getting an ordered list of tags - via wp_tag_cloud or not?

I'm trying to output an ordered list of the top five tags for my site into the sidebar. At the moment, I'm using wp_tag_cloud like this to get it to output a nice <ul>: ...
3
votes
2answers
475 views

Tag selector like stackexchange?

I'm creating my own form based on this and I'd like to have a tag selector which is similar to the one on StackExchange. I can roll my own but I was wondering if something similar already exists. ...
3
votes
1answer
2k views

Widget to display custom taxonomy tag cloud

How to alter the default widget to display a tag cloud of a custom taxonomy?
3
votes
1answer
67 views

How to allow user to perform search by more than one tag

I have a few dropdown select option in my wordpress sidebar: Whenever a user selects an option from any of the dropdown, they are directed to the search result page: ...
3
votes
2answers
76 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
212 views

In the tag archive - display count of posts for each category they belong to

I will try to be as explicit and short as possible. Suppose I have a site for books. I have three categories named adventure, romance and fantasy. Then, I have a tag called old books. In the top of ...
3
votes
1answer
3k views

Get posts with tag all post types

I'm trying to get all posts that have a specific tag, regardless of what type of post that is. I've tried every solution I've found (here on SO and further), but nothing works: I always only get the ...
3
votes
1answer
2k views

How important are WordPress tags for SEO purposes?

Am I missing out SEO-wise by not including any tags in general when I write posts on my blog? How do they help a site rank better?
3
votes
1answer
712 views

Individual css class for each tag in wp_tag_cloud

Help, this is probably the best way to have control over the styling of the wp_tag_cloud ... I was looking for a way to add size based classes to my tags within the tag cloud widget. The problem here ...
3
votes
2answers
1k views

get_post_ancestors returns empty

I'm using WordPress to organize documentation for a software product I'm supporting and have hit a bit of a snag. I have multiple FAQ documents (saved as pages) that I need to be separate pages but ...
3
votes
3answers
2k views

Use tag interface for hierarchical taxonomy?

Custom taxonomies are great. I registered a bunch of new taxonomies and wrote an importer to import our hierarchical taxonomy into WordPress a la XML. The problem is one taxonomy has about 1,100 terms ...