WordPress.org

Ready to get started?Download WordPress

Forums

Homepage consisting of posts from one category (6 posts)

  1. chris_cannell@hotmail.co.uk
    Member
    Posted 1 year ago #

    Site: http://www.streetpresence.co.uk
    Theme: Mon Cahier
    Using WordPress 3.5.1

    Hello,

    I would like to have a homepage, which only features posts from one category. (In my case this would be 'street shots' category). I have spent hours reading through various forums, advice sites and video tutorials but have clue how to achieve this.

    - Some people suggest creating a new template called home.php which will override the index.php - (a) there seems no way of creating a new template WITHIN WordPress/Mon Cahier as in there's no button for 'Create New Template'; (b) If its a case of creating a new file in Notepad and dragging it into a wordpress file, I downloaded FileZilla for this but in all honesty, I have no clue how to use FileZilla.

    - I also read things like child themes - no idea what these are or how to create them.

    - If the index.php constitutes the homepage, could I not somehow amend this?

    If you could respond as if talking to a small child that would much appreciated!

    (All content is trial content)

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    there seems no way of creating a new template WITHIN WordPress/Mon Cahier

    This is well outside the remit of any theme. See custom page template.

    I have no clue how to use FileZilla.

    See http://wiki.filezilla-project.org/Documentation

    I also read things like child themes

    See child themes

  3. chris_cannell@hotmail.co.uk
    Member
    Posted 1 year ago #

    Many thanks for your reply, although I have actually already encountered each link you've provided.

    I would therefore appreciate having the process confirmed by which I am to achieve this.

    For example... is the answer to create a child theme, which in turn requires the creation a home.php which requires amending the index.php code (within a program such as notepad) to then save that file within the wordpress templates, which is achieved via FTP (Filezilla)...

    Is this the process you're recommending?

  4. esmi
    Forum Moderator
    Posted 1 year ago #

    No - you would be creating a modified index.php template file (using Notepad) & uploading that file to your child using FTP.

  5. chris_cannell@hotmail.co.uk
    Member
    Posted 1 year ago #

    Thanks for confirming, but if the aim is to modify the index.php template, why not just amend the template that is available through wordpress' editor?

    Why go through the hassle of amending it in notepad and uploading it via FTP to a child?

  6. Edward R. Jenkins
    Member
    Posted 1 year ago #

    Because that isn't just the file for your home page. In most themes, that's the most important file. It contains the loop which is essentially the backbone of WordPress.

    Read about the template hierarchy

    And if you modify the existing index.php file, your changes will be overwritten with each theme update.

Topic Closed

This topic has been closed to new replies.

About this Topic