• Hi,

    I want to know if there is a way I can update an existing page. For example in many horoscope pages, ex. Horoscope.com , have auto generated daily horoscope that automatically updates the site. How can I use the same permalink or URL and make the anterior post expire and update it with a new one?

    Thanks!

Viewing 1 replies (of 1 total)
  • Yes, of course this is possible.
    However, when I did a quick search for suitable free plugins in the www.remarpro.com plugins catalogue, so you might have to search for a commercial solution, or get your hands dirty in code yourself. (Oh, and if you manage to create the right plugin, then perhaps it might become a popular download here at www.remarpro.com.

    Technically, you probably do something like this:

    • Define a custom post type for your content, where you’d include the content itself and validity date.
    • You’d need an editor to create your timed content, or a way to import it to your site, a batch at a time.
    • Define a filter for a shortcode, say [my-calendar-content], which, when found in the_content, will be replaced by whatever current timed entry you’ve got.
    • Create your page and place the defined shortcode in that page.
    • Make sure to expire your cache (at least for this special page) at the right time to avoid “hangover” issues.
Viewing 1 replies (of 1 total)
  • The topic ‘Is there a way I can auto update an existing page?’ is closed to new replies.