Tagged Questions
1
vote
1answer
403 views
How to sort CPT by custom meta value (date), and return posts month by month
For future reference:
I am using the great Meta Box Plugin to help expedite meta box creation for my custom post types.
My goal:
To build a highly customizable events section closely resembling a ...
0
votes
2answers
128 views
How to query custom post then display sections by meta value
This seems like an easy thing to do but I am missing something here. I have a custom post type called "recipient" and a meta check box called "yes_current" - (we help children with cancer and run ...
0
votes
1answer
87 views
Help with if statement inside while loop
I have the following snippet of code, basically I get the set value of id from the metabox, get the current id based on the loop, try and match, if htey match I want to pull the values from the ...
0
votes
1answer
221 views
Retrieving meta-box from a custom-post-type
I am trying to display data from a custom post type on my home page, for which I am using a separate template.
I'm getting a Fatal error: Call to undefined method WP_Query::have_post() when my code ...
0
votes
1answer
216 views
wp list pages using meta box value
I am using the following meta boxes on services page but how would I get the page(s) which have value of this meta box?
For example, list all pages where service_type = 'web'
I am using the ...
0
votes
1answer
43 views
Adjust query on single
I am building an event manager. One of the template files I have is events-single.php which displays single events. At the bottom of this I have next and previous events using next_post_link and ...
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
502 views
how to compare different timestamps in wp-query for events custom post types?
I have a custom post type with custom metaboxes (as seen on wptheming.com) and would like to make a query to show upcoming events, say in the sidebar, where past dates are left out.
But I need a ...
0
votes
1answer
104 views
Inefficient Query Confusion
Edit #3 - meta_keys as an array
This seems to compare more than just the "opening_time" I can set the opening time for the wrong date or even leave it blank and it will still grab a post if the ...
0
votes
2answers
313 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
2answers
952 views
meta box dropdown of custom posts
I am trying to display a dropdown select metabox on the "add new" page of a custom post type which displays a drop down list of titles from a separate custom post type ( it's an effort to relate the ...
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 ...