Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

date-time

Check If Post Was Published More Than 6 Months Ago Using get_the_date

August 5, 2022 by Magenaut

Inside my content-single template, I have a conditional check that displays text based on how old the post is. The idea is to inform visitors that they might be reading “old” news.

Categories Q&A, Wordpress Tags date-time, php, single Leave a comment

How to get the latest posting time of archived pages in WordPress?

August 5, 2022 by Magenaut

Is there a way to get the post time of the latest post under the WordPress archive page?

Categories Q&A, Wordpress Tags archives, date-time, posts Leave a comment

How to get WordPress Time Zone setting?

August 4, 2022August 3, 2022 by Magenaut

Can someone tell me how to get the time zone that is set in the WordPress Admin?

Categories Q&A, Wordpress Tags date-time, options, php, timezones Leave a comment

Why time functions show invalid time zone when using ‘c’ time format?

August 4, 2022August 3, 2022 by Magenaut

These are the functions I use in my theme to display the “entry-meta” which includes published and last modified dates (among others) of an article:

Categories Q&A, Wordpress Tags date-time, post-meta, timestamp, timezones Leave a comment

How to schedule multiple posts while adding new

August 3, 2022August 2, 2022 by Magenaut

In a WordPress powered news portal, they need to upload many news at a time on a certain period of a day, in most of the cases, after 10pm (today). But they are actually inserting news for the next day (tomorrow). So in WordPress way they need to schedule the news (post) each time when publishing.

Categories Q&A, Wordpress Tags date-time, posts Leave a comment

How to get the posts published in last two days using WP_Query?

August 3, 2022August 2, 2022 by Magenaut

I am trying to loop through all the post to get the top most shared posts on social network. I want to use the date_query parameter in the WP_query to get the posts of last two days , last 5 days, last 7 days and last 9 days. How can i implement it through using the date_query in WP_Query
My WP_query is

Categories Q&A, Wordpress Tags date-time, query, wp-query Leave a comment

Display last login time

August 1, 2022July 31, 2022 by Magenaut

I am using this script to get the last time a user logged in

Categories Q&A, Wordpress Tags date-time, login Leave a comment

How to List Events by Year and Month Using Advanced Custom Fields?

August 1, 2022July 31, 2022 by Magenaut

I have a custom post type “Kalender_item” with a custom Date Field (YYMMDD). I want to list all the posts on a page sorted by Year and Month.

Categories Q&A, Wordpress Tags advanced-custom-fields, date-time, query Leave a comment

How to get date for each post?

August 1, 2022July 31, 2022 by Magenaut

I’m using the following to get the date of each post:

Categories Q&A, Wordpress Tags date, date-time Leave a comment
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress