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.
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.
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.
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.
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.
joshthewacko
Member
Posted 9 months ago #
[Code moderated as per the Forum Rules. Please use the pastebin]
Like that?
joshthewacko
Member
Posted 9 months ago #
Sorry about that, didn't realise about the code rule.
http://pastebin.com/cwtSFYAY
Josh.
No. You've removed the primary Loop.
joshthewacko
Member
Posted 9 months ago #
So what should it be then?
Josh.
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).