The tag has no wiki summary.

learn more… | top users | synonyms

3
votes
4answers
594 views

How to show the real post date in a draft

When looking at a draft post, get_the_date() only seems to return today's date, not the post date, even if I have selected another date on the post edit screen. Is there a way to show the "actual" ...
0
votes
2answers
60 views

Update post date of page when Visitor access that page?

How to update post date of page to real time when Visitor access that page? Example: I write a post on May 28, 2013. And now, when I visit that post, it will change may 28 to June 8. How to do this? ...
1
vote
1answer
790 views

Archive listing of posts by publish year (multiple years)

I have an archive page showing all blog posts (in a specific category). With a growing number of posts, I want to separate these by publish year. For example (simplified), I'd like the following: ...
0
votes
1answer
206 views

Show all 12 months regardless they have posts

I need to show all months for a year for an archives page. All 12 months must be shown regardless of whether or not there are posts published for a month. Like this: Year: Jan Feb Mar Apr May Jun Jul ...
0
votes
1answer
31 views

Make datestamp for status updates show time

I have an installation of Wordpress 3.6 running on my server. Playing around with it, I found that 'status updates' don't show the time posted: Here's the thing: I want the time there too. ...
5
votes
1answer
492 views

WordPress Posts By Date/Day?

I want to output on the homepage the posts from the lastest 3 days. Like this: 30/03/12 post 1 post 2 post 3 29/03/12 post 1 post 2 post 3 28/03/12 ...
0
votes
1answer
209 views

Changing the post date without causing 404 error

We have permalink structure based on date (like 'www.mysite/2012/05/27/postname'). Some times there are some posts that we need to be shown the first, so we change they date. The problem is, that by ...
7
votes
1answer
1k views

How to integrate get_post_time with date_i18n function?

I have date format and would like to translate to another language with date_i18n function how can I integrate with get_post_time here is my code : $time = get_post_time('F j, Y', ...
0
votes
2answers
200 views

How to output comments number of a post per day?

I have a question about the comment numbers in a post... For now, I can output the total number of a comment inside a post outside the loop. That's cool enough, but I want to get show the comment ...
0
votes
0answers
136 views

Complex WP_Query Using Post Date And Post Meta

I am using Wordpress as a CMS on a website which has standard posts, a custom advert post type and a custom event post type. The event post type has some custom meta which stores the event start date. ...
0
votes
1answer
26 views

Switch Categories on a Specific Date?

I usually like to provide a code I've started with and have others help me out with it - but this is one where I don't even know where to begin. I would like to be able to set a date on posts in ...
0
votes
2answers
565 views

How can I change the way dates shown in the archive widget?

Now it shows something like this: March 2012 February 2012 But I want to show something like this 03.2012 02.2012 or something in Turkish like this Mart 2012 Şubat 2012
1
vote
1answer
110 views

Post preview gives 404 when permalinks are purely date based

I have an issue pertaining specifically to the situation in which permalinks are set to be based only on publication date. My permalink structure is as follows: /%year%%monthnum%%day%/ When I try to ...
1
vote
2answers
69 views

Display post date as 04/26/2013

I want to modify the date display of the post entries from current format: April 26, 2013 to this: 04/26/2013 Where in the code can I make this change? Thank you in advance!
1
vote
1answer
152 views

Changing the post date and time with function

What function can be used to update a post's post date and time to the current date & time?
0
votes
1answer
2k views

month name translation

I use the birdtips theme and it formats the post date as $birdtips_posted = date(__('Y. F j.', 'birdtips'), strtotime(get_the_time("Y-m-d"))); where Y. F j. is already rewritten to reflect my ...
0
votes
1answer
55 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 ( ...
0
votes
1answer
470 views

Wrong date returned by get_the_time

I have this line of code : $registration_date = get_the_time('F j, Y').' at '.get_the_time('g:i a'); I just ran this on my BlueHost hosted website and it returned : January 29, 2013 at 12:54 pm ...
0
votes
0answers
59 views

Displaying posts by year

I'm trying to display posts on the homepage from the current year only. I am using the following: <?php if ( is_front_page()) { ?> <?php $current_year = date('Y'); ?> <?php ...
0
votes
2answers
64 views

Plotting posts on a graph

Here is what i want to do: For a specific date i want the number of posts from a certain tag. For example: on 14th March i have a certain number of posts tagged "jazz". I want to plot that number on ...
0
votes
1answer
93 views

Checking if field is set before comparing with meta_query in query_posts?

I have a query set up to compare the start and end dates for some custom fields. The start date is required for the post; however, the end date is not. This causes some issues with the following: ...
0
votes
1answer
95 views

Generate daily archive whenever any post type is added

We have an issue with our date archive in WordPress, where our daily archive (example address www.xxx.com/2013/01/09) is only generated when a post from the default post type is added. Any day where a ...
2
votes
1answer
1k 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
1answer
2k views

Order post by date with ACF

I implemented a custom post type for a class post. Now every post has a additional date picker called "date_event", my question is: Any have ideas how can i order the post for the last date of the ...
0
votes
1answer
2k 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
68 views

Display Today's date outside the loop?

Is there any way to display the Today's date outside any loop/post using WordPress date/time function instead of using the PHP date() function? I'm using the PHP date() function but it does not ...
0
votes
1answer
2k views

How to get date of post when using wp_get_recent_posts()?

I get the latest posts this way: $args = array( 'numberposts' => '2' ); $recent_posts = wp_get_recent_posts( $args ); Then I loop through them and get information about the post this way: ...
7
votes
4answers
3k views

the_date() not working

I am using wordpress 3.2 and I did a query post like this: <?php query_posts("posts_per_page=1post=type&page=post_parent=10");?> Then I try to echo out the date of this post I queried ...
0
votes
1answer
846 views

Search by meta_query

I am building a Wordpress site with an events feature. The events page was made with custom post types. I want to make it possible for people to search/ filter events by dates. For example, they can ...
4
votes
1answer
107 views

Metabox date month number to word

I use custom metabox with date (day, month and year). The problem is when I try to transform date number to date word - for example 10 to be October. I use this code: function ...
0
votes
2answers
120 views

Date comparison : which date format?

I have a CPT for events. I need to display future events for people to register, while hiding past events. What is the easiest date format for both (1) entering date when creating new event and (2) ...
0
votes
1answer
347 views

How to get posts published on the latest date?

Is there a way of getting all posts published on the latest date? It might not necessarily be today, it might be yesterday or the day before yesterday or even a day last week.
1
vote
2answers
163 views

Display commenter's registration date on comments?

Is there any way to display a user's (registered) registration date on the comment. Lets say i have a written an article, registered users A, B, C and D left a comment on my article. I can display ...
1
vote
1answer
434 views

After wp_insert_post(), date_i18n() and date() outputs are adjusted to GMT

I am having a very peculiar issue on a customer's server (vps). The code below works just fine on my servers. Basically, a specific unix timestamp is formatted correctly and as soon as ...
0
votes
1answer
163 views

How show post only from after custom date

I have custom post type. In this custom post type I have custom field with date in format: 23/09/2012 How to show only posts, which currently date is before date from these custom field? Sory for my ...
10
votes
2answers
372 views

Set post date before 1970

I have a custom post type called books. The books publication date is from between 1700 and 1900. I want to set the post date to these dates(so i can query the results sorted by year) but i can't ...
0
votes
1answer
911 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
918 views

Order by custom field date?

I've created a category "Expire Soon" and i want to insert and sort the posts by custom field "expiration_date". I use this code but the posts are sorted by custom field "expiration_date" but not by ...
0
votes
1answer
303 views

Order posts by date

I'm a girl and excuse my English. Maybe its easy and I'm dumb to know it. But here is the problem I want to output on the homepage the posts from the lastest 3 days. Like this: 30/03/12 post 1 ...
0
votes
1answer
820 views

Display posts where date field matches current month?

I have a loop which displays all the posts of the "events" post type on my site. Each of these posts has a custom date field "event_date", which I sort the display of the loop by. I would like to ...
1
vote
1answer
176 views

Escaping date string in url with wordpress

I am creating a Wordpress page that searches through posts based on a date variable that is set through a _GET variable. I want to make sure that I am doing this in the best way possible and that I ...
0
votes
2answers
1k views

Order by custom date field

This one has been bugging me for a while. I've used Verve Meta Boxes plugin to add a date field to a custom post type I created, and I would like to somehow order by this field when using query_posts ...
1
vote
1answer
30 views

date issue with category post retrival

I am trying to retrieve all posts from an rss feed from a category, and I have working code that does this. However, on one category I will only get all posts until a certain date. Any post prior to ...
1
vote
2answers
193 views

Displaying Archives List

I'm displaying list or archives using <?php get_archives('monthly', '', 'html', '', '', FALSE); ?> and my list displays December 2012 November 2012 etc However I would like to format ...
0
votes
1answer
156 views

Restrict query to last day with posts

I am using the Delicacy theme. I want to show n my homepage the posts of the current day. But if there are no post for that day it shows "No found". I want to show posts from the last day with posts ...
5
votes
1answer
433 views

User-Specific Timezones? Hack? Plugin?

Is there any way, whether it be a hack, a plugin, etc., to give users their own timezone? I am using a purchased SMS plugin. Users (my clients) login and are able to send out text messages when they ...
1
vote
1answer
331 views

Author List page: Exclude based on last post date

I have a Author page that I built using this code and it works fine. However, I have several writers that range from frequent to one-time writers. I would like to seperate out writers that have not ...
0
votes
1answer
60 views

Last three posts not being put in order by date. How to fix this?

My company adds a quote of the day each day. The last three posts that I have put are not in order though. The first quote I posted 3 days ago is at the top the post I posted yesterday is under that, ...
1
vote
1answer
357 views

Date calculations from 2 custom fields

We are struggling to find a way to calculate a time difference between two dates saved as custom fields on WP. We are actually using two different plugins: a) Easy Content Types b) Advanced post ...
2
votes
0answers
1k views

query_posts with a custom post type, a meta_query and sorting by post date?

I've searched the archives and found questions similar to what I need, but haven't found exactly what I want. I've got a bunch of products that are sorted by a meta_key of country, and I'd like to be ...