WordPress | Date not always appear
I try to create a theme. In that theme I have create a custom post type and I quering the WordPress by using the wp_query to get the posts from that post type with the code that following :
$args = array(
'post_type' => 'portfolio',
'posts_per_page' => 18
$projects = new WP_Query($args);
<h3><?php the_title(); ?></h3>
<span><?php the_date(); ?></span>
the problem is, that while I get the title for all of my posts, I do not get the date for all of my posts. Some posts have the date, other they don't
Any idea for that issue ?
the_time() and specify a date format like so:
the_time('l, F j, Y');
Check out the codex article on formatting your date.
Gravity Forms - Date Picker - Disallow End Date to be before Start Date
basically I have a large form created on my WordPress site using Gravity Forms. One section of my forms has a bunch of items listed with a 'Start Date' followed by an 'End Date' -- Example: Item | Start Date | End Date Item#1 | 05/01/2015 | 05/25/2015 What I am after is making it so I can disallow the 'End Date' from being before the selected 'Star...
problem with publish date not always appearing
I have this problem where the publish date sometimes appears and sometimes it does not. I am using ACF relationship field to find the story and then bring it to my front page. <?php the_date(); ?> If I open the story and re-publish it with a new publish date it works. http://www.thenewshouse.com
Update post meta date always store 1970-01-07
I want to update the post meta "job_expires" to the current "job_expires" meta data + 1 week but with this code always store 1970-01-07 as date. How can I store the current "job_expires" date + 1 week?