Unanswered Questions
1,571 questions with no answers
4
votes
0
answers
609
views
How to reload a select box of posts dynamically?
I'm using custom meta boxes for a project. I have created a custom taxonomy (select box) and I have another select box populated with Posts. I need to only load the posts based on the selection of the ...
3
votes
0
answers
2k
views
Add parent/child taxonomy to custom post type url
I have seen several cases of one taxonomy being added to a custom post type url, but I have modified that function to include a parent and a child taxonomy term. However, I am getting a 404 when I go ...
3
votes
0
answers
381
views
Linking three taxonomies with ACF
I'm creating a product finder using a CPT called "Products", which is already used for displaying products separately on the site. The product finder is based on a answer and question idea, where the ...
3
votes
0
answers
467
views
WP_Query with tax_query, order by most 'matches'
TL;DR:
How can I sort a WP_Query based on how many 'matches' there are on the tax_query set. Furthermore, how can I then add more posts if the posts_per_page is not met due to the tax_query added?
...
3
votes
0
answers
1k
views
Show all parents and children in custom post type in right order
I would like to show all posts from a custom post type on one page with the ordering exactly like in the backend. I get the right ordering with wp_list_pages, but of course without the content.
...
3
votes
0
answers
154
views
get / list categories and counts filtered by custom taxonomy term
In my post 'post type' besides "categories" I've a custom taxonomy called "product-types".
The category is actually more "manufactures" of the product types.
I've a product-types page where I list ...
3
votes
0
answers
76
views
Select menu should display categories and the item's depth
I have a select menu of a custom post type in the header.php:
<?php
$selectloop = new WP_Query( array( 'post_type' => 'products', 'posts_per_page' => -1 ) );
echo '<form>&...
3
votes
0
answers
2k
views
Category base to url in custom post type/taxonomy
I'm building a recipe site that uses custom post types for recipes.
So I searched for including the custom post type categories in the url and found a solution below by Milo. It rewrites the url and ...
3
votes
0
answers
61
views
How to show custom taxonomy in the permalink?
I used the Portfolio Post Type Plugin to create custom tax and post type.
I would like to show the custom taxonomy on the portfolio projects.
portfolio/customtaxonomy/project
while now is
...
3
votes
0
answers
447
views
Taxonomy page lead to 404 page on pagination
I read a lot of posts here with similar problems but nothing worked for me.
I have a custom taxonomy (portfolio_category) for my custom post type. I created a taxonomy template (taxonomy-...
3
votes
0
answers
1k
views
Create Custom Post Type Archive Page with Sub Categories Navigation Sidebar
I have 8 custom post types (which are actually for 8 different blogs and used as "blog landing pages"). Each custom post type is also a Blog Category and each has several sub categories to it. For ...
3
votes
0
answers
481
views
How to display term description in empty terms archive?
I list all terms from a taxonomy, even the empty ones, but I found out that at least in 2010/2011 themes I got a 404-like message, the default seems to only display the term description when at least ...
2
votes
0
answers
28
views
get_meta_sql hook is not firing
WP_Query uses WP_Meta_Query. I thought this calls the WP_Meta_Query::get_sql() to define the meta query SQL which is where the get_meta_sql filter is applied.
I can't get the get_meta_sql filter to ...
2
votes
0
answers
448
views
How to efficiently find "duplicate" posts, where the titles are different, using metadata to match posts?
The website I'm working on collects information on film reels. A 'film' is a custom post type. Each 'film' is one post.
The user bulk uploads films from different sources. Because of this, some films ...
2
votes
0
answers
217
views
Query custom post type and group by taxonomy
I struggle a bit with my piece of code - it's main goal is to show list of custom post type (called "career") childs grouped by custom taxonomy.
How it should work?
A user see default list ...