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 »

[SOLVED] Last blog entry on static homepage


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 Aug 7, 2009, 10:05 AM
JournalStone
 
11 posts · Jul 2009
I've done a search on this, and currently have it working by using feedburner (http://forum.bytesforall.com/showthr...tatic+homepage

But, I want to add 'Feedflare' to my feedburner feeds, and this carries over to the front page post, and with limited control on the formatting, and makes things look not so pretty.

Is there a way to do this with just a piece of code in the page referring to the loop? I'll be adding more content to the homepage, so I need to be able to control where the latest blog entry is located on the paage.

I'm still a newbie when it comes to Wordpress and php, so any pointers in the right direction would be much appreciated!

http://journalstone.com/

Thanks!
  #2  
Old Aug 9, 2009, 01:50 PM
Flynn's Avatar
Flynn
 
3,745 posts · Oct 2008
Munich, Germany
Please provide more details, what kind of formatting do you want, etc...
  #3  
Old Aug 9, 2009, 07:21 PM
JournalStone
 
11 posts · Jul 2009
Hi Flynn,

Thanks for the reply. I really just want the static page to look like it currently does, with the most recent blog post listed at the top, without feedburner as the source or the post. Nothing fancy...

Thanks!

http://journalstone.com
  #4  
Old Aug 10, 2009, 12:49 PM
Flynn's Avatar
Flynn
 
3,745 posts · Oct 2008
Munich, Germany
You can turn off most of it with a

CSS Insert

body.home p.fbsubscribelink,
body.home div#creditfooter,
body.home div.feedflare {
display: none;
}


The remaining two little, empty boxes have no CSS class. For the plugin that you're using, did you have to put PHP code somewhere into the template, such as <?php some_plugin_function(); ?> ?

If so, you could turn it off for the homepage by changing that to <?php if ( is_front_page() ) { some_plugin_function(); } ?>

In that case you would not need the CSS Insert anymore, and the remaining boxes would be covered too, if they are created yb the plugin
  #5  
Old Aug 10, 2009, 01:55 PM
JournalStone
 
11 posts · Jul 2009
Flynn,

Thanks again... support here has been fantastic.

I've done a poor job of explaining what I want to do. Currently, I am using Feedburner's 'Republish Feed as HTML' script to have the latest post show up on my front page.
Code:
<script src="http://feeds.feedburner.com/Journalstone?format=sigpro" type="text/javascript" ></script><noscript><p>Subscribe to RSS headline updates from: <a href="http://feeds.feedburner.com/Journalstone"></a><br/>Powered by FeedBurner</p> </noscript>
I want to remove this completely.

I'm looking for another method to display the latest post on the front page, something within Wordpress. I do not want to use Feedburner at all.

Thanks again for all your help.

JournalStone
  #6  
Old Aug 11, 2009, 05:47 AM
Flynn's Avatar
Flynn
 
3,745 posts · Oct 2008
Munich, Germany
Try putting this into Style & edit CENTER COLUMN -> Content ABOVE the LOOP
PHP Code:
<?php if ( is_front_page() ) {
query_posts('showposts=1');
?>
And at Style & edit CENTER COLUMN -> Content BELOW the LOOP

change

<?php /* Displayed on MULTI post pages if activated at ATO -> Next/Previous Navigation: */
bfa_next_previous_page_links('Bottom'); ?>


to

<?php /* Displayed on MULTI post pages if activated at ATO -> Next/Previous Navigation: */
if ( !is_front_page() ) { bfa_next_previous_page_links('Bottom'); } ?>


If you've set Next /Prev. Navigation -> Location of Next/Previous Page Navigation on MULTI Post Pages to Top and Bottom or Top, thenchange
bfa_next_previous_page_links('Bottom'); at Style & edit CENTER COLUMN ->Content BELOW the LOOP, in the same way
  #7  
Old Aug 11, 2009, 02:19 PM
JournalStone
 
11 posts · Jul 2009
Ok. This is great. I removed the Feedburner code from the front page. I added php code to the content ABOVE the LOOP section and the content BELOW the LOOP section, and the latest post appears on the front page. Sweet.

I still get the navigation on the bottom of the post on the front page, but I'm assuming that's because I'm using WP-PageNavi. I'll have to track down the fix for that...

One more question. Is it possible to add additional content to the front page using the Wordpress Page editor? Or does the most recent post overwrite the page content?

Thanks again!

JournalStone
  #8  
Old Aug 11, 2009, 04:26 PM
Flynn's Avatar
Flynn
 
3,745 posts · Oct 2008
Munich, Germany
It would overwrite the page content. A fix, albeit not elegant, would be to put that extra content also into ATO -> Style & edit CENTER COLUMN -> Content ABOVE the LOOP


<?php if ( is_front_page() ) { ?>
Some text here<br /><br />
<?php query_posts('showposts=2');
} ?>
  #9  
Old Aug 11, 2009, 05:23 PM
JournalStone
 
11 posts · Jul 2009
Great. Thanks again!

JournalStone

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Both Blog page and Static Front page highlight when Blog page selected lomaprietapottery Page & Category Menu Bars 20 Jul 13, 2012 04:58 PM
Duplicated meta fields when using static page as homepage - v. 3.4.2 pgc Atahualpa 3 Wordpress theme 0 Aug 7, 2009 08:22 AM
Putting lastest blog entry on static homepage Pushbikerider Atahualpa 3 Wordpress theme 5 Mar 25, 2009 03:34 PM
Static Front Page, blog another page? sherimcgregor Atahualpa 3 Wordpress theme 2 Mar 22, 2009 01:16 PM
Atahualpa: Static homepage two times caoba Page & Category Menu Bars 1 Mar 12, 2009 11:52 PM


All times are GMT -6. The time now is 12:25 AM.


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