User Roles Not Sticking

You might want to use WP_User::set_role( ‘contributor’ ) instead. It unsets all current roles and sets the new one (the argument) too. So the above would be if ($count_posts >= $postlimit) { $current_user->set_role( ‘contributor’ ); }

Exclude custom taxonomy tag from loop

I have rewritten the query_posts. As for get_posts you are better off using the WP_Query due to more control over the tax_query. Explained here. <?php $args = array( ‘cat’ => 84, ‘posts_per_page’ => 3, ‘offset’ => 0, ‘tax_query’ => array( ‘relation’ => ‘NOT IN’, array( ‘taxonomy’ => ‘display’, ‘field’ => ‘slug’, ‘terms’ => ‘featured-slider’ ) … Read more

Custom Taxonomy Archive not displaying entries

I think you may need to filter the query for that taxonomy so it displays your movie custom post type. Try adding this to your theme’s functions.php file: function custom_post_archive($query) { if (!is_admin() && is_tax(‘genre’) && $query->is_tax) $query->set( ‘post_type’, array(‘movie’, ‘nav_menu_item’, ‘post’) ); remove_action( ‘pre_get_posts’, ‘custom_post_archive’ ); } add_action(‘pre_get_posts’, ‘custom_post_archive’); You’ll need to add to … Read more

WP-Admin gives 403 Forbidden after login on CentOS 7

Add this in your .htaccess file at website root folder. If you deleted it then create it again and paste this. DirectoryIndex index.html index.php # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress EDIT Looks like you … Read more

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