StudioPress Community Forums

StudioPress Community Forums (http://www.studiopress.com/support/index.php)
-   General Discussion (http://www.studiopress.com/support/forumdisplay.php?f=7)
-   -   Only the last post on the homepage (http://www.studiopress.com/support/showthread.php?t=10029)

Balto 06-19-2009 10:25 AM

Only the last post on the homepage
 
Hi everybody,

On the homepage and under the featured content gallery plugin, I would like to have only THE LAST POST. Not the category 1on the left with post 1, 2....., and the category 2 on the right with post 1, 2 .... Do you know what I mean ? How to do that ?

Thank you for your answer ;)
Balto (from France)

John Flynn 06-19-2009 10:37 AM

Re: Only the last post on the homepage
 
Go into your home.php file and delete the homepageleft and right divs.

Then go into your Church Theme Options Page and under homepage bottom # of posts choose "1"

Balto 06-19-2009 12:07 PM

Re: Only the last post on the homepage
 
hi John,
Ok for the first part.
But for the second part : I don't know where to find "Church Theme Options Page" .... :oops:
Could you give me a clue ?
Thanks
Balto

John Flynn 06-19-2009 12:16 PM

Re: Only the last post on the homepage
 
appearances>Church Theme options

Balto 06-19-2009 01:19 PM

Re: Only the last post on the homepage
 
Hum....
My theme is : Revolution Church 2.0
But when I go to appearances>.... I have no Church Theme options but Revolution Lifestyle Options :( with ID Feedburner:... Code AdSense 468x60: ......... And there is no homepage bottom # of posts......
It's strange :!:

Balto 06-22-2009 09:31 AM

Re: Only the last post on the homepage
 
Is there anybody to help a poor french boy ?
Thank you ;)

IdleBuzz 06-22-2009 09:38 AM

Re: Only the last post on the homepage
 
After you have deleted the sections above, in the "div id homepagebottom" section that remains, look for:

Code:

<?php $recent = new WP_Query("cat=63&showposts=4"); while($recent->have_posts()) : $recent->the_post();?>
Replace "cat=63" with your category number and change the "showposts=4" to "showposts=1"

Hope that helps :)


All times are GMT -5. The time now is 04:57 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.