Tagged Questions
0
votes
1answer
30 views
Format Date for Manual Insertion into post
I have the following $mydate = "26 January, 2012, 5:05 AM";
I want to format this date properly so I can insert it into a post_date. Is there a simple way to do it?
$post_ information = array (
...
2
votes
2answers
48 views
Get date of last update outside of loop
I'm trying to figure out how to display the date that a post was last updated outside of the loop. I'm able to display the published date using get_the_time() but there doesn't seem to be a "loopless" ...
0
votes
2answers
83 views
How to get date for each post?
while (have_posts()) : the_post();
//some html
<li class="icon-date"><?php the_date('Y-m-d');?></li>
<li class="icon-time"><?php the_date('H:i:s');?></li>
With ...
0
votes
1answer
333 views
Advanced Custom Fields and date picker, show posts only if the day is today no matter the year
I've created a site made just with custom fields about famous people in sport.
In the post page I've a born date and a death date field using the data picker.
What I'm trying to achieve is to show ...
0
votes
1answer
39 views
How can I compare publish and update dates for a single post?
In my theme, I'd like to display the publish date and (only) if the post was updated after the publish date, also display the updated date. The code in my theme now looks like this:
*/ stuff above ...
0
votes
1answer
44 views
Randomizing Post Links Outside of Loop - No Author or Date
I'm developing a home page that is a mishmash of a bunch of information, including a random smattering of several categories, including blog posts (category 192 in the code below)
I'm obviously not ...
0
votes
1answer
220 views
Get date function not working
I have a function to get the date. I have input fields and want the date in this fields. But my code is set a wrong date. I set the date in Wordpress settings and on my server. But it is not working. ...
3
votes
1answer
68 views
How to display date such “x ago”
I want display date based on how much time has passed since, i. e. Posted 12 minutes ago
-1
votes
1answer
247 views
Separately formatting date elements
I am trying to achieve the following look in the time format:
I have for now several issues,
First is that the month and year are not displayed at all,
I use <?php the_date('D'); ?> <?php ...
0
votes
1answer
47 views
Comment time is same as the post time
Here is my comments.php: http://pastebin.com/E5bz4aaW
The problem is that the threaded comment (the reply) showing my post date instead if the comment date. I checked in the database and it looks ...
-2
votes
1answer
45 views
Display the last date, regardless of articles
i would like to display a date on my Blog. I have used this Code for displaying the date:
<?php the_time('l, j. F Y'); ?>
But that uses the time of the latest article. How can i display the ...
0
votes
1answer
464 views
Media attachment date and post date
I have just migrated a massive site (2500+ users, 5000+ posts/images) to Wordpress using custom code. Basically every post has one image and that image is attached to the post as the featured image, ...
0
votes
1answer
74 views
Calculate future date
I want to calculate a future date based on the date the post is published and use it in the content of a post.
I can echo the post publication date using:
echo the_date('Y-m-d');
How can I ...