Tagged Questions
1
vote
1answer
145 views
Listing all term items alphabetically / sorting loop
I have my own custom post type and it has its own taxonomy and terms.
Whenever user visits http://example.com/mytaxonomy/myterm I want the page to display all items within this term alphabetically.
...
1
vote
0answers
181 views
List Posts For Terms Of A Custom Taxonomy For Any Post Type
The function is great and i am using this function with these filter to just display selected taxonomy term posts by id, but what result i am getting is like this
Child Taxonomy 1
- Child Taxonomy 1 ...
1
vote
1answer
179 views
Displaying terms based on loop posts?
I have a shortcode that shows a loop for a custom post type:
while ( $loop->have_posts() ) : $loop->the_post();
// do something
endwhile;
Some of the posts are in categories ...
0
votes
1answer
529 views
How to write sql query to get the posts from a custom taxonomy term name
I hope someone will help me.............
I have a
Post Type ----> Dealers
Taxonomy ----> State
how to write a sql query in this format
$catinfo1 = $wpdb->get_results("select t.*,(select ...
0
votes
1answer
773 views
tax_query operator woes
I am trying to filter posts by multiple taxonomies. My code below works great, but their is one thing I can't quite figure out. When I filter the posts it seems that they only show the posts that ...
2
votes
1answer
394 views
How to hook get_terms() to only show count of posts that have custom meta
Here is what I have:
A custom post type that has a custom meta value added to a post that stores the posts expiry date. When the post passes this expiry date it no longer shows on the site.
This ...
0
votes
1answer
464 views
Showing posts by collection of specific terms and texonomy
i have a custom post type name 'business' and taxonomy 'business-category'. now i want to show posts for some specific terms suppost, term1, term2, term3 etc. The following code is working for me but ...