After adding add_role to functions.php and creating a user, can not login into admin

That’s because the “normal” capabilites that are needed to login are missing. You should simply load the capabilites of some default role and attach them to your custom role before using it on a user. EDIT: Solution from @dashalune (OP): add_role(‘resourcerer’, ‘Resourcerer’); $role =& get_role(‘resourcerer’); $role->add_cap(‘read’);

Change or update WordPress loop based on dropdown selection

First use this code for populating parent dropdown. <select id=”parent”> <option>-</option> <?php if(taxonomy_exists(‘parent_taxonomy_name’)): $results = get_terms(‘parent_taxonomy_name’,array(‘fields’=>’all’,’parent’=>0)); if ($results): foreach ($results as $result): ?> <option value=”<?php echo $result->name; ?>”><?php echo $result->name; ?></option> <?php endforeach; endif; endif; ?> </select> You may need to use ajax/jquery to fill in the 2nd dropdown box. <select id=”child”> <option>-</option> </select> jquery … Read more

Is there a way to have the view link on manage posts page to open in a new window or tab?

Late answer WP core offers a function for that case, that makes it much easier and future proof: Simply map it on each item. Wrapped up in a plugin Best used as mu-plugin. <?php /* Plugin Name: (#32093) »kaiser« Open “action”-links in post type list screens in new windows/tabs */ function wpse32093_link_target_blank( $actions, $post ) … Read more