• Hi, I’ve submitted this before but never saw the reply and gave up. However I still have this issue.

    My live site shows the popular posts without issue. However both my local (mac os) and dev/staging environments (LAMP) are not showing any posts. When I visit the endpoint “/wp-json/top-10/v1/popular-posts/” on the local/dev/staging sites I get an empty page (as opposed to live where I get data). I don’t see anything in the error logs and I don’t have endpoints disabled, I get data for this endpoint /wp-json/wp/v2/posts/

Viewing 1 replies (of 1 total)
  • Plugin Author Ajay

    (@ajay)

    If I understand correctly, the API works on your live site and not staging/local? Could there be anything in there breaking it, e.g. permalinks? Also do other end points work except this one?

Viewing 1 replies (of 1 total)
  • The topic ‘API endpoint not returning data’ is closed to new replies.