All Questions
Tagged with wp-query custom-post-types
878
questions
0
votes
0
answers
42
views
"Page not found" while on page 2 from pagination menu
all. I'm getting a "Page not found" message in my firefox tab when I click page 2 in my pagination menu. What's odd is, the content shows up just fine on all paginated pages. I've tried ...
0
votes
1
answer
26
views
WP_Query not using relation key as expected and not producing any results
I have created a custom post type service-provider with custom taxonomies region and service-category - By itself, this search works as expected BUT I want to also search on an ACF field.
I have an ...
0
votes
0
answers
19
views
Instead of returning post content, return code that I specify
I created custom post types called funds. My page has over 200 of them. After buiding the page the back end payment processor changed the way they want to display the form for donating. It is now a ...
0
votes
1
answer
21
views
Quering a post object based on another related post object
I have two post types - Ticket and Event
Each ticket has a meta called 'event_id' which connects it to an Event.
Suppose I want to fetch all events with more than 3 tickets. I want to do it in a ...
0
votes
1
answer
84
views
WP_Query for multiple post types just shows one
I have an issue, that I do not really understand. I hope, you can help me. I would like to have a WP_query for multiple post types:
$query = array(
'category_name' => $category,
'post_type' =&...
1
vote
1
answer
108
views
Query multiple post types - Order by type and post title title
I have three custom post types which I need to retrieve posts for within one wp_query. I am seeking to return the posts in the order of post type, as well as by post title.
Within the question ...
0
votes
1
answer
49
views
Query Multiple Post Types and Paginate Newly Created List
I know this has be asked several times but i cant seem to find the answer anywhere. My site has a resources page which is my archive for all resources (archive-resources.php).
I'm trying to also ...
0
votes
1
answer
19
views
WP Query filtering by custom category not showing all relevant posts
Here's a question I've been trying to solve all day:
I added a WP Query that would show posts from a category that the admin chooses with a custom field. The post is a custom post type called "...
0
votes
1
answer
63
views
Wordpress custom post type -> query and sort by custom field with multiple values, then published date
I have a custom post type with 2 custom fields that I am trying to sort by:
The first custom field is "featured post" (yes or no values).
The second custom field is "CPT images ...
0
votes
0
answers
13
views
How to display posts from home page in blogs in category wise
actually i am converting html to wordpress and i have posts on home i want to display them on blog page in category wise rightnow my blog page in working on index.php, I have made some post dynamic ...
0
votes
0
answers
28
views
Create an archive page by combining two post type
I wanna create an archive page for both normal posts and a custom post type(gallery).
I created an index.php file and put my code in there but its pagination ain't work correctly.
all pages look the ...
0
votes
1
answer
33
views
Wordpress duplicating posts from single loop
I've created a custom post type with ACF custom fields included. The CPT is being placed inside of a bootstrap slider. Everything seems to be working, except, the posts being rendered on the page are ...
0
votes
0
answers
27
views
author archives, showing all custom post types, problem on pagination
Please, look at the link to the page I need support with.
This is a website where several “authors” make their reviews on books or create some original posts. This page shows “Badges” which are all ...
0
votes
0
answers
17
views
How to assign a single-menu-template to a menu-items in a taxony/ cat/ subcat/ subcat-item
Hi hope really someone can assist.
I have created a single-meny-template with post-type-meny, and I have created taxonomy, categories, sub-categories and subcat-items.
What happens is that the ...
0
votes
0
answers
49
views
Use Custom Field to Display Post Loop
In my custom template I have created a menu which is a row of 10 horizontal tabs. Each tab shows a date which is defined using an ACF datepicker field in the post.
I have also created a custom post ...