The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
2answers
150 views

How can I show many posts an author has per week?

I've searched around and have had no luck or success in finding a way to show how many posts an author has made in a certain period of time (e.g. - a week) Any ideas on how one would approach this? I ...
0
votes
1answer
477 views

Query current and future events, ordered by begin date

Using the Custom Post Type UI extension, I've created a 'Event' custom post-type, which fields are populated using custom fields (created with the extension Advanced Custom Fields) such as ...
1
vote
1answer
162 views

Wordpress Custom Query to show posts from last x years

I have found a way to show all posts from the current year with this code: <?php $today = getdate(); $lastyear = $today[ 'year' ]; $args = array( //'nopaging' => true, 'paged' => ...
0
votes
1answer
68 views

How to organise post by category and date

I'll try to be as clear as possible. I'm working on a project that requires posts organised by category and date. I need something like this: First step: Annual listing of archive 2014: Jan Feb Mar ...
1
vote
1answer
40 views

Shortcode for latest -not expired- posts

I've made a short code (part of a plugin) to display the posts which aren't expired. For saving the expiration date, i made already a meta key called newsbox-date. Handy for micro-news, short ...
0
votes
0answers
26 views

Save time when posts has been favorited

I want to add the time when a user marked a post as favorite and want to display it. function wpfp_add_favorite($post_id = "") { if ( empty($post_id) ) $post_id = $_REQUEST['postid']; if ...
0
votes
1answer
63 views

date.php shows all posts. how to fix it?

I am using the following function for category.php. It's working fine. function cat_page_list(){ /* post : returns the post for category page */ $paged = (get_query_var('paged')) ? ...
0
votes
0answers
24 views

Load Index on “Earlier” Post, Prev and Next Links

how would i load the index of my blog at a later point in the reverse chronological feed while maintaining the chronology of the feed overall? i found this explanation of how to load the feed at a ...
0
votes
1answer
109 views

Divide WP_Query posts by date & post type

I have a WP_Query that divides 2 Posts types by date but the functionality is not there. Currently it outputs the dates and posts on the same level like.. -Date -Post -Post -Date -Post -Post What I ...
0
votes
1answer
300 views

How to remove “Image Information” and “post date/author” from a media page?

I'm trying to use Wordpress to setup a simple website for my business, and I'm having issues with the gallery page. Once an image is clicked and brought to it's specific page, it includes author and ...
0
votes
1answer
103 views

How to display date of blog creation

Is it possible to display (in PHP) the year when the blog was created? I want use this in footer (copyright) on my several blogs with my theme.
0
votes
1answer
40 views

date.php shows only three posts' title. how to fix it?

my archive.php <?php wp_get_archives( array( 'type' => 'monthly', 'limit' => 12, 'show_post_count' => 1 ) ); ?><br/> my date.php <?php get_header(); while ...
0
votes
1answer
41 views

How to hide the year in archive link

I am using the following code to show the archive link by month. <?php wp_get_archives('type=monthly&limit='.date('m').'&show_post_count=1'); ?> but it shows as december 2013 (3) ...
0
votes
1answer
80 views

How to get the date dynamically from archive.php to date.php?

My archive.php <?php wp_get_archives( array( 'type' => 'monthly', 'limit' => 12, 'show_post_count' => 1 ) ); ?><br/> My date.php $date1 = get_query_var('date'); ...
0
votes
2answers
118 views

How to second orderby in “pre_get_posts” by meta value or combine single date and time to timestamp

This is somewhat of a continued problem from another question that I had asked. Here is the original post. pre_get_post filter returns results when there should not be Since then I added an orderby ...
0
votes
1answer
160 views

Query posts with numeric meta values within a given range

I'm building a rental agency's website with WordPress. I'm having difficulties finding a good way to store an apartment's availability in meta fields. Specifically, enabling visitors to find ...
0
votes
2answers
59 views

Post publish date [duplicate]

if I have more than one posts that publish in the same day, the_date() function does not print publish date. How can I fix it? thanks I solve this by: "the_time(get_option('date_format'));"
0
votes
1answer
63 views

Display metabox with date

I'm trying to add metabox with date in WordPress. I used code from this page It works well, but I have a problem displaying the metabox values on page. My loop: <?php ...
6
votes
2answers
147 views

Is it possible to Schedule Attachments in Wordpress?

As it's fairly well known, it is possible to schedule Posts in Wordpress for publishing. Also Attachments are actually Posts (in the more internal, technical meaning). So the question that bothers ...
1
vote
0answers
44 views

make a pagination that show posts by date

i dont know if this is right question or not . but what i want to do is that , i need to create a pagination that show posts by date . i know the regular pagination is like this first-page - 22 - 23 ...
0
votes
2answers
99 views

Query date in wordpress loop

I currently have a custom post type called 'events'. I created this from a tutorial here http://tatiyants.com/how-to-use-wordpress-custom-post-types-to-add-events-to-your-site/. I want to query the ...
0
votes
2answers
324 views

Default sort on admin columns with meta date hides draft posts with empty date value

I have a custom post type of 'gigs' and a metabox (using meta-box plugin ) with event start date and time saved like: 2013-11-29 20:30. If I save a draft with no time/date set then it shows up in ...
0
votes
0answers
83 views

WordPress Page Template to Display Page Title, Custom Field, and Date

I'm currently attempting to create a page template that will display all posts by the current logged in user, a particular custom field from those posts (i.e., Item Status), and the dates those posts ...
0
votes
0answers
144 views

Show Future and Published posts in category archive

I want to make a list of events using a blog category. Category page shows Published and Future posts. Tricky thing is that I want to show Future posts on top with posts sorted by: 'order' => ...
0
votes
2answers
48 views

How to display lastest post date in the homepage?

I'm looking forward to display, somewhere in the homepage of a WP site, a legend saying: Last updated: XX/XX by grabbing the date from the most recent post, but not showing any of its content, ...
0
votes
1answer
35 views

Set Custom Date for Posts

I have a blog im working on in draft form. These blog posts are relevant to various days in the past few weeks but I would like to keep them hidden for the moment. When I publish one it gets todays ...
0
votes
0answers
16 views

WP_Query by date not working? [duplicate]

I'm using a function that returns posts using shortcode. My 'featured posts' are to be any category with the highest comments and only for the week. I have looked over the documents and even did a ...
0
votes
0answers
36 views

echo the_modified_date('j/M/Y') in after_title

I want to add a "last updated date" in a span inside a specific widget here's my function so far function add_front_sidebar(){ register_sidebar( array( 'name' => 'Front Sidebar', 'id' ...
0
votes
1answer
83 views

Meta Query for specific months

I have a custom field which stores a date in a timestamp. I want to run a query that display posts based on the month, for example all entries from March, the specific day or year doesn't matter. I'm ...
0
votes
1answer
578 views

date_query seems to be ignored by wp_query

I'm altering my main wp_query in a pre_get_posts filter in order to improve my site search capabilities. I've successfully achieved searching in taxonomies, but I fail when it comes to the post date ...
1
vote
1answer
360 views

Get random posts between specific dates / of specific age

I need to get post IDs from a custom post type randomly and the posts are posted within 30 days. But I can't really find a solution. How can I do it? This is my query. ...
0
votes
1answer
32 views

How to rearrange a pool of posts joined using two queries?

I need to select posts for two different months (current, past). As far as i know, it is not possible to pass m date parameter as an array of integer instead of an integer, so I am performing two ...
12
votes
2answers
343 views

Unable to select an old date in wordpress

I am unable to set the year below 1899 for a post. If i set year below 1899 it is set to the current year automatically. I have purchased the Timeline theme and asked in their support forum. They ...
0
votes
4answers
340 views

Query Posts by date range with fixed beginning and end

I need to get posts from a certain timeframe. I am using the posts_where filter. I want to specify a beginning date and an end date. This is the function I use: function filter_where( $where = '' ) ...
1
vote
2answers
88 views

Do multiple jobs on date change without WordPress cron job

I m trying to randomize several posts on my client's site which are on different pages , everyday. So I wrote a function which returns true on date change, and if does, I randomize the post ids and ...
0
votes
1answer
45 views

Getting an extra post's meta data?

I seem to be getting an extra post's data when calling get_the_time('Y'); I only have 2 posts, but I seem to be getting 3 dates? I have no idea why. Here's the code: <?php $args = array( ...
2
votes
1answer
70 views

How to stop a user from updating the post date

I have a custom role, called "dealer". Once they have posted a new post, they cannot delete it. It's important they cannot update the date either, and I'm a little stuck on how to do this. It looks ...
0
votes
0answers
18 views

Query posts than have a lapse of time active

First of all, sorry guys for my poor english. OK, i wanna make a query for show posts that doesn´t passed 3 days from it publication. I set a field for the expire date when it´s published (the time is ...
0
votes
1answer
146 views

Display custom post types by date field

I have a custom post type that is simply titles with a date field. I want to display these posts in a list in order of this date field (not date posted). So simply: -- Sample date Event title 1 ...
0
votes
1answer
162 views

Posted date format not reflected

WP3.6, Twenty Thirteen theme No matter which Date Format I choose, the date on actual posts are shown like this: %A %B %e%q, %Y Note that the actual texts look like this; not even the date values ...
0
votes
0answers
84 views

Get last 5 days with posts

I am trying to get a solution to this question of mine http://stackoverflow.com/questions/18487639/date-base-archive-on-wordpress-homepage I am trying with multiple loops, if thats possible. But I ...
2
votes
2answers
140 views

Date, Time, and Timezones

I am a bit confused about using dates/times along with timezones in WordPress. I have the following questions: What is the purpose of the timezone setting in the Admin -> Settings section? Assume ...
0
votes
1answer
94 views

Issue with sorting by post date and custom post type

I'm having a strange issue with sorting by post date. I created a slideshow post type and it does by default order by post date but If I change the date posted through the admin the order doesn't ...
0
votes
1answer
42 views

Wordpress archives by custom field and date

I have a strange situation on my hand. I want to list my archives based on a custom field (numerical value) but also display something like a cover. We have specific posts in different categories ...
0
votes
2answers
81 views

Why does my URL keep returning 404 error code?

I have a custom type on my wordpress site called 'movie'. If the user type this URL : http://mysite.com/1994, I would like to display all movies published in 1994. Unfortunately, I get a consistent ...
0
votes
2answers
111 views

If Posted After Date

I need to get a different "get_template_part" based on the date and category. I have changed the outlay of the category which means any post in that category before today's date wont be able to use ...
0
votes
1answer
20 views

Change post date for testing purposes

Is there a way I can change a post date to preferably a different month and a year for testing purposes?
0
votes
1answer
210 views

Getting images from media library and get_the_date() not working

I've got a function to display all images in the media library on a page. I would like to display the date of each image, but using get_the_date() only returns today's date. Here is the code I'm ...
0
votes
1answer
313 views

how do I get the date in a date archive page

In archive.php, if it is a date archive, can I get the date using a function? Consider a url like this: myfirstsite/2013/08 - I want to get the 2013/08
0
votes
1answer
33 views

Is each issue of a magazine site a static page

I want to create a monthly magazine style website. I can see the url for a month is something like this: www.magazine.com/mywebpage/2013/08 Suppose I want to create a custom page for each month, ...