WordPress.org

Ready to get started?Download WordPress

Forums

Adding a category to a static page (7 posts)

  1. sophieh
    Member
    Posted 2 years ago #

    Hi,

    I want to add an existing category to show at the bottom of my home page showing all the latest posts to that category.

    I have gone through plugins, searched the forum and stared blankly at Codex but admit most of the answers go over my head!

    This article http://www.seobywebmechanix.com/how-to-add-posts-to-pages-in-wordpress-tutorial/ was the closest I got but my index.php looks completely different to his as I didn't seem to have a themes folder to find my pages.php to create a new page. Therefore I have no idea where my loop is!

    Can anyone help me?

    Thanks.

  2. govpatel
    Member
    Posted 2 years ago #

    If you can post your index.php file in http://wordpress.pastebin.com
    and paste url here so that we can see the code you have in index.php file

  3. sophieh
    Member
    Posted 2 years ago #

    Thanks for replying!

    Sorry I don't have a clue how to use Pastebin! I have signed up for an account and had a look but I am not sure about security etc. When I looked up what they were on Wiki there seem to be problems? Perhaps I am being fussy?

    I am using TwentyTen theme and have not changed anything on the index so it would be the standard index for that anyway.

    Any help would be appreciated!

    Thanks.

  4. colorvila
    Member
    Posted 2 years ago #

    try to edit your index.php

  5. sophieh
    Member
    Posted 2 years ago #

    I would love to but I wouldn't know where to start. I have no idea about HTML and can only copy and paste it!

  6. govpatel
    Member
    Posted 2 years ago #

    As you are using twenty ten theme you will need create a child theme and then create a template in child theme as twenty ten theme will over written next time you update.

    Twenty ten 1.3 theme coded differently and you will need look into a loop file as well so page.php file has this line
    get_template_part( 'loop', 'page' );

    The page is coming from loop-page.php

  7. sophieh
    Member
    Posted 2 years ago #

    I think I give up on this one! Instead I have created a sticky post and am now trying to remove the date from that post only. It will work fine I am sure.

    Thanks for all your help- sorry I was so ignorant!

Topic Closed

This topic has been closed to new replies.

About this Topic