Created
September 18, 2019 10:26
-
-
Save vbaimas/82cf37cf7d57e38bde02f715052b45e2 to your computer and use it in GitHub Desktop.
Scenario : If you want to get the permalink using the method with child-page, then you need to pass the full slug. So, in this case we have a child page "about" with a parent pages which called "skills".
This file contains hidden or 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_path( 'about/skills' ) ) ?>">Skills</a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment