Latest Posts on Home Page
Started by
prismdesign
, Aug 22 2012 02:15 PM
11 replies to this topic
#1
Posted 22 August 2012 - 02:15 PM
Hey guys.
So I was looking at this site : , and would like to imitate the way the latest posts are shown on the homepage.
I would like to create a section for drag and drop so I can put the latest posts on the homepage, say 5 like in the above example.
I have tried to use Simon's example I was given from Danny, but notice it refers to Platform and I wasn't sure where I would put the section and assume it is different. I tried to use array and set 5 last posts and specify a given category I would like to show, but I was presented with 500 Server Error so assume I am doing something majorly wrong, as well as likely placing it in the wrong place. I moved it to / .
My php is nothing short of tragic so I apologise for that.
Thanks for your help guys!
#2
Posted 22 August 2012 - 02:36 PM
You can achieve the look you're going for by going to Site Options > Blog and Posts > Blog Post Layout Mode and selecting Magazine Layout Mode and then proceed from there to perform the customizations. My PHP is tragic, too, but if you find yourself overwhelmed, you can hire a pro:
#3
Posted 23 August 2012 - 12:30 PM
I can get the post 'excerpts' on the homepage that way can I? I have tried to do what you have mentioned but fail to see any settings in that section for adding say 5 post excerpts to the homepage. I have ticked the single post pages to include post excerpts but not really sure what that has changed. thanks
#4
Posted 23 August 2012 - 01:08 PM
Your php is lacking functions, post it to and i will take a quick look.
#5
Posted 23 August 2012 - 01:13 PM
Hi
You can see this
for understand how it work.
#6
Posted 23 August 2012 - 01:16 PM
You see the Simon??s response is better that mine
#7
Posted 23 August 2012 - 03:35 PM
@batman No worries
#8
Posted 23 August 2012 - 03:36 PM
Thanks Simon, here is the paste
#9
Posted 23 August 2012 - 06:28 PM
This works, you have to put it in the page template area NOT content area.
#10
Posted 24 August 2012 - 02:38 PM
Thanks so much for that Simon. So where exactly does it need to go, page line plugins or in my base theme? both locations seem to results in server 500 error :/
#11
Posted 24 August 2012 - 03:16 PM
Where exactly are you putting the code? Are you putting it in the functions.php file?
#12
Posted 24 August 2012 - 03:58 PM
its a section, plugins/pagelines-sections/some-random-folder/section.php












