WPWale / Micros-Server

Plugin to offer micros feeds for registration and distribute micros
GNU General Public License v3.0
0 stars 0 forks source link

Create a Feed URL with a dummy feed #3

Open actual-saurabh opened 6 years ago

actual-saurabh commented 6 years ago

Dummy Feed based on https://gist.github.com/actual-saurabh/12a486173f4dee5cd52e63d85f38220f

actual-saurabh commented 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.

actual-saurabh commented 6 years ago

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.