I am requiring help in WordPress page link. I am displaying the page title using
<?php wp_list_pages('sort_column=menu_order&include=49&title_li'); ?>
This page has POST ID = 49
. How could I make this page should link to POST = 51
.
Thank You
I am requiring help in WordPress page link. I am displaying the page title using
<?php wp_list_pages('sort_column=menu_order&include=49&title_li'); ?>
This page has POST ID = 49
. How could I make this page should link to POST = 51
.
Thank You
You must be logged in to post a comment.
Change 49 to 51.
If you mean you want to create a link to post 51 using the title of post 49, then use
get_the_title
to get the title of post 49, andget_permalink
to get the permalink for post 51.