I'm working on a project where I'll be posting content to a WordPress site via email and then accessing that posted content via RSS. However, I don't want the content to be publicly accessible on the front-end of WordPress (i.e., web crawlers, web browsers going directly to the post URLs, etc.); the only way of viewing the post content should be via RSS.
I'm not sure how I should go about this. Should I edit all of the template files in my theme and just remove anything that outputs the post content and title? Or is there a more simple way of doing this via hooks, e.g., using the
is_feed() function to check if a feed is loading the post and then return
"" if it's not a feed?
Any examples would be greatly appreciated. Thank you.