The built-in taxonomy 'post_tag'.

learn more… | top users | synonyms (1)

2
votes
2answers
765 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
0answers
26 views

Exclude one tag while calling another one from the same post

I have a very specific problem. While displaying posts from one of my categories, I want to display below a selection of related posts using the same tag. The problem is that my posts all have two ...
0
votes
0answers
9 views

I want to do required field Tags Meta_box before publish a new post

I´m trying to doing a "required field" for the "Tags Metabox" when the user posting a new post, like the featured image metabox. But I'm not sure which is the best solution, via jQuery? or by hooking ...
4
votes
2answers
3k views

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?
-1
votes
0answers
19 views

list of recent post by specific tag or taxonomy

<?php $catquery = new WP_Query( 'category_name=s&showposts=10' ); while($catquery->have_posts()) : $catquery->the_post(); ?> <li><a href="<?php the_permalink() ?>" ...
1
vote
1answer
485 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 ...
-1
votes
0answers
14 views

Convert wordpress tags & categories to woocommerce tags & categories?

With the ref of Convert WordPress posts to products in WooCommerce I have learnt how to change wordpress posts to woocommerce products. How can i change wordpress categories to woocommerce ...
0
votes
0answers
15 views

Assigning custom title in tag template

Wordpress (at the moment of writing the question): 4.4.1 The task: create tag pages with the following features: tag page URL ends in .html tag page display posts marked with the tag in specified ...
0
votes
1answer
548 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') ? ...
-1
votes
2answers
36 views

Tag custom loop show posts

i have a posts tag with 'php'.....i am using this code to show all posts tag with 'php' but it not work <?php query_posts('tag=$tag'); if ( have_posts() ) : while ( have_posts() ) : the_post(); ...
2
votes
3answers
987 views

How to display post tags

I'm converting an HTML template into a wordpress theme and I'm having some trouble displaying the post tags within the functions.php file. What I would like to do is add the following code into the ...
0
votes
1answer
27 views

Why does my taxonomy have a category style div id?

I created two custom taxonomies. I created them using identical code and then finding and replacing the "name" with "name2". I've then looked at the post type page and there are two tag boxes to ...
0
votes
1answer
15 views

Querying for specific tags

I currently have this code that pulls all of the tags and creates a list with links for them: <?php $tags_array = get_tags(); foreach( $tags_array as $tag) : $tag_link = get_tag_link( ...
3
votes
2answers
851 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 ...
1
vote
3answers
4k 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 ...
0
votes
1answer
425 views

How To Add One Tag to Multiple Posts?

I have nearly 1500 posts in my wordpress blog. Before moving to a new design, I need to tag all these posts with one tag 'old'. How can I do this? I tried to bulk edit posts and it will always go only ...
1
vote
1answer
12 views

Search Posts / Pages with multiple options?

Here is what I am trying to accomplish. Need to design a website for Alcoholics Anonymous (local Chapter) to search for meetings. Need to search for multiple choices of meetings for example. Men's ...
2
votes
2answers
4k views

List all the tags from a custom post type

I'm looking for solution that will display all the tags that are used on a custom post type. I just want to list them all because I'm going to add jQuery code on each tag. :)
0
votes
1answer
31 views

Exclude posts with certain tags in category archive

When we click a category link we find all posts under that category. I would like to hide posts from specific tag within that category, and to show a link which enable us to show the posts on that tag ...
0
votes
1answer
26 views

Wordpress title as keywords (tags) with excluded stop words

How to change normal sentence WordPress title to "tag like" list with excluded "stop words". Example: "This is one test post title about something." To: "one, test, post, title, something" This ...
0
votes
2answers
1k 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
22 views

Hide category name using mod_rewrite

I have a website with at least 3 categories. I have set one of them as the default category. Next step was that I need to have the category slug of the default category to be hidden from the URL ...
1
vote
1answer
21 views

How get permalink for the current category or tag?

There was a problem in which it was necessary to get permalink of the category/tag viewed. I have not found standard functions, everything other authors offered was only for categories. I resoved the ...
0
votes
1answer
33 views

Include tags from array, ignore the rest in get_the_tags

I'm trying to exclude a large amount of tags from being displayed in get_the_tags function. I have successfully excluded tags using this code: <?php $links = array(); foreach ...
0
votes
0answers
18 views

How to let users “follow/subscribe” tags (part is working)

I've searched for this for a looong time; My users should be able to follow/subscribe a tag than on a second front page, they only get posts from the subscribed tags. In the following example, in the ...
-1
votes
1answer
28 views

How can i get tag without />?

I see that wordpress make tag meta, link, style, img, ecc.ecc. like theese: <img /> <meta /> <link /> <style /> with the /> at the end of the tag. How can i get tags like ...
1
vote
2answers
40 views

Script to duplicate categories as tags

I have a site with 900+ posts, each with about 3-5 categories. I would like to copy each of the categories to be a tag and am looking for the SQL code to do just that. I do not want to delete or ...
-1
votes
1answer
18 views

Show all tags but exclude a certain tag

I'm trying to get it work with tag__not_in but it doesn't work. $args = array('order' => 'DESC', 'orderby' => 'count', 'number' => '70', 'taxonomy' => 'post_tag', ...
2
votes
1answer
39 views

Displaying Only Certain Tags in Loop

What I'm trying to do is alter the loop across my site so it will check the site URL so it will know which tag to display. For example, if I give some posts the tag "golfclubs", I want it to work ...
1
vote
2answers
34 views

Must Use Plugin Causing Query Error

I created an MU Plugin which will only display the posts from certain tags in the loop like this: function custom_tags( $query ) { $query->set( 'tag', array( 'custom', 'general' ) ); } ...
1
vote
2answers
30 views

Replace taxonomy permalinks

I have this permalinks settings: /%postname%/ I have a custom taxonomy issue. I want replace all my taxonomy links (site.com/category/wordpress) to (site.com/category/wordpress/issue/any-child). ...
0
votes
0answers
27 views

WP tag slug name in URL

I want display tags from specify category. My code is: $query_args = array( 'category__in' => $category->term_id , 'posts_per_page' => -1 ) $query = new WP_Query( $query_args ); ...
0
votes
1answer
108 views

Unable to get all tags from specific categories

Page in question. I'm trying to use a WP_Query(); targeting specific categories and displaying all the tags used for posts within those categories. I noticed that some tags, like truffles aren't ...
-1
votes
2answers
54 views

Trying to prepend a Hashtag symbol to the_tags links [closed]

I want to prepend a hashtag (#) in front of the tags on my post pages in Wordpress using jQuery. This code is not working: $('div.tags a').prepend('#'); This is the php: <div class="tags"> ...
16
votes
2answers
8k 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 ...
0
votes
3answers
4k views

Add Tags to custom post type

I'm using the cherry framework on a WP site. It comes with a custom post type that can be used to add 'Team Members' and create staff pages etc. I need to expand this so that I can add tags to each ...
0
votes
0answers
15 views

Tags & categories in post not found how can I fix?

I am setting up a custom theme with as base template underscore. New I am completing the last bits and bolts ... but it seems that the categories and tags are not working: ...
2
votes
3answers
4k 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
1answer
36 views

Having pages after specifying post_type post

I want to loop through all posts in category 4,but why is there still pages in the result after specifying post_type post? $homeNeWs = new WP_Query(array( 'post_type' => 'post', ...
0
votes
1answer
50 views

Find all strings between an enclosing shortcode

I want to look for all strings in my theme located between my enclosing shortcode [question] desired string [/question]. Then I want to output the so collected strings somewhere in my theme , e.g. ...
0
votes
1answer
29 views

How Do I Get My Post Tags to Alphabetize?

I'm using a self-hosted WordPress site with a Child Theme of Twenty Thirteen. After I requested the same question in the above title, the Child Theme's Developer suggested that I come here and attempt ...
0
votes
1answer
32 views

Cross reference custom post types

Just curious if can I autopopulate custom post fields (like checkboxes or select items) based on another custom posts setup? My goal is to create a custom post types "employees" which can have ...
0
votes
1answer
20 views

Do not output category and tag ulrs

I'd like to use WP as CMS without blog functionality. I use some custom post types with cats and taxonomies, just for building up an isotope filter. My question: Is it possible to do this without ...
1
vote
1answer
634 views

Tags as a dropdown with set tags

Sorry if this is a silly question but is it possible to have a taglist as a dropdown? I have a page where users can post theyre own content, and I would like them to be able to choose certain tags ...
0
votes
2answers
53 views

Exclude a specific tag from the get_the_tags list

I am building a child theme for my personal use. Not very familiar with php, can only do basic things based on logic. I need to exclude one tag from being displayed on the tag list on a single post. ...
0
votes
1answer
48 views

Include tags in WP_Query

I found several posts about it. Others said that you cannot do it without a plugin and others that it is possible. However, I am not sure what is true :P This is my query and unfortunately, I cannot ...
1
vote
1answer
3k views

Remove post_tag from default post type, add custom taxonomy

I've been searching for a while for an answer to this, but the results I find always deal with custom post types as opposed to the built-in 'post' post type. I want to remove the default 'Post Tags' ...
0
votes
1answer
37 views

Only display posts with a specific tag

How can I only display posts with a specific tag? This is my loop: <?php if ( have_posts() ) { while ( have_posts() ) { the_post(); get_template_part( ...
0
votes
1answer
59 views

Search for multiple tags?

So I have a page template that is setup as follows (using Kleo theme): Search template get_header(); ?> <?php //create right sidebar template kleo_switch_layout('right'); ?> <?php ...
1
vote
2answers
78 views

Searching multiple tags and adding jQuery dependant script onto page template?

I have this simple javascript file for checking boxes in a tree view menu: treeview.js $(".acidjs-css3-treeview").delegate("label input:checkbox", "change", function() { var checkbox = ...