WordPress.org

Ready to get started?Download WordPress

Forums

Title of the page (2 posts)

  1. snyderjoe
    Member
    Posted 6 years ago #

    This is for sure a stupid question, but I just cant find it...
    I am creating a navigation of certain pages with
    ">asdfasdf
    ">xxxxxxx
    etc.
    How can I display the titles of the pages instead of "asdasdf" and "xxxxxxxx" like in
    <?php wp_list_pages('include=4,2,9,3&sort_column=menu_order&title_li='); ?><?php */?>
    thank you.

  2. snyderjoe
    Member
    Posted 6 years ago #

    oh this does not look like anyone can answer it. sorry.
    i wanted to post code. so i will put it in between backticks: So here my question again:

    I am creating a navigation of certain pages with

    <a href="<?php echo get_permalink(2); ?>">asdfasdf</a>
    <a href="<?php echo get_permalink(9); ?>">xxxxxxxt</a>

    How can I display the titles of the pages instead of writing "asdasdf" and "xxxxxxxx". It should work like in
    <?php wp_list_pages('include=4,2,9,3&sort_column=menu_order&title_li='); ?><?php */?> but i dont want to use this command.
    thank you for your patience (a preview for the postings would be cool..)

Topic Closed

This topic has been closed to new replies.

About this Topic