Allow access on a page to just only a specific member

The same concept as Dominic’s (no need of a members plugin) but expanded to use a Meta Box, visible only for Admins, with a dropdown list with all the users (with exceptions). Code borrowed and adapted from this answer. Put in functions.php: // List Users add_action( ‘admin_init’, ‘wpse_33725_users_meta_init’ ); // Save Meta Details add_action( ‘save_post’, … Read more

How to create a Full RSS feed (secret URL) for certain users, short for the rest [closed]

A “secret” full text feed Here’s a demo plugin that gives you a full text feed at: example.tld/secretfeed/ Just remember to flush the rewrite rules, e.g. by visiting the Settings/Permalinks page: <?php /** * Plugin Name: Secret Full Text Feed * Plugin URI: http://wordpress.stackexchange.com/a/208724/26350 */ add_action( ‘init’, function() { add_feed( ‘secretfeed’, ‘do_feed_rss2’ ); }); add_action( … Read more

How can I only show certain posts?

I haven’t had time to test this, but you can probably do this with the the_content filter hook. This way you won’t have to insert this code into archive.php, category.php, tag.php, author.php and any other archive file depending on how your theme is structured. In your theme’s functions.php file add the following: function my_filter( $content … Read more