The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
1answer
15 views

Issue with strtotime() and Meta Box date

Shouldn't this code display the date provided from the META BOX date picker input field according to the language chosen? Explanation: The Meta Box value that is coming in though rwmb_meta() is ...
1
vote
0answers
24 views

Meta Query posts not showing on ending date of custom field

I feel like my logic is off, but the short version is I have 2 custom fields spitting out unformated times for event-start-date and event-end-date. I don't want to show a post if the start-date is not ...
0
votes
0answers
10 views

Search Post Types and the Meta Boxes

I have meta box called (orginalday), This i will save the post day when the user write post and save it in (pending), And i have form that have 2 input type to search post from day to day. So i need ...
0
votes
1answer
39 views

Pre_get_posts comparison with custom field doesn't work

I got the following code in my functions.php. A couple of months ago it worked (or at least looks like it was), but now it isn't and I don't know what happened. // *************************** // ...
5
votes
3answers
172 views

Why my uploaded picture was loaded into /uploads/2015/02 not /uploads/2016/01?

Today is 2016-01-01 in my console. date Fri Jan 1 14:24:04 CST 2016 Now I write an article attached a photo which is taken today and publish it today. I found that the URL of the photo was ...
-1
votes
1answer
27 views

get_the_date() return always UTC+0 [duplicate]

I need to return correct ISO 8601 date format for my country (Poland, Warsaw). It should be UTC+1. I use function get_the_date() with argument "c". On General Settings in field Timezone I chosen ...
0
votes
1answer
28 views

Display year value before a set of posts

This is what I am trying to accomplish: I have a page template which displays "case studies" where "case studies" is a custom post type. the page template called: page-case-studies.php I actually ...
0
votes
0answers
55 views

Automatically move pending posts after 30 days and, update the post date, when users update the posts

I have a multi-user blog, and would like to implement two functions in WordPress 4.3.1. The first function moves publish posts in pending after 30 days. I used a add_action. My code: function ...
-2
votes
4answers
33 views

How to remove a date from wordpress post

djeddiedavid.info this is my website i want to remove a date that show on wordpress posts anyone help me ? date that show on the bottom of DJ upcoming event
0
votes
1answer
24 views

Get previous posts list

I'll give up. Have searched and searched and tried and tried... Can't find any solution to list previous posts. On a single post: I want to show a list of the 10 previous posts, the 10 before the ...
0
votes
1answer
26 views

Month display in English but required in Swedish?

I am using WordPress settings like below Image: On post output come like 13 October 11:49 but my requirement is to make it like oktober in Swedish and same for all other months. Thanks!
0
votes
2answers
30 views

How can I query on the year part of a complete date in a custom field?

My posts have a custom field named production_date and formatted YYYYMMDD. How can I form a meta_query to select only the YYYY part? $meta_query_args = array( array( 'key' => ...
0
votes
1answer
50 views

How to restrict an author scheduling their post date to a maximum X days ahead from the current date

How would I restrict an author in scheduling their post X (let's say 8) days ahead of the current date?
0
votes
1answer
22 views

suffix title with “EXPIRED” when scheduled post has reached it's published date

I'm scheduling and displaying all my posts in the future. I'd like to somehow add some text after the post title when the publish date is reached. In effect the post will expire at the time of the ...
0
votes
1answer
25 views

empty query breaks other queries

Hi I have a cpt query which displays 1 latest event based on date. It works fine - problem is when date is < today (theres no future events to display) this query is empty and also breaks other ...
0
votes
0answers
31 views

Use the_date with link

How I use the_date with link, a link to archive same date. <?php the_date('l j F Y', '', ''); ?> When there are multiple posts on a page published under the SAME DAY, the_date() only ...
0
votes
1answer
31 views

How can I set and update the the_date according to a custom field of the post

How can I set and update the the_date according to a custom field of the post? I have a custom field "date-time" with the following format yyyy-mm-dd hh:mm e.g. 2015-09-30 08:12 I'd like this date ...
0
votes
1answer
153 views

Ordering posts by custom field and grouped by month

I need display all custom posts (event), order them by custom field (date) and group by month: September Event 1 Event 2 August Event 3 July Event 4 Event 5 I know, it is frequently asked ...
0
votes
0answers
59 views

date archive future posts

Im using cpt for events and i need to display them in a calendar. most of the events are future. i managed to query the right ones by post_status at the archive, but I need to do the same at the ...
0
votes
0answers
62 views

How to get to the date of the uploaded file

Anyone can tell which is the filter (if there is any) used for the date of an uploaded file. This can be useful to limit the upload for the users based on the time.
0
votes
1answer
72 views

How to display a WordPress Custom Field only on a specific day of the week?

I've got WordPress site for which I've set up a custom post_type along with some custom fields created with CMB2 to display extra stuff within my custom posts. When editing a single item for my ...
0
votes
2answers
92 views

Query post for today, if no post get the previous one

EDIT : I answered myself. Simple request for you. I am trying to develop a code that search for post for TODAY. If it returns nothing, then get the latest post before today. For now, I have made a ...
0
votes
0answers
38 views

WP Group posts by year(desc) > month(desc) > date(asc)

I have a custom category template to group posts by a custom field 'event_date'. 2 things I cannot figure out, correctly: grouping by year and month, and having those in descending order, while the ...
0
votes
1answer
53 views

Display 'modified date' in Wordpress Twenty Fourteen

Could anyone tell me how I can show the modified date from posts to my readers? I use Wordpress Twenty Fourteen with the Twenty Fourteen Extended plugin. Structured Data testing Tool already shows ...
0
votes
0answers
54 views

correct date for each post / photo

I need help. I published three post photos on different days with different dates. Why the dates are not in sequence but inserted according to when they were published ..!? I wish that if something ...
1
vote
2answers
62 views

Get date numerical and separate?

I need to work with date function but I want to get day and month numerical and separate and pass it to a function. For example, I want work for this function. function(day,month) How can I ...
0
votes
0answers
466 views

Get month and day from a Date Picker custom field

I've got a custom field called fecha_del_evento from which I want to obtain the day and the month in different formats; day in numbers, and month with the 3 first letters. The code I'm using is a ...
0
votes
0answers
39 views

Keep pending post date as publish date

Is there some function which will set publish date of post same as pending date? I wish to keep pending time as published time, to prevent WP from using time when post is published as published date. ...
0
votes
1answer
73 views

Loop posts in a table ordered by a custom field value

I'm trying to generate a table for a custom post type events, in which I have a few custom fields, one of these is the date. I want to display the posts in the table and order them by the Date value. ...
0
votes
0answers
18 views

Set post beginning date and final date

I'm developing a website that is like a Advertisements System. I tried to use Post Expirator but it doesn't work the way we need. It must set a BEGINNING DATE and EXPIRATE DATE. Because will be A ...
0
votes
0answers
71 views

JQuery Datepicker Blackout Dates

add_action('frm_date_field_js', 'limit_my_date_field'); function limit_my_date_field($field_id){ if($field_id == 'field_jk8k8s'){ //change jk8k8s to the key of your date field //get all the ...
0
votes
0answers
82 views

Change permalink , keeping old structure with date

Currently on our website we have the /date/postname permalink structure with quite a number of posts. For SEO purposes we want to change it to /postname permalink structure but we want to keep the ...
0
votes
1answer
209 views

Date query for a custom meta field

I would like to use something similar to the following date_query but I would like to use some custom meta fields instead of the existing post columns. For example instead of post_date_gmt I would ...
0
votes
2answers
351 views

Query between dates using date picker filter breaks in Wordpress 4.2.1

Original post: Query between dates using Date Picker fields I originally made a post last year on this same subject, but seems the update to WP v4.2.1 has broken my filter. In summary, I am using ...
0
votes
1answer
472 views

$wpdb->get_results returns empty but value exists

this is my first question here. More then 5 years working with Wordpress, I always find the right way through the Google, but in this case I did not even know what to do, I really stacked :( So ... ...
0
votes
1answer
45 views

date() returns incorrect value if used from WordPress theme, but correct otherwise

As I have mentioned in title if I use date('H') function in WP theme, it simply returns UTC time, but the server is set to use timezone Europe/Riga and the same is set in WP General settings. At the ...
0
votes
0answers
56 views

create a RSS feed of upcoming events

I've created a custom calendar of events using a custom post type, and I want to send the upcoming events - whatever their published date - with a RSS based MailChimp newsletter. My RSS template is ...
0
votes
2answers
96 views

Skip posts, but keep posts per page

I'm running through a normal loop on one of my templates, and it displays a list of upcoming events with dates. I'd like the events that have passed to stay active, but not appear in my list of posts. ...
1
vote
1answer
69 views

Get the next event using date_query

I created a CPT called event and want to make a query to show the next future event, based on it's publish date. Here is the WP_Query args: $today = getdate(); $args = array( 'post_status' => ...
0
votes
1answer
117 views

How to filter posts in admin by before date or by post status 'future'?

I have read/searched a ton of questions but all I find seem to be related to custom post types and such. The situation is that sometimes we happen to have a lot of posts waiting for to be published ...
0
votes
1answer
242 views

group posts by month/date ignore years

Need group posts from custom post type by post date. Example: Jan (all posts posted in januar for all years 2010,2011 ... 2015) 1 (all posts posted in 1 januar for all years 2010,2011 ... 2015) POST1 ...
0
votes
1answer
64 views

How do I display a date correctly that is stored in the database as a backwards 8 digit number from Advanced Custom Fields? [closed]

I am modifying someone's Wordpress theme and they have a section for upcoming tour dates. The page for inputting was made with Advanced Custom fields plugin and uses a date picker widget that stores ...
1
vote
1answer
146 views

Complex WP_Query order request: DESC by day, but then ASC by time

I've got a site with a couple thousand time-stamped posts in a custom post type. These get displayed by a few taxonomies and a date query in various views (I've got that all working just fine ...
1
vote
2answers
104 views

Change date from 2015/02/23 to “1 min ago”

So here is my code to display the post created date: $date_create = '<div class="mydate-created">'; $date_create .= get_the_date('',$product->id); $date_create .='</div>'; ...
0
votes
1answer
61 views

Limit loop to future events

I have a custom post type, basic_events, with a custom date field, date_of_event. My view shows these posts in ascending order, based on this custom date field. $args = array( 'post_type' ...
0
votes
1answer
359 views

How to show list of posts with custom field value (a date) that are coming soon

I have a custom post type called client and it has a custom field of next_due_date, that is a date without time. I want to have a list of posts that have a next due date that is coming up soon. I ...
0
votes
1answer
49 views

Show post date on the page

What is the php code for showing post date on the page? For example, it is a woocommerce product and here is the php code that I have so far: does this work? if ($hide_price !== '0') : ...
0
votes
2answers
385 views

Remove Page Timestamp via functions.php so it doesn't show in Google Search Result Description [closed]

I want to remove the last updated / last modified date from pages (not posts) via functions.php (could this be done by making that hook __null?) The goal is to remove the google search result ...
1
vote
2answers
398 views

How to make an archive page displaying posts in a date range

I'm trying to make a couple of Page Templates for different Pages that should act as an archive to display posts (a Custom Post Type actually) in a certain date range. The website it concerns is ...
0
votes
0answers
123 views

How to get past and upcoming post by defining date in custom field?

I have create a custom post type "event" and created some posts in it. I have also created a custom field "EventDate" and giving value like "April 08, 2011", "February 08, 2016" etc for each event ...