How do I check if a post was published yesterday?

Question
By using get_the_time(Yd)===current_time(Yd), I can check and customize styling of posts published today. How to check if post was published yesterday? Any idea would be appreciated.
0
2 weeks 0 Answers 27 views

how to compare different timestamps in wp-query for events custom post types?

Question
I have a custom post type with custom metaboxes (as seen on wptheming.com) and would like to make a query to show upcoming events, say in the sidebar, where past dates are left out. But I need a value ...
0
2 months 0 Answers 67 views

Customize Time Stamp

Question
I'm using this nifty timestamp function that makes the post date "1 day ago" and "five minutes ago" etc. However after a few days I want it to switch to the actual date it was written so for example: January ...
0
2 months 0 Answers 67 views

possibility to control embedded video timeline with buttons and links external to the player

Question
I am a designer working on a Wordpress website, currently, I need to make a page where there can be displayed an external video (can be from almost any URL) but I want to include some functionality that allows adding ...
0
3 months 0 Answers 79 views

Question
I am trying to perform the following query, which originates by the fact the post's 'date' and 'time' are entered as separate custom fields. $args = array( 'post_type' => 'some_kind_of_posts', 'posts_per_page' ... 0 4 months 0 Answers 37 views Query not work for current taxonomy Question Hi i want to show current taxonomy post type count by month but it show total post count istead of current tax. please help me. i am trying to solve this problem almost 3 weeks. <?php$post_type ...
0
5 months 0 Answers 58 views

Update all comments time to random dates?

Question
I found this code snippet which randomly changes all the dates for all posts. (Original Post : Update existing post dates to random dates ) <?php /** * Plugin Name: WPSE 259750 Random Dates * Description: On activation, change the ...
0
6 months 0 Answers 44 views

display month in french in wordpress/php?

Question
I am working on a php code as shown below: <?php <time datetime="<?php echo esc_attr(date_format($ts, 'H:i d-m-Y')) ?>" data-timezone="<?php echo esc_attr($tz_param) ?>"><?php echo esc_html(date_format(\$ts, 'F j H:i')) ?></time> ?> // Line A Line A returns the following ...
0
11 months 0 Answers 42 views

How to make debug.log timestamps local time?

Question
I look at the debug.log file a lot while developing, and having all the timestamps in UTC drives me crazy! How can I get them to display in local time? I have my php.ini 'date_timezone' value set to ...
0
5 years 0 Answers 35 views