Open actual-saurabh opened 6 years ago
Allow users to create and assign a page to use as the feed endpoint. (for, yoursite.com/micros-feed/)
Using template_redirect
and template_include
, prevent loading of the default template when page id of the current request matches the id of the page assigned as the endpoint.
Instead, output the feed json.
Create an options screen with one option that provides a dropdown of pages that a user can select to act as the micros feed, similar to how they can select a static home page.
Dummy Feed based on https://gist.github.com/actual-saurabh/12a486173f4dee5cd52e63d85f38220f