Help using WP-Members to block feeds
-
I’m having some trouble figuring out how to modify my feed php core files so that the WP-Members will effectively block them. I’ve set the feeds to push the whole post.
The only real instruction on how to modify the core feed files is to add the below code somewhere in each feed php file. However, it doesn’t say where, or whether more needs to be done, or even whether I need to wrap this code in php tags. Since the feed files are written a little differently than the post/page files, I haven’y yet been able to figure out how to do it by following the post/page file instructions – I’ve gotten it to work fine there, just not on the feeds.
Has anyone used WP-Members for this purpose? Do you have any guidance on how to edit these files to get it to work? I appreciate the help, thanks.
The code:
if (function_exists(‘wpmem_feeds’)) {
run the wpmem_feeds function, block the content if not logged in
} else {
show the feed if the user is logged in or the plugin is not activated.
}
- The topic ‘Help using WP-Members to block feeds’ is closed to new replies.