Last active
August 29, 2015 14:16
-
-
Save ville6000/76d7600aafc757822e80 to your computer and use it in GitHub Desktop.
Get page link from title in WordPress
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
<a href="<?php echo get_permalink( get_page_by_title( 'Contact' ) ); ?>"> | |
<?php _e( 'Contact', 'your_text_domain' ); ?> | |
</a> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment