Last active
January 30, 2019 13:10
-
-
Save braddalton/133e9b8672692832592b5c1c9f53657b to your computer and use it in GitHub Desktop.
Add Shortlink on Genesis Tag Archives https://wp.me/p1lTu0-ie6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'genesis_entry_footer', 'add_wp_get_shortlink' ); | |
function add_wp_get_shortlink() { | |
if ( is_tag() ) { | |
printf( '<a href="%s">' . __( 'Your link text here' ) . '</a>', wp_get_shortlink() ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment