• [email protected]

    (@chris_cannellhotmailcouk)


    Site: https://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)

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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 https://wiki.filezilla-project.org/Documentation

    I also read things like child themes

    See child themes

    Thread Starter [email protected]

    (@chris_cannellhotmailcouk)

    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?

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

    Thread Starter [email protected]

    (@chris_cannellhotmailcouk)

    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?

    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Homepage consisting of posts from one category’ is closed to new replies.