Simply paste this function on your functions.php file:
if ( !function_exists('edit_term_link') ) { function edit_term_link( $link = '', $before = '', $after = '', $term = null ) { if ( $term == null ) { global $wp_query; $term = $wp_query->get_queried_object(); } $tax = get_taxonomy( $term->taxonomy ); if ( !current_user_can($tax->cap->edit_terms) ) return; if ( empty($link) ) $link = __('Edit This'); $link = '
' . $link . ''; echo $before . apply_filters( 'edit_term_link', $link, $term->term_id ) . $after; }}
Once you saved your functions.php file, add the following code on any category, tag or taxonomy template:
It will output a link (only if you're logged in as an administrator, of course) to quickly edit the term.
Thanks to Joost de Valk for this great function!
View the original article here
This post was made using the
Auto Blogging Software from
WebMagnates.org This line will not appear when posts are made after activating the software to full version.