Users Role and Access

What you need first is to understand User Roles in WordPress. Then a plugin to manage custom user roles, like User Role Editor or Members. In the administrative menu Settings > General, set the default role when a user registers to your custom role: The plugin Members has more advanced features, but case you were … Read more

How to Orderby User Role?

This one’s a little difficult, as there’s no default user role meta key or post data. The only thing we got is the user ID. // Get the posts $posts_by_author_ID = get_posts( array( ‘post_type’ => ‘post’ ,’post_status’ => ‘publish’ ,’orderby’ => ‘post_author’ ,’order’ => ‘DESC’ ) ); foreach ( $posts_by_author_ID as $post ) { static … Read more

Multiple authors for single post without plugin

No need to apologize, and not a basic question actually. Depending on what you actually need to achieve once you have your multiple authors assigned, there are several ways to do it: Using tags or equivalent custom taxonomy If you just need to display “authorship” for any given post, you could create a custom non-hierarchical … Read more

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