• Resolved nprior

    (@nprior)


    I have 12 posts, one per month of the year, titled January – December in their own category. I would like to display the full post corresponding to the current month (Title, Featured image, content) on the front page of the website. So right now in March, the page for March gets displayed. On April 1, this changes automatically to April’s page, and so on.

    Can you suggest ways of doing this without having to edit the page at the start of each month? Plugins, hacks, coding – all suggestions welcome!

    (Other approaches not requiring posts or pages would be of interest too)

    thanks!

    • This topic was modified 4 years, 8 months ago by Jan Dembowski.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter nprior

    (@nprior)

    I thought I would have to get coding but two plugins have done the trick:
    Shortcodes to show or hide content and Insert Pages.

    I just have to create 12 conditional shortcodes each with a insert pages shortcode embedded within. For example:

    [time-restrict-repeat type="annually" onmonth="March" offmonth="March" ondate="01" offdate="31" ontime="00:00:00" offtime="23:59:59"]
    [insert page='march' display='content']
    [/time-restrict-repeat]

    Job done!

    Thread Starter nprior

    (@nprior)

    Resolved

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Display current month’s page’ is closed to new replies.