• Resolved Koen

    (@drhnews)


    I’ve got custom posts and taxonomies (ACF Free) and have Solid Security Basic installed with Restricted API Access enabled.

    Retrieving the custom posts with {site_url}/wp-json/wp/v2/{custom_post_endpoint} works fine.

    Retrieving the custom taxonomy with {site_url}/wp-json/wp/v2/{taxonomy_endpoint} throws an ‘itsec_rest_api_access_restricted’ error (code 403).

    Setting Solid Security Basic to Default API Access returns both just fine.

    Why is this not retrieving the taxonomies?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support chandelierrr

    (@shanedelierrr)

    Hi @drhnews, glad you reached out!

    It does look like Solid Security is blocking access to custom taxonomy endpoints when the REST API setting is set to “Restricted”.

    Can you try using the acf/rest_api/{$post_type}/get_fields filter from ACF to test if you can include your custom taxonomy in the REST API response? Here’s the documentation but I’d suggest reaching out to their support team for further assistance in creating the custom code snippet.

    In the meantime, I’ll reach out to our team internally to know whether the restrictions for custom taxonomies are intentional.

    Plugin Support chandelierrr

    (@shanedelierrr)

    Hi there,

    I hope the previous reply was helpful. Tracking notifications on this forum can become tricky over time, and since we haven’t received a response, I’ll mark this post resolved.

    If you still require further assistance, feel free to open a new support topic, and we’d be happy to assist.

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WordPress API get fails for custom taxonomie’ is closed to new replies.