0
votes
2answers
39 views

How to get Tags with specific post id

I have created one post and post ID is 34 and added some Tags and Now I want to retrieve all tags with post ID. Any Idea?
0
votes
1answer
59 views

Custom WP_Query for current category (in category.php)?

I'm using a small code to display a tag list for the current categories like below: <?php $custom_query = new WP_Query('posts_per_page=-1&category_name=overnachten'); if ...
0
votes
0answers
42 views

Query post names based on tags of current post

I have a custom post type called 'employer'. In some of my normal posts, I use the slug of an employer as a tag to link the two together. For example POST A mentions "Adidas" and therefore I add ...
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
113 views

Exclude most recent posts from specific category in wp_query()

I have a featured posts slider, which uses the 'featured' tag. I have a query for this which grabs the 3 most recent posts with this tag and shows them in the slider. Below this, I have a list of 10 ...
-1
votes
1answer
48 views

Attaching multiple custom taxonomies to one CPT?

So I've been developing a complex CPT lately and something came up that made me realize I need a second custom Taxonomy on the CPT. Is this impossible? Also I'm currently using tags as well, so the ...
0
votes
1answer
108 views

Query Posts by Tag and exclude

Is it possible to only include posts with a specific tag in this query? <?php $query = new WP_Query (array('showposts' => 5, 'orderby' => 'date', 'order' => 'DESC')); ...
-3
votes
1answer
136 views

Get all posts without tags

I'm working with a tag plugin. Is there a WordPress way to get_posts or query all posts that have no tags?
0
votes
0answers
52 views

tag_slug__and not working as expected

I am trying to fetch all posts which has been tagged with particulars tags.here is code i am trying to use $args=array( 'tag_slug__and' => $categories_array, 'posts_per_page'=>10, // ...
1
vote
1answer
116 views

Search Custom Post Type with all meta attached?

I'm currently have a search box that's supposed to search a certain post type. It's supposed to check the query against all standard cpt content, tags and the associated meta data. I'm wondering how I ...
0
votes
1answer
43 views

Retrieve post tags from from main wp_query

I'm running a custom WP_Query and find the following SQL running as part of it. SELECT t.*, tt.*, tr.object_id FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON tt.term_id = t.term_id INNER ...
-1
votes
2answers
40 views

Can't seem to get an else statement correct? [closed]

I'm learning my ways in PHP lately and play allot with WP and PHP. I've created a some PHP that fetches some posts with the same 1th tag. This with some help with a tutorial here and there. The thing ...
9
votes
3answers
163 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 ...
0
votes
0answers
39 views

Use global query parameters in new WP_Query for presenting separate results in tag archive

wp_reset_postdata() does not seem to work here. I'm building a custom tag archive template, which should feature results from different post types in diferent boxes. <?php $query_stringa= ...
0
votes
0answers
61 views

No results for my WP_Query array

I have to get related posts via keywords/tags, and I found a ton of examples elsewhere on how to do it, but the query doesn't seem to produce any results. Can anyone point out how to do this, and is ...
1
vote
1answer
99 views

Limit Tags display and ad Drop Down Menu

Does anyone have any idea on how i can limit the number of tags shown in a post and if there is more it's a drop down menu. Here's an example of what i mean. Se where it sats "More On" those are ...
1
vote
2answers
239 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
2answers
346 views

WP Query - duplicated posts once including tags in search results

I running WordPress on IIS & SQL server. As some of the plugins do not work correctly with DB ABSTRACTION I am using a lot of functions.php filters as so on. To make my search results include ...
1
vote
2answers
230 views

Given a WP_Query, how can I get a list of tags?

I have a new WP_Query that I use to generate a custom loop and display a set of posts. One of the things the query does is provide pagination. Before I display the queried posts though, I'd like to ...
1
vote
1answer
116 views

list tags with count in author profile page

I would like to list tags with count in author profile page just like this page If the user click the tag, then I would like to list the tagged posts. Can someone help me?
3
votes
1answer
1k 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 ...
1
vote
1answer
175 views

reducing the amount of wp_query calls

I'm working on a site where we're introducing drop down panels from the menu which will display thumbnails from various tags on the site. Each panel has a left column displaying a featured post, and ...
0
votes
1answer
103 views

Query Custom Post Type by Tag

Kinda confused on this.. hoping someone can help. I have custom post type named "Providers" that I want to pull entries from that are tagged "highlighted". I enabled tag support on the custom post ...
1
vote
1answer
452 views

Display tags that only appear in one category

I'm trying to get this less manual than it currently is. I want to display tags that appear in only a single category, so if they are in a post that has two categories, I want that tag ignored. The ...
1
vote
1answer
347 views

Why does querying on post_tags (which has been applied to custom post types) only return posts?

So I've created a little jquery cycle based feature rotator that pulls from the post_tags. I added the post tags to my other custom post types like this: register_taxonomy_for_object_type('post_tag', ...
2
votes
2answers
458 views

How to order posts tag by tag?

I want to order my posts by tags with only one WP_Query() In my WP_Query I would like to display 2 posts with tags portrait 2 posts with tags paysage 2 posts with tags portrait 2 posts with tags ...
1
vote
4answers
1k views

Loop through all tags & output posts in alphabetical list

I have a bunch of posts that each have multiple tags, and I'm trying to find a way to output all of them on a single page, organized under an alphabetical listing of their respective tags. E.g. if ...
2
votes
3answers
853 views

post_type is ignored by WP_Query when 'tag' argument is included

I've created a function to call in a page template, inside of which is the following query: $custom_news = new WP_Query(array( 'post_type' => array('post', 'resource', 'job'), ...