WordPress.org

Support

Support » Themes and Templates » [Resolved] Having problem in Suffusion with Multiple Authors ?

[Resolved] Having problem in Suffusion with Multiple Authors ?

  • Hii, Suffusion theme is excellent, but I’m having trouble when my authors use add new post option in Dashboard. I wanna hide additional options for suffusion for them there. Is there any way so that they can’t see the box ?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Authors are Admins?
    If you give them an actual Author role, they will not see the theme options. However that might not be the case if you have any custom fields in the theme itself, simply because they will appear while the Author writes/publishes new post.

    Author’s can:
    Roles and Capabilities

    Thanks Emil for commenting! But, I’ve just set an Author’s role for them. Still, it’s showing-up.

    However that might not be the case if you have any custom fields in the theme itself, simply because they will appear while the Author writes/publishes new post.

    That is exactly what it is. The Additional Options section is a “meta box” in the Edit Page / Edit Post screen, which lets users set custom fields like a thumbnail, or an alternative title to display in the navigation menu etc.

    @inderjeets,
    From your description it is not clear as to who on your site should have rights to change the custom fields. The easiest way to do this is to modify the suffusion_add_page_fields function in functions.php to say something like this:

    function suffusion_add_page_fields() {
    	if (current_user_can('edit_theme_options')) {
    		add_meta_box('suffusion-page-box', 'Additional Options for Suffusion', 'suffusion_page_extras', 'page', 'normal', 'high');
    		add_meta_box('suffusion-post-box', 'Additional Options for Suffusion', 'suffusion_post_extras', 'post', 'normal', 'high');
    	}
    }

    Mind you, an author would still be able to replicate the whole functionality in the meta boxes by simply adding the same fields through the “Custom Fields” section lower down in the Edit Page / Edit Post screen, so I don’t see the point of the above code.

    Thanks a lot Sayontan for commenting !

    Hello Sayontan Sinha ! Hope, you will be fine. If I wanna hide additional options for suffusion for everyone including admin. while adding new posts.

    What should I edit ? Please tell, coz it’s really getting messy!

    You can comment out the two lines that say add_meta_box, by adding // before them.

    However, as mentioned earlier be warned that you are not really achieving anything by blocking out the box. As a person authorized to edit posts/pages I can still make use of the Custom Fields box below in your Edit Page/Edit Post screen and replicate the same functionality there.

    Thanks a lot Sayontan ! Still, it’s good option for me, because I haven’t given authors enough rights to edit their posts.

    Yous support forum is awesome, and certainly praiseworthy !

    I know this is not related to this post but I just wanted to say I LOVE the suffusion and I hope everyone buys you lots of coffees!

    Yeah! It is amazing theme.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Resolved] Having problem in Suffusion with Multiple Authors ?’ is closed to new replies.
Skip to toolbar