• Hello,

    I installed your plugin last week (month of July) and it works perfectly. I have it functioning and styled with CSS just the way I want. It shows the year (2020) and month (July) with the correct number of posts for July (8).

    However, today (August) I created two new test posts. They are not showing up in the archive. I was expecting to see the Month “August” show right above “July” but it’s not there.

    I’m using Elementor Pro with a child theme of Hello Elementor’s plain vanilla theme.

    WordPress 5.4.2 with PHP 7.4.1.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Ashley

    (@nosegraze)

    Hi Marc,

    The results are cached for 1 day (using a transient) to prevent querying on every single page load. If you want to force it to regenerate right now then you can install a plugin like Transients Manager, which allows you to view and delete transients. You’ll want to delete the one called expanding_archives_months.

    Thread Starter Marc Dahmen

    (@marc-dahmen)

    Hi Ashley,

    Thanks for the response and for the pro tip. I installed Transient Manager and deleted the transient for your plugin. Now my posts for August are showing.

    And thanks for the explanation as to why they weren’t showing in the first place. Makes total sense for a server/usability standpoint. We definitely don’t want it querying on every page load.

    For purposes of my development site, however, the use of the Transient Manager plugin is key so I can quickly see how your plugin integrates with my site as I’m developing it, instead of having to wait 24 hours.

    Thanks again!

    Thread Starter Marc Dahmen

    (@marc-dahmen)

    One more question, Ashley.

    When I first installed your plugin and created 8 Blog post test for July, your plugin automatically expanded the month of July so all the posts were showing. That is what I want and have the Expanding Archives widget set to “Automatically expand current month”.

    However, after several days but before August arrived, the month of July went into “collapse” mode and wouldn’t automatically expand on page load.

    Is there some kind of time limit set by the transient that initially sets the current month to “expand” but only after a certain period of time and then it collapses?

    Plugin Author Ashley

    (@nosegraze)

    No there isn’t any kind of time limit. The expansion does use UTC though so it’s possible that it collapses a few hours early if server time ticks over to August, even though it hasn’t yet ticked over for you locally (time zone differences). But that should be hours – not multiple days.

    It’s a little hard to dig into this if it’s no longer happening though. But the logic is literally just comparing current year + month in UTC.

    Thread Starter Marc Dahmen

    (@marc-dahmen)

    Thanks, Ashley.

    I ended up deleting the transients from your plugin and the archive then expanded the current month as expected.

    Hi Ashley,
    Thanks for this such good plugin. i have installed this plugin and have customized it for custom post type. but now new months aren’t showing. i have installed the ” Transients Manager” plugin and delete the transients. but still it’s not showing.

    could you please let me know if i have missed anything.
    here is the dev server link: https://bondstone.leadskill.pt/blog1/

    Thanks.

    Plugin Author Ashley

    (@nosegraze)

    Hi @sabbirspi ,

    You will need to filter this function if you haven’t already: https://github.com/ashleyfae/expanding-archives/blob/master/inc/functions.php#L16-L28

    That function is what retrieves the months, and by default it checks the post post type only. So if you’re using a custom post type, you’ll have to change that function.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘New Month Not Showing’ is closed to new replies.