Support » Fixing WordPress » Adding a category to a static page

  • 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.

Viewing 6 replies - 1 through 6 (of 6 total)
  • 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

    Thread Starter sophieh

    (@sophieh)

    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.

    try to edit your index.php

    Thread Starter sophieh

    (@sophieh)

    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!

    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

    Thread Starter sophieh

    (@sophieh)

    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!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Adding a category to a static page’ is closed to new replies.