Show all posts by author
You should uncomment first line and add author query var. $wp_query->query_vars[“author_name”] = “John”;
You should uncomment first line and add author query var. $wp_query->query_vars[“author_name”] = “John”;
Rest API code to get ID of current user not working: get_current_user_id() gives 0
You can retrieve the author page URL for any user by their user ID using the WordPress native function get_author_posts_url(). Combining this with get_users() to retrieve an array of users, you can create an author list in pretty much any way you like! Below is an example of the usage of get_author_posts_url(), displaying a link … Read more
If you are using a follow button plugin like the one in my Simple Twitter Connect plugin, then you should be able to specify the user you want the button to be for. So for example, with STC, I’d activate STC-Login and the STC-Follow Button Widget plugins. Then I’d have my users “connect” their twitter … Read more
You won’t get a proper sort on the meta_value column because the values stored there aren’t treated as integer values, but you can use a method similar to how it was done it WordPress back when we were using meta_value_num to do sorting, which basically involved adding a number onto the front of the data. … Read more
You don’t need to send any additional data, since the user cookies (which are used for authentication) will be sent by default. You have access to all the WP functions, including current_user_can().
You can use current_user_has_role for this And if the standard roles are not enough for you, then I would suggest to download the Members plugin by Justin Tadlock which enables you to add roles.
You can put this in your functions.php : function remove_menu_items() { global $menu; global $user_ID; if( $user_ID ) : /* Dashboard only acccess */ if( current_user_can( ‘dashboardvisitors’ ) ) : $restricted = array( __(‘Posts’), __(‘Pages’), __(‘Links’), [etc…] ); endif; endif; end ( $menu ); while ( prev( $menu ) ) : $value = explode( ‘ … Read more
It’s WordPress 3.1 function – so you’re probably testing it on older versions.
you can still use WordPress and disable the front end functionality, or like @OneTrickPony suggested you can try BackPress which is a PHP library of core functionality for web applications that grew out of WordPress.