Tagged Questions
2
votes
1answer
220 views
Formatting custom meta box date from YYYY/MM/DD to a more readable alternative
QUESTION
This is following a previous question that was graciously answered by Milo earlier here - How to sort CPT by custom meta value (date), and return posts month by month
In short, I'm having ...
1
vote
1answer
84 views
Displaying custom field according to date
I am not sure whether this is an Advanced Custom Fields-related question, or a general PHP question, so I have also posted this to the ACF support forum, for those of you who are also looking for ...
1
vote
1answer
92 views
Show 1 post and after a specific date show the next one
I used the following query to have only 1 post published on the homepage from a particular category:
<?php if ( have_posts() ) : ?>
<?php ...
0
votes
1answer
78 views
How to show certain data on certain interval of period
I have three sets of period of time, each with several interval of date:
Event A
Jan 1 - March 1
Dec 1 - Dec 31
Event B
Mar 2 - April 15
Jun 1 - Jul 15
Sept 1 - Oct 15
Event C
Apr 16 - May 31
Jul ...
3
votes
4answers
4k views
Sorting a query by custom field date
EDIT: Reworded the question for more clarity
I'm trying to sort by custom meta box data, which I am converting to a date using the strtotime function, but I'm having some difficulty.
My chief ...
2
votes
1answer
712 views
How to filter a dd/mm/yyyy date from a custom field in a query
I'm trying to build a query in order to sort some posts by a date custom field, where the dates are formatted dd/mm/yyyy.
It works by querying the database directly with get_results like in this ...
2
votes
1answer
1k views
custom field value date convert to unix timestamp problems
For some reason, I'm having difficulty converting a date value stored in a meta field to a unix timestamp (and back again). If I save the date as a string it all works fine, but if I convert it to a ...
0
votes
2answers
1k views
converting custom field date format
I am using the More Fields plugin which gives me the ability to create a date formatted YYYY/mm/dd and I want to convert that to be shown like: February 11, 2011
Is this possible?
3
votes
2answers
5k views
Convert jQuery Datepicker Format to SQL Date Format
I set the jQuery Datepicker format to D d.m. displayed as Th 3.3. for a custom meta field that I want to use to sort posts. In SQL, the custom meta field is saved as D d.m.
I would like to display ...
0
votes
2answers
788 views
wp custom field date format compare
How do I possible to work with this code to work with date format Y-n-j
Value
start_date = 2011-1-20
end_date = 2011-1-30
Here are the original function came from this Query between two meta ...
0
votes
2answers
514 views
Custom Field Date Problem
I have a custom field called expiry_date with a value of let's say 2010-12-11 00:00:00.
What I would like to do is, in my query loop, only return posts with this expiry_date custom field attached to ...