dphiffer/wp-json-api

Front page implicit JSON not working

Opened this issue · 0 comments

When setting a static front page, the JSON api does not return the static page content, it returns the blog page array of posts, which is incorrect.

I really like the plugin, but I don't have the familiarity to the code to fix it myself.

After some debugging, it appears that is_front_page() is false when json_api_encode filter fires, even though it should be true.