• Resolved Marc Dahmen

    (@marc-dahmen)


    Hello,

    I just updated Expanding Archives to version 2.0 on my staging site and it appears to be only working half way.

    Expanding prior years does work and shows the months of the year where posts were created. However, expanding the months to drill down to the individual posts is NOT working, so I can’t see the archived posts.

    I installed the Transient Manager plugin and deleted expanding_archives_months but that did not work.

    Can you tell me what’s going on? Thank you.

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

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

    (@nosegraze)

    Hi Marc!

    It looks like the problem is your iThemes security settings. It’s making the request to fetch the data, but this error is being returned:

    {"code":"itsec_rest_api_access_restricted","message":"You do not have sufficient permission to access this endpoint. Access to REST API requests is restricted by iThemes Security settings.","data":{"status":401}}

    The new update uses the REST API to fetch post data. Normally this is a public endpoint, but your iThemes Security settings are blocking it. Can you adjust those settings?

    The plugin uses the posts endpoint. Here’s an example request:

    https://ciminostage.wpengine.com/wp-json/wp/v2/posts?after=2021-12-01T00%3A00%3A00%2B00%3A00&before=2021-12-31T23%3A59%3A59%2B00%3A00&_fields=title%2Clink

    Thread Starter Marc Dahmen

    (@marc-dahmen)

    Thanks for the reply and info, Ashley.

    Do you know what settings in iThemes I should be adjusting or making to allow your plugin to use the REST API?

    Plugin Author Ashley

    (@nosegraze)

    Here’s a link to an iThemes article that explains how to enable the setting. You’ll just want to adjust it a little so that you’re disabling the setting instead. https://ithemes.com/security/wordpress-rest-api-restrict-access/

    Thread Starter Marc Dahmen

    (@marc-dahmen)

    Thanks for the pro tip, Ashley. Worked like a charm.

    Plugin Author Ashley

    (@nosegraze)

    Brilliant! Let me know if you have any other issues. ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Expanding Archives: Years Expand but Not Months’ is closed to new replies.