[Resolved] Widget – Archives (Custom Post Type) – How to get date archives working?

Home Forums Support [Resolved] Widget – Archives (Custom Post Type) – How to get date archives working?

Home Forums Support Widget – Archives (Custom Post Type) – How to get date archives working?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1647216
    William

    Added a CPT “Press”
    Created archive-press.php (working)

    Need to view archives for this CPT by date

    Client wants a widget showing archives grouped by year, I tried using Archives (Custom Post Type), it creates links like “/press/2017/06/”. When I click on those, they go to the homepage.

    I tried using the plugin “Custom Post Type Date Archives”, and I get a similar result.

    How would I get those links to go to a page that showing those results?

    Better yet would be to have the post results on the archive-press.php reflect the filtered date range.

    Any and all help is greatly appreciated!

    #1648400
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    This may be something you need to bring up with the plugin author, as the theme has no say in this kind of stuff.

    If the URLs are wrong/not working, your permalinks (Settings > Permalinks) may be broken/configured incorrectly.

    #1650828
    William

    FWIW, I found the issue. Rank Math SEO plugin has this setting DISABLED by default.

    Dashboard / SEO Titles & Meta

    Date Archives

    Enable or disable the date archive (_e.g: domain.com/2019/06/_). If this option is disabled, the date archives will be redirected to the homepage.

    #1652034
    Tom
    Lead Developer
    Lead Developer

    Glad you found the issue! Thanks for reporting back 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.