The built-in taxonomy 'post_tag'.

learn more… | top users | synonyms (1)

1
vote
0answers
11 views

Automatically Add New Tags to Sub-menu

Been searching for any related plugins or info. about this case but didn't find anything relevant or working. I need every new tag that is added to a post automatically appear in a menu as a sub-menu ...
0
votes
1answer
12 views

Set post tags using tag ID

I want to set post tags to a new value. Is there a way to use the tag ID to do it? The wp_set_post_tags only accepts the tag name or an array of tag names. <?php wp_set_post_tags( $post_ID, $tags, ...
0
votes
1answer
24 views

how to see P and BR tags in tinymce?

As a developer, I'd really like to have the ability to see every tag written out on the editor in source mode. Is there a way? Some filter, action, or so?
0
votes
1answer
20 views

Custom posts - tag pagination

I'm using the following code to output the custom posts that belongs to a tag: add_filter('pre_get_posts', 'query_post_type'); function query_post_type($query) { if(is_category() || is_tag() ...
-1
votes
0answers
15 views

Woocommerce sort products in dropdown menu by product tags

I was looking everywhere for a solution to this, but to no avail. Is there any possibility of a function to have products sorted by "Product Tags", with this option added to the default Woocommerce ...
0
votes
0answers
11 views

Using Tag name in link to post

I have 2 Tags one is named 'The Guardian' and the other is named 'New York Times' assigned to some posts. Right now my link to those posts on my home and category page says 'Read Full Article' and ...
0
votes
0answers
11 views

Query custom post in tag archive

I created a custom post and added the standard Wordpress tag functionality: function btp_work_register_post_type() { $args = array( 'label' => __('Works', 'btp_theme'),'labels' ...
0
votes
0answers
10 views

HTML tags in comments

I'm using latest Wordpress & Thesis theme. I have a technical blog where i want users to be able to put comments in the code. When i try to add a code to the comment (as a non logged in user) ...
0
votes
0answers
10 views

Trending Tags based on post views

I'm looking to display a list of the most trending tags on my wordpress blog - based on views that the posts within these tags have had, with a max tag count of around 10. I've looked into the ...
0
votes
1answer
30 views

Add text to Title dynamically using tags

I am trying to add custom text to title according to the tag selected. For example: If I've added a tag named 'Private', The title should look like "Page Title From title field + custom text ...
0
votes
0answers
24 views

Styling tags in different ways

I want to display tags, but in two different styles in the same post: First Style: I want some specific tags to be displayed like this: "My text blahblahblah" tag_1, tag_2, tag_3, etc. The tags ...
0
votes
0answers
9 views

Is there a way to tag specific paragraphs?

A blog owner is posting daily posts. In each post there are several items, each for a different subject. The owner wants to tag each item for better navigation and findability. The owner does not ...
0
votes
1answer
29 views

Using get_term_by to get tag id

I want to get posts that do not have a certain tag. I am having trouble retrieving the tag-id. The term id comes up as 0. Here is my code: $tag_name = 'my-sticky'; $tag = get_term_by( 'name', ...
0
votes
1answer
26 views

Offline Wordpress Application

I have to Document some Work and i thought to use WP as a platform to work with others. We have articles, pictures in different categoried and could use the tag function. A Search function is ...
0
votes
2answers
34 views

how can I use WP_Query to exclude a specific tag.?

I have the following working code for a query on a specific category and tag slug: $args = array( 'category_name' => $cat_name, 'tag' => $tag_name, 'post__not_in' => $sticky ); $my_query ...
0
votes
1answer
29 views

Wordpress tinyMCE Keep Wrapping <p> Tags To HTML Codes When Saving

Wordpress tinyMCE keep adding <p> tags when I saved my custom post types in visual mode opened! I had searching for many solutions, but not working. Here is the solution that I found, but this ...
0
votes
2answers
28 views

404 error when i try to search by category or by tag

I have following problem. When I try to search by tag or by category, I have 404 error. It means that when URL is like "domain.com/category/smt/" or "domain.com/tag/smt/", I have the error. I tried ...
0
votes
0answers
28 views

Display posts with current tag, organized by category

I'm creating a list of posts that have the same tag as the current post (this is in a single-post template). I need to display those posts organized by category, with the category name appearing once ...
2
votes
0answers
26 views

Showing WP_Error message with admin_notice action hook

I have just get an answer to one of my question http://wordpress.stackexchange.com/a/189737/1581 but the problem is I want to print a error when ever user will insert tags of more than two words ...
1
vote
1answer
30 views

Limit tag word count

I want to limit user to enter post_tag only words of two not more that. If any of the tag is more than two words the user caanot publish the post. I need to use this function to count word. function ...
2
votes
1answer
44 views

How do I make a custom taxomony appear like tags?

I have a custom taxonomy which I want to behave in the same way that tags do on the post edit screen, instead of how categories appear. I have tried passing in the 'show_tagcloud' => true ...
0
votes
2answers
29 views

Using wp_tag_cloud with only current post tag with special class

I am trying to output all the tags (custom taxonomy) without link, and add special class to current post tags. For example: if there are 10 tags but current post has 3 of them applied, then it should ...
0
votes
1answer
12 views

Remove from Google Tags with less than 2 posts

I would like to write some code that remove from google the tag pages which contains only a few posts. I can do it by modifying the meta tag and the HTTP response header to 410. But how can I ...
0
votes
0answers
31 views

WordPress Tags and Hierarchy (Parent - Child relation)

I'm curious why WordPress wouldn't support the parent->child hierarchy in tags taxonomy, so let's say if you have a tag: Cities (which is parent) and this one will have the cities listed as child ...
0
votes
1answer
18 views

getExcerpt: Make ellipsis appear only if character limit is reached

I have a function called getExcerpt that displays the first 140 characters of an excerpt and after that, an ellipsis appears. The call in my template is like this: <?php echo get_excerpt(140); ...
0
votes
1answer
30 views

Auto-Tagging a Custom Post Type

I have a custom post type called 'community' and I am trying to automatically generate the tag 'community' upon publishing anything from that custom post type. In layman's terms, a kind of 'if this is ...
0
votes
1answer
17 views

Shortcode tags appear on mobile themes

I want to use a mobile theme plugin for mobile formats. I tested five different mobile plugins and they all display my shortcode tags upon rendering on a mobile device. The user will see the ...
0
votes
0answers
42 views

Querying Product Tags - WooCommerce

I'm trying to return products based on tags, but my code does not seem to be functioning correctly. Products are being returned, but the query does not use the $tags or $cat variables and as a result, ...
0
votes
0answers
23 views

Neverending tag problem

I'm having an issue with post tagging on a site. Every time I enter a tag, it becomes part of the same endless string. Any ideas? Thanks!
0
votes
2answers
34 views

Creating attachments archive in tags and categories

Per this question (How to create an attachments archive with working pagination?), I've been using the following function to have archive pages display attachments as well as pages and posts. It was ...
0
votes
1answer
18 views

Separate the tag by comma [duplicate]

I am looking for a solution to separate the tag names by comma. The tag name i am using is without a link. Here goes the code: <?php $my_tags = get_the_tags();?> <?php echo ...
0
votes
2answers
59 views

Changing permalink from /postname/ to category/postname/

I have a website where it consists more than 800 posts, At present my permalinks structure is /%postname%/, but due to some reasons I want to change it to /%category%/%postname%/ I have implemented ...
0
votes
1answer
34 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
0answers
18 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 ...
0
votes
0answers
12 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 ...
4
votes
3answers
186 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
0answers
24 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
27 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 ...
0
votes
1answer
91 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 ...
2
votes
2answers
59 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 ...
-1
votes
1answer
31 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
91 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
1answer
22 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
1answer
33 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
12 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
19 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
50 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); ...
0
votes
0answers
12 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 ...
2
votes
1answer
123 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 ...