A
A
Alexander Stepanov2018-08-06 14:26:59
WordPress
Alexander Stepanov, 2018-08-06 14:26:59

How to make date update in WordPress?

Good afternoon, colleagues!
How to do the following:
you need to implement the ability to change the date of a post using standard WordPress tools.
That is, you need to make a calendar module. With the publication for one date - there are no questions, how to make it so that if this event is for a month, two, three? How to make automatic update? Or end date..
The site has a filter that works through the_date.
I tried to install the Post Expirator plugin - it doesn't want to work.
How to solve this issue?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor Vorotnev, 2018-08-10
@HeadOnFire

Option 1: Metadata (wp_postmeta).
Option 2: Use the post_modified column in wp_posts, update it on schedule.
Option 3: Use a separate table in the database specifically for this.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question