Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages »

[SOLVED] Single Post on front page?

Old Nov 6, 2010, 08:05 AM
6 posts · Oct 2009
Good day all. I've spent a good protion of the morning searching for the answer, and still can't find it.

I thought I was looking for something simple, but I guess not... What I'm trying to do is have only the most recent (single) post show up on the front page but have follow on pages display the normal 10 (or whatever number) excerpts.

This can sort of be done by changing the "Reading Settings" to "1;" however, doing this also limits the search output. That is, if put to "1" and you conduct a search you'll only get one result at a time... no good.

I'm running Atahualpa 3.5.3 on WP 3.0.1 at ryanerickson.com.

Old Nov 7, 2010, 07:19 AM
6 posts · Oct 2009
Or, I guess, a better question would be: is there a way to keep the post count at one and modify the search results page to show more than one?
Old Nov 7, 2010, 07:56 AM
6 posts · Oct 2009
I found the answer! Quite simple really; make a copy of index.php thats inside the theme folder and name it home.php. At the top of this new file/page place the following code:

PHP Code:
<?php if (is_home()) {
$page = (get_query_var('paged')) ? get_query_var('paged') : 1;
This will call only the most recent post to the front page (same happens when you click "older entries" as well) but does not mess with search results or the archive pages. As I can't take credit for this I'd like to point you to this post.


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding image to single front page jorgfoto Center area post/pages 0 Aug 30, 2010 02:08 PM
Permalink in single post and single page anup Center area post/pages 0 Jul 15, 2010 09:46 AM
Single Post on Front Page bplazar Atahualpa 3 Wordpress theme 9 Dec 31, 2009 10:34 AM
Archive page shows post box help, and single post on front page help boberang Atahualpa 3 Wordpress theme 0 Aug 7, 2009 09:26 AM
[SOLVED] Next post and previous post links on top of single post page error susieswe Atahualpa 3 Wordpress theme 2 Jul 15, 2009 02:58 PM

All times are GMT -6. The time now is 06:14 PM.

Powered by vBulletin® Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.