Support » Fixing WordPress » Restrict Authors to One Page?

  • Good morning all

    I am looking to allocate a login account and a single page to some of our users so that they can update their individual page and release posts on the site. I am wanting to limit their editable and publishing allowances to just their individual page and wondered if there was a way I might be able to do that.

    Any help would be much appreciated!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You could try the User Role Editor plugin and create a custom role.

    Getting a new custom permission set correct can be hard work though. But one of the permission checkboxes is “Edit Others Pages”

    If you can get a custom permission set that works then you should be able to do it from there.

    Presumably though you’ll need to ensure that each users page’s only show their own posts?

    Possibly something like this…
    1) Create page template type which (in a childtheme) called for example user_page.php with this as the content

    	Template Name: user_page
    	include TEMPLATEPATH . "/index.php";

    You can then create the pages for the users and set to this template type. You can then use the is_page_template() function as a test in your query code.

    2) This bit will depend on your theme. I use thematic childthemes so would filter the page query in my functions.php. Something like this…

    function Langdale_Queries() {
    	$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    	if (is_page_template('user_page.php')) 	{
    		query_posts("[your code here] &paged=$paged");
    add_action('thematic_abovecontainer', 'Langdale_Queries');

    You’d need to map the page name to the appropriate user & then check the codex for appropriate parameters to get only the posts for a given user

    Hi rebelit
    I am following your tips above to achieve the same result as cpcuk. Can you explain what you mean at the end by: ‘check the codex for appropriate parameters’?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Restrict Authors to One Page?’ is closed to new replies.