Tag Info

Hot answers tagged

2

Attach a custom user meta field to all of them - for e.g. a checkbox. Then, in your template, simply query the user meta field and if it is checked, just output the shared user name instead of the user profile field you would use for other users. If you want to make sure that users can not attach themselves to that "group", you will have to wrap the ...


1

Since the category widget on the post page only lets you create categories and not delete them, you could just hide access to the main category editor page for this user type, and allow them to still create categories within the post editor. You could do this with CSS or javascript, something like $('ul.wp-submenu ...


1

Use 'show_option_none' argument for this. wp_dropdown_users( array('show_option_none' => __('No user selected') ) );


1

To get post meta fields, you can use get_post_meta() function, but obviously not get_user_meta(), the name of the functions are self-explanatory. The first parameter of get_post_meta() function is the post ID; here you define which post you want to get postmeta from. So, you need to get frist the post ID of the post you want and then pass this ID to ...


1

Add to your functions.php file the following code, this will hook into your admin header section and will place the style you chose accordingly to the matching site. add_action('admin_enqueue_scripts', 'my_admin_background'); function my_admin_background() { wp_enqueue_style( 'custom-style', get_template_directory_uri() . '/css/custom_script.css' ...



Only top voted, non community-wiki answers of a minimum length are eligible