WordPress, fetching users with an exact match in a string of comma separated values in user_meta
I have data saved in user_meta -> areapref field. It is basically a string of comma delimited post IDs (e.g. 2, 37, 200, 300 etc.)
I have data saved in user_meta -> areapref field. It is basically a string of comma delimited post IDs (e.g. 2, 37, 200, 300 etc.)
I defined a custom field named crimedate using standard date format Y-m-d. I defined the filters to make ordering by this date work in the post list of the backend, which works fine.
I’m trying to get posts that all have a custom field named webinar, but I just get all posts. Here is what I have:
I am trying to display multiple post based off a custom metabox selection. I am currently using CMB2 as my framework to display the CMB within the backend. The selection field which has an ID of work__assign is calling all post titles from another CPT called fleet. Below is my code for displaying the CMB2 select type which then displays the titles from a post-type fleet.
For each user on my site I store a birthday using ACF date field (stored as YYYYMMDD).
Is there a way to construct a meta query to retrive all users that their birthday on that specific month regardless of the year?
I got some post in some categories { kids, man, woman } , and some ACF meta fields per country { Japan, South Korea ... }.
I’ve been trying to order these exhibitions based on the end_date custom field created with Advanced Custom Fields. I’m not able to properly get this working. I need the most recent dates first. I need to also only get posts with the exhibition_status of past. For the life of me I can’t get this working and the below code is just the latest non working interation.
Thanks for taking the time to read this. I’ve been struggling with a meta_query for an events site I’m working on.
I have this meta query:
How do I query by meta_value or title?