Created
December 18, 2012 01:04
-
-
Save hissy/4324036 to your computer and use it in GitHub Desktop.
WordPress: get permalink by page path
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
<?php echo get_permalink( get_page_by_path( 'page-slug/children' ) ); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment