Tagged Questions
0
votes
0answers
14 views
Wordpress show posts from children terms of a taxonomy term
I was a little hard for me to explain what I'm trying to achieve in the title so I will explain my setup much more detailed here. I tried to find an answer searching here and other sites but couldn't ...
0
votes
0answers
27 views
I have a complicated loop query, that I want to output into grids
The code below loops taxonomies, then loops posts within each taxonomy. I would like each taxonomy group put into a CSS grid column.
How do I get this into grid rows correctly?
<?php ...
0
votes
1answer
30 views
Control content before and after custom post type loop
I am trying to create a left nav menu that contains a couple of different taxonomy lists of a custom post type. For example, the left menu might look like this...
<h2>New Stuff</h2>
...
0
votes
1answer
26 views
Looping taxonomy in taxonomy?
So I have a CPT of references (like a dictionary kind of format for music).
In it there are two taxonomies: medium_reference and reference_letter.
The reference_letter lists letters A-Z, while ...
0
votes
0answers
21 views
Listing custom post type items from a couple of custom taxonomies
I know I have asked a similar question in the recent past (Listing all custom post types using a specific term on the said term's template page, in groups), but in this case, the template is more ...
0
votes
1answer
53 views
Cant' Display Custom Post Type Title Base on Tax Terms
Trying to list all Custom Post Type titles based on filtered Custom Taxonomy Terms I am getting the list of all post titles instead of getting the list of Queried post.
Here is the code I am using:
...
0
votes
0answers
63 views
How to exclude child terms from tax query foreach loop
I have this query which is working fine but I can not get it to exclude child terms and include only parent terms. This is what I have so far --
<?php
$custom_terms = get_terms('videoscategory');
...
0
votes
0answers
92 views
Dynamic Dropdown populated with Categories from current page?
I have a page where it lists the category name with it's posts under. On this page it only lists the posts that are also in another custom taxonomy. To do so I am using this code which works fine --
...
0
votes
1answer
68 views
How to break up php code to avoid echo
I have this php code I am using to list all post (titles) with the taxonomy categories names, and its working fine however I will like to break it up and avoid using echo within the php code so that I ...
1
vote
2answers
71 views
Query for posts in 2 taxonomies
I am currently using the following code to display a list with links to posts in a specific CPT and taxonomy:
<?php
$custom_terms = get_terms('videoscategory');
foreach(array($custom_terms as ...
0
votes
0answers
16 views
How to sort through and display several CPTs on a single page
I built this site http://sparkfitnessbootcamp.com/ However, everything has been hard coded and is very difficult for the users to manage. So I want to create CPTs to make everybody's life easier. ...
0
votes
1answer
42 views
Order custom posts by taxonomy?
I have the following custom post types:
books, documents, examples, guidebooks, onlineaids.
They were generated by the following code:
...
-1
votes
0answers
81 views
How to display custom post types by custom taxonomy in while loop?
I am using Posts 2 Posts to display a custom post type on a page.
Document status, document author and feedback due date are custom fields.
Package is a custom taxonomy.
I want to display my custom ...
0
votes
1answer
621 views
Loop through multiple custom taxonomy terms and display posts for a custom post type
I am working with custom post types in the bones theme from themble. There, I want to create a link list and therefor i've created a custom post type, called links.
This custom post type has a custom ...
0
votes
1answer
73 views
Only display latest custom taxonomy post
I have a custom taxonomy set as a "splash" on my front page, I would like to only display the latest one of these taxonomies as a splash, and any older ones to be returned to the loop and displayed as ...
0
votes
1answer
128 views
How to Loop and add Specific Categories and Products Images into Specific Page Template?
Thanks to Rafael Marques I have a list of Products and Categories organized based on different created categories. I also have 5 different Custom Page Templates. Now I would like to display the ...
0
votes
1answer
199 views
Custom Post Type Taxonomies -Posts not showing in Category or Tag pages
I have a made a custom post type called "Member Resources" the posts under this CPT have a few taxonomies such as categories and tags.
Tags = "Diversity"
Categories = "Guidance"
When I go to the ...
0
votes
1answer
140 views
Loop for custom-post-type comparing taxonomy terms for “related” posts?
I have a custom-post-type named my_projects and a custom-taxonomy called project_tags.
I want to write a function that is returning 5 posts of this post-type based on a given taxonomy term.
So I ...
0
votes
2answers
322 views
How do I Use Multiple Loops with WP_Query?
Hi I am trying to add post from a certain taxonomy term to a cpt loop. The code below is the code I am using.
<?php // Create empty array to store post ids in
$excludes = array();
...
0
votes
1answer
171 views
Using WP_Query and Query_post for the loop?
I am using the code below to call post from a certain Taxonomy term. My intentions are to mix that into the normal loop.
I'm am not trying to create two different loops, but one loop that displays ...
1
vote
1answer
186 views
How to add tags (custom taxonomy) to post class css?
I am trying to figure out how to add my custom taxonomy for tags to the post class css when I already have added the custom taxonomy for categories. The code Im currently using to add the category ...
0
votes
1answer
90 views
Custom loop with multiple taxonomy queries
Apologies -- new to the stackexchange and actually posted this over in Stack Overflow because I didn't know there was a WP specific joint.
My issue--
What I Have: I've got the code for a working ...
1
vote
1answer
71 views
How to adjust code to refresh a dropdown box with tags that are active on filtered category listing
I have multiple custom tags setup (ptags) and custom posttypes (products) and made it so i can filters posts by multiple tags in a category.
Currently the code retrieves tags from posts relating to ...
0
votes
1answer
38 views
Loop posts without any taxonomy
I've grouped my pages by some custom taxonomy. But I need to care about those without any taxonomy set. My code is:
$page_groups = get_terms('page_group'); //get all existing page groups
foreach ...
1
vote
1answer
91 views
Posts in loop displaying all taxonomies
I have a loop set up to display projects with two types of taxonomies attached to each. My issue is that within the loop I have set up a function to select specific posts to attach different ...
1
vote
1answer
147 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
229 views
Display one post from each term in a custom taxonomy
I am trying to display a list which shows one post (and information about the person posting) from each custom taxonomy term.
The code I am using is as follows, but it is instead printing out EVERY ...
0
votes
1answer
65 views
How do i display post from a taxonomy term?
Hey i was wondering how could i show post from a certain taxonomy term in the loop.
<?php the_excerpt(); ?>
I have a taxonomy entitled "series" under my post type entitled "Gallery", and in ...
1
vote
1answer
258 views
Display category posts grouped by taxonomy
I'm working on a project where I use the default posts as "Products", default category as "Application" and a custom taxonomy called "Groups".
I want to list "Products" by "Application" ...
-2
votes
1answer
137 views
Get all active posts that are tied to a custom taxonomy for a custom post type
I need to display all the categories I created for a custom post type then inside of each category I need to loop all the posts that are tied to that category.
I tried constructing my WP_Query a ...
1
vote
1answer
227 views
Display related custom taxonomy posts in sidebar
Can I use this snippet to retrieve posts from a custom taxonomy in a custom post type?
<?php $sermon_series = new WP_Query( array('series' => 'type')); ?>
<?php while ...
0
votes
1answer
121 views
How to looping taxonomy terms?
is there any way to loop terms in a way they display in menu?
Eg:
Let say I have 2 taxonomies in a post type - tax1 and tax2.
They are not hierarchical to each other.
If I have posts that have ...
0
votes
2answers
126 views
how to get the post id in the option tag
$term_id .= $_POST['main_brand_id'];
$term = get_term( $term_id, 'state' );
$slug = $term->slug;
global $post;
$args = array( 'post_type' ...
0
votes
1answer
195 views
How to get the term description in a taxonomy term archive query?
I'm creating a template for a custom taxonomy for my theme.
At the beginning of the page, before the loop that lists all the posts associated to a term of that taxonomy, I want to output the ...
0
votes
1answer
114 views
Chaining Taxonomy Queries
I have a quick question.
Could someone show me how to make a loop that does the following.
Query all posts for one tax (Meal Time: eg. Lunch, dinner, dessert...)
then
Loop each taxonomy ...
1
vote
3answers
456 views
Only show posts with date of today or in the future (i.e don't show past posts)?
Is it possible to only show posts that have todays date or in the future? I don't want to show any posts that are in the past.
Also, I want the list to show posts that have a date in the future as ...
0
votes
1answer
1k views
Only show posts from a certain category?
How can I only show items from a certain category (category 51)?
Here's my loop below that I need to incorporate the code into.
<div class="news-content-inner">
<?php $portfolioloop = new ...
0
votes
1answer
85 views
Displaying Posts Using a Custom Query with a Custom Field and a term_id
I'd like to display a list of posts in a category of a taxonomy using a Custom Field.
Here's my code:
if($current_term->term_id=='143') {
$querystr = " SELECT wposts.*
FROM ...
1
vote
1answer
454 views
Taxonomy posts on Archive page
Hello, I have been stumped for a few days on a perfect way to display the posts using my custom post type (track) and the taxonomies ( genre, sub_genre). When a user goes to ...
1
vote
2answers
1k views
List all posts in Custom Post Type but group dynamically by Custom Taxonomies
I have a custom post type named "Resources" which has a Taxonomy named "Types."
I have it manually pulling each term which isn't the most elegant solution and every time there is a new term added, I ...
0
votes
1answer
2k views
How to get posts using category slug in ClassiPress?
I'm using the ClassiPress theme as a base for a new theme. If you have worked with classipress, you should know that classipress handles its own category using the taxonomy ad_cat.
That said, I have a ...
0
votes
1answer
241 views
Catergory args causing loop not to show
this has taken up most of my afternoon, but i just cannot get it to work properly.
The issue is when i try to add a catergory argument to my custom loop, whether it is an include or exclude. When i ...
0
votes
1answer
331 views
Multiple custom post type queries causing wrong post types to be grabbed in taxonomy + single templates?
Ok, this may be a bit confusing but here goes...
Im working with several custom queries on the same page throughout my site.
Some queries are grabbing regular post data, others are fetching CPTs ...
3
votes
5answers
5k views
Display all posts in a custom post type, grouped by a custom taxonomy
I’m working on a member page where I use a custom post type with a custom taxonomy. My custom post type is called “member” and my custom taxonomy is called “member_groups”.
I want to list all the ...
1
vote
1answer
411 views
Custom post type multiple loop by taxonomy term
I would like to create one loop that lists the custom posts for each taxonomy term:
Term A:
Item
Item
Item
Term B:
Item
Item
Item
I would like this to be totally dynamic so if I add a new term it ...
0
votes
2answers
2k views
Loop custom post type by taxonomy (Category)
I created a custom post type in my function.php of the theme and some a taxonomy for them.
I added 2 categories in my taxonomy (first, second) and added some post in my new custom post.
I want to ...
0
votes
1answer
65 views
Query for specific taxonomy that executes a particular loop depending on volume of posts?
Is it possible to create a special wp query that looks to see how many posts exist in a specific taxonomy, or taxonomy term, and executes a particular loop depending on the volume of posts?
My idea ...
0
votes
1answer
1k views
Custom Post Type Category Link
I have a loop of posts for a custom post type I built.
How can i call the link of the category/taxonomy for each post?
Thanks
1
vote
2answers
910 views
List custom taxonomy specific to one custom post type
I am slowly going mad trying to figure this out..
I want to list custom post type 'mobile_review' by custom taxonomy 'mobile_phone', as multipe custom post types share this taxonomy I need some way ...
0
votes
1answer
110 views
What is the most efficient way to execute recursive complex queries?
There's a "Jobs" section on my website (custom post type), with various associated taxonomies (language spoken, type of contract, location, etc.) The website also has a very big user base (about 10 ...

