creating different edit screens for different roles

Solved it for different edit pages for different roles. In my method resposible for rendering the field I have: if ( count( array_intersect( $allowed_editors, $user->roles ) ) < 1 ) $readonly = ‘readonly’; Which I later use to either set the input field as readonly or add/remove classes before rendering it. Still working for the … Read more

Custom url for custom post types

Use add_rewrite_rule() function custom_rewrite_rule() { add_rewrite_rule(‘^nutrition/([^/]*)/([^/]*)/?’,’index.php?page_id=12&food=$matches[1]&variety=$matches[2]’,’top’); } add_action(‘init’, ‘custom_rewrite_rule’, 10, 0); you can use if ( ‘myposttype’ == $post->post_type ){} to make it post type specific. Weather you want to add it inside the function or wrapping the add action is up to you.

How to assign custom post template to its custom taxonomy terms

You should call your file taxonomy-interview_category.php to be automatically associated with your custom taxonomy. If you want it to look like interview archive, you can just include archive-interview.php in your newly created taxonomy-interview_category.php. I suggest you have a look at this image that explains WordPress template hierarchy and logic: http://codex.wordpress.org/images/9/96/wp-template-hierarchy.jpg