Forums

Links to pages on my site (5 posts)

  1. pbb2504
    Member
    Posted 3 years ago #

    Hi

    I am trying to change the panel on the right hand side so that I can show links to pages on my site. At the moment all I seem to have are the 'Archives' and 'Blogroll'. Ideally I want to add links to pages on my site from this panel so any help would be really appreciated.

    Thanks.

    Peter

  2. snackd
    Member
    Posted 3 years ago #

    i don't know if this helps but page lists are generated by wp_list_pages(). this should manifest as a line similar to the below in your sidebar.php

    <?php wp_list_pages('title_li=' . __('Pages:')); ?>

  3. pbb2504
    Member
    Posted 3 years ago #

    Thanks for your kind reply but I'm a bit of a novice and it doesn't mean anything to me! Is there an idiot proof response or easy way to edit this panel and add the page links onto it? Thanks for taking the time to respond.

  4. vlke
    Member
    Posted 3 years ago #

    I am new here but have discovered a way to do this because I cant see the subpages of main pages on my homepage, using the 'sirup' theme - can anyone help???
    Basically what I did was to add the 'Pages' widgets and exclude the pages that I dont want appearing on the sidebar. Works fine for me for now until I can get the subpages to be visible on the homepage. Hope this helps.

  5. snackd
    Member
    Posted 3 years ago #

    @vlke, that's probably a separate thread, but the answer is here:
    http://codex.wordpress.org/Template_Tags/wp_list_pages#List_Sub-Pages

    @pbb, just try putting that line of code in your sidebar.php somewhere, and see what happens. if you don't like where it shows up, or if it breaks, then move it to somewhere else in the file.

Topic Closed

This topic has been closed to new replies.

About this Topic