• i want to be able to make a page which then has a list of all pages of relevance… either a post which is catogorised or page.

    ie i want to create a page called tutorials which will have a list of relevant turorials posts or pages i have made.

    Which is the best way to go about this??

Viewing 3 replies - 1 through 3 (of 3 total)
  • For posts ensure that all the posts that you want are assigned to a Category (Tutorials, for example). You can then list all the posts in a certain category using either query_posts() to display these posts inside the loop, or get_posts() to display them out of the loop.

    For pages, use wp_list_pages(), looking particularly at the include and exclude arguments, as pages have no category or similar structure attached to them for allowing you to only list the ones you want.

    Thread Starter kitcorsa

    (@kitcorsa)

    can you add code directly into a posts text box?? not quite figgered out wordpress full yet.

    as i guess when you create a page it just adds ifo to the database then creates the page from a template filled with the database information?

    Can’t add code through wordpress, you would need to edit the source. What I’d do is take a copy of index.php and rename it to page_{your_page_name_here}.php, then you can hack and edit it without worying about breaking the index.

    Ensure that you start the file with –

    <?php
    /**
     * @package WordPress
     * @subpackage {Theme Name}
     */
     /*
    	Template Name: {Enter a template name here}
    */

    Then, through WordPress, edit the page that you want to display these specific posts, and on the right under ‘Page Attribures’ you should see a drop down box where you can select the template you just created. Now visitors will see this template when visiting this page, rather than the standard one.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Pages which contain a lists of all relevante pages’ is closed to new replies.