Answers for "wp linkis to go back to parent page"

PHP
1

get parent page link wordpress

<?php global $post;
  if ( $post->post_parent ) { ?>
    <a href="<?php echo get_permalink( $post->post_parent ); ?>" >
    <?php echo get_the_title( $post->post_parent ); ?>
    </a>
<?php } ?>
Posted by: Guest on May-11-2020

Code answers related to "wp linkis to go back to parent page"

Browse Popular Code Answers by Language