Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

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

[SOLVED] Single Post on front page?


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Nov 6, 2010, 09:05 AM
ryanerickson
 
6 posts · Oct 2009
[SOLVED] Single Post on front page?

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.

Thoughts?
  #2  
Old Nov 7, 2010, 08:19 AM
ryanerickson
 
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?
  #3  
Old Nov 7, 2010, 08:56 AM
ryanerickson
 
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;
query_posts("showposts=1&paged=$page");
?>
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.

Bookmarks

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 03:08 PM
Permalink in single post and single page anup Center area post/pages 0 Jul 15, 2010 10:46 AM
Single Post on Front Page bplazar Atahualpa 3 Wordpress theme 9 Dec 31, 2009 11:34 AM
Archive page shows post box help, and single post on front page help boberang Atahualpa 3 Wordpress theme 0 Aug 7, 2009 10: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 03:58 PM


All times are GMT -6. The time now is 10:18 AM.


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