Forums

Categories box under static content on homepage (11 posts)

  1. joshthewacko
    Member
    Posted 9 months ago #

    What I am hoping to achieve, is have the static content on the homepage as it is now, but have, lets say, two boxes underneath that displays two different categories; Latest Properties & Featured Properties. I have looked into creating page templates and using 'The Loop' but I can't make anything from it :(

    http://www.rivieraresidentiallettings.co.uk/

    Josh.

  2. esmi
    Theme Diva & Forum Moderator
    Posted 9 months ago #

  3. joshthewacko
    Member
    Posted 9 months ago #

    So how would I use the template? As in assigning it and where does the static content fit in?

    Josh.

  4. esmi
    Theme Diva & Forum Moderator
    Posted 9 months ago #

    So how would I use the template?

    You would apply it to your static Home page via the Page Template dropdown.

    where does the static content fit in?

    That would be the standard content for that page - output by the main Loop.

  5. joshthewacko
    Member
    Posted 9 months ago #

    So, does the static content go in the page template or in the page editor and the two loops automatically go underneath?

    Josh.

  6. esmi
    Theme Diva & Forum Moderator
    Posted 9 months ago #

    does the static content go in the page template or in the page editor

    In the page editor.

    and the two loops automatically go underneath?

    Assuming you have added the code for the 2 secondary Loops below <?php the_content();?> in the page template file, yes.

  7. joshthewacko
    Member
    Posted 9 months ago #

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Like that?

  8. joshthewacko
    Member
    Posted 9 months ago #

    Sorry about that, didn't realise about the code rule.

    http://pastebin.com/cwtSFYAY

    Josh.

  9. esmi
    Theme Diva & Forum Moderator
    Posted 9 months ago #

    No. You've removed the primary Loop.

  10. joshthewacko
    Member
    Posted 9 months ago #

    So what should it be then?

    Josh.

  11. esmi
    Theme Diva & Forum Moderator
    Posted 9 months ago #

    When you create your custom page template, copy the code from page.php (the default page template) and then add your secondary Loops after the <?php endif;?> (the end of the main Loop).

Reply

You must log in to post.

About this Topic