Tagged Questions
0
votes
1answer
170 views
WP_Query arguments: Loop through custom post type - get all entries except excluded meta_key?
Can't seem to find out what I'm doing wrong.
$args = array(
'post_type' => 'wr_event', // my custom post type
'posts_per_page' => -1, // show all posts
'meta_query' => array(
...
0
votes
1answer
111 views
loop through custom post-type with two meta_keys
I have a custom-post-type named my_project.
This post-type has two meta-boxes:
is_featured
is_featured_position
So essentially in my backend of the post-type I can set a checkbox for is_featured ...
1
vote
1answer
1k views
How to grab metabox value in wp_query meta_query key
How would I modify my WP_Query in order to get a custom meta box value instead of a custom field one like I currently do?
This is how my query looks like:
<?php $today = ...
0
votes
2answers
314 views
Custom Post Type + Custom Meta Query Not Showing 2012 Posts
I created a custom "events" post type for a client that basically "hides" the post once it has expired (ie. the event already happened). The events are displayed in the order of the start date rather ...
1
vote
1answer
234 views
Pull a post based on a meta value in a custom post type
I'm trying to display a post, from a custom post type based on a meta value in that post type, in this case a checkbox that says "if this is checked show it on the front page.
Usually I write a ...
3
votes
1answer
1k views
WP_Query with checkbox meta_query
I have posted this on StackOverflow too, not sure if that's allowed - if not let me know and I'll remove one (I don't want to look like I'm spamming). Anyway....
I have a custom post type and have ...
9
votes
5answers
4k views
meta_query with meta values as serialize arrays
I'm working on a project in which I'm creating a custom post type and custom data entered via meta boxes associated with my custom post type. For whatever reason I decided to code the meta boxes in ...