• jezthomp

    (@jezthomp)


    I’m searching for a default post however, it only comes up in the ‘exclude’ searchposts box rather than the ‘include’ posts search?

    Is this something to do with the exclude having an endpoint of per_page=100 whilst the include has per_page=10?

    However, even when i am super specific so the exact page name it doesnt come up!

    It used to be because if was older page than 2020 but even changing it to 2025 the page doesnt appear to be chosen in the inlclude one.

    Tried this on default 2025 theme as well 🙁

Viewing 1 replies (of 1 total)
  • Thread Starter jezthomp

    (@jezthomp)

    To eleaborate further this is down to if there are too many posts/pages with specific content it wont show in the list of post choices.

    For example..

    You have 100 posts, you want to include a post called Hello world, when you search for that if there are more than 10 posts include hello in the rest api call/post content (not the title) then the post title hello world wont be included.

    You can confirm this by doing something like this… /wp-json/wp/v2/pages?per_page=10&search=hello world&_locale=user the post you’re after wont show up.

    However, if you change it to.. /wp-json/wp/v2/pages?per_page=50&search=hello world&_locale=user
    It will appear in 15th or something outside of the top 10.

    So the question is can there be a way to only add posts via their title rather than the whole content?

    Thank you 🙂

    • This reply was modified 1 month ago by jezthomp.
Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.