• Resolved alexei.olivero

    (@alexeiolivero)


    I have a WordPress Headless installed and working correctly, to which I made requests to the /wp-json/wp/v2/posts?tags=1 or wp-json/wp/v2/posts?categories=2 API and received the blog of a specific tag or category (so far everything is correct)

    But suddenly in the updates (6.4 – 6.4.1 – 6.4.2) I don’t know which one specifically because we barely notice that the call to the /wp-json/wp/v2/posts?tags=1 api always gives us returns all posts and not the posts of the tag with id 1

    Any help or suggestion
    Thank you so much

Viewing 2 replies - 1 through 2 (of 2 total)
  • I cannot reproduce this in WordPress 6.4.2 without any plugins. If I call up a specific tag, I only receive posts in response that are assigned to this tag.

    Try deactivating all plugins and, if necessary, switching to a standard theme to rule them out as the cause.

    Thread Starter alexei.olivero

    (@alexeiolivero)

    @threadi

    Thank you very much for your help.

    After installing WordPress from scratch and installing the plugins that I have in the original version one by one, in order to rule out what could have caused the error. We come to the conclusion that the cause of the error is the Blocksy theme in its 2.0.x updates, until 1.9.11 it works correctly, but from 2.0 onwards the rest api filter stops working

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Problems with Rest API /wp-json/wp/v2/posts’ is closed to new replies.