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 ha开发者_如何转开发s POST ID = 49
. How could I make this page should link to POST = 51
.
Thank You
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, and get_permalink
to get the permalink for post 51.
echo '<a href="' . get_permalink(51) . '">' . get_the_title(49) . '</a>';
精彩评论