How to restrict posts only from a certain category

try this: <?php //first check if its the category in question if ($cat == ‘1’) { //then if the user is logged in show the content if (is_user_logged_in()){ the_content(); }else{ //if not show the excerpt the_excerpt(); } }else{ // and if its not the category show the content the_content(); } ?> Update Judging by your … Read more

Limit user access to installing/configuring a plugin?

WP doesn’t have a built-in way to restrict permissions this granularly. You can either install plugins, or not. For settings, it depends on where the plugin surfaces its settings. For example, if the settings are under the “Settings” menu, then by default only users with role “administrator” will be able to access and adjust them. … Read more

Control Category of each user can post

I actually have a plugin that does just that, it adds a category dropdown to the user profile edit: Only user who can manage_options (admin) can see that field. and once the user is logged in to post he sees this: Update Its now in the plugin repository http://wordpress.org/extend/plugins/author-category/ enjoy.

Add existing user as administrator

WordPress user accounts are unique to a single installation of WordPress. Even if they are hosted on the same server, there’s no simple way (and, more importantly, probably no secure way) to hook them together. WordPress accounts on WordPress .com can be added to other sites, but not accounts on self-hosted WordPress installations. The only … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)