The built-in taxonomy 'post_tag'.

learn more… | top users | synonyms (1)

1
vote
0answers
9 views

Convert non-hierarchical taxonomy to hierarchical after registration

I have a custom taxonomy that was created by WooCommerce (product_tag). I'd like the taxonomy to be hierarchical so it behaves like categories instead of tags. I need to do it after the taxonomy ...
1
vote
1answer
33 views

Display posts from only one post form in custom query and exclude in main query

I am trying to first display four posts with post-format-aside (all assigned to current tag) and then display the "real" archive (exclude post-format-aside) for the specific tag. Right now I am using ...
0
votes
1answer
25 views

Remove P tags from images

I'm using WordPress 4.2.2 and every time I add an image to the wysiwyg it wraps the outputed image in a paragraph tag. I need to strip out these tags. Everything I seem to find online is from 2011 ...
0
votes
1answer
42 views

How to check if there are posts with the same tag

I have this code but I can't get to delete the div with the class otrasObras <?php $test = ""; $posttags = get_the_tags(); if ($posttags) { foreach($posttags as $tag) { $test .= ',' . ...
0
votes
1answer
30 views

Make tag archive display post are ordered by post format

I would like to set up an archive page for tags where posts are displayed separated depending on post format, first post-format-aside then an archive with all posts except the posts already displayed, ...
0
votes
0answers
70 views

Recent posts by taxonomy and filter by tag

I would like to display in the single page sidebar all the posts related with the Current Custom Taxonomy (taxonomy name: authors) and also filter the list of posts by a tag or category. I found this ...
0
votes
1answer
23 views

Display posts by tag

I'm trying to display a list of posts by tag within a post. I've cobbled together the following code which I wanted to use in a shortcode, but I'm getting nothing displayed… $args = array( 'tag' ...
0
votes
0answers
18 views

Jetpack Publicize to Twitter: hashtags and images? [on hold]

Is there any way to add one or two tags from the post to the tweet that Jetpack share when Publicize function is enabled? I am quite surprised with the way Publicize works, at least in my case. I ...
0
votes
1answer
26 views

showing tag beside catagory

thanks for your guidance, here is one last but not least thing for me to learn, i am using Today news wordpress theme, since with your help i have moved my process from category to tag based ...
1
vote
1answer
19 views

sort tags by tag ID in admin panel

I want to sort tags list by tag id in my WordPress admin panel. There is 1000s tag in admin tag list and I want to know which are the latest added tags, but there are options to sort with Name, ...
0
votes
2answers
34 views

No duplicate tags by category

I have script to show list tags from category and works very well. <ul class="inline-list"> <?php query_posts('category_name=lain-lain'); if ...
0
votes
4answers
104 views

Remove href tag from wp_postmeta in 34,000 posts?

I'm using Godaddy Hosting, PHP 5, and Wordpress 4.2.1 I have 34,000 + posts that need outdated href tags removed. I am able to remove tags, one post at a time, by using this code in a page template ...
0
votes
0answers
13 views

Switching between Text / Visual Editor makes alt text disappear

I am working on a Wordpress site and the images have lightboxes that has this coding in the <a> tag: <a href="#" class="someclass" alt="somealt"><img src="someimg.jpg"></a> ...
0
votes
0answers
21 views

Change widget: categories to tags

I have a theme with a widget that displays posts from a category. How can I change it to tags? This is the code: /** * Plugin Name: Middle Buzz Widget */ add_action( 'widgets_init', ...
4
votes
1answer
84 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 ...
1
vote
0answers
21 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
14 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
43 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
23 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() ...
0
votes
0answers
15 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
16 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
12 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
14 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
31 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
35 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', ...
1
vote
1answer
31 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
41 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
44 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
30 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
34 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
33 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
37 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
47 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
34 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
14 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
45 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
22 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
37 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
21 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
75 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
26 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
39 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
25 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
70 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
42 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
32 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
199 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 ...