Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages » Post-Kicker, -Byline & -Footer »

[SOLVED] Removing Post Footer on Homepage except 1st post


  #1  
Old Oct 27, 2009, 02:49 PM
Larry
 
37 posts · Sep 2009
[SOLVED] Removing Post Footer on Homepage except 1st post

I got this to work before on:
http://www.topcountrymusicvideos.com/
but I have added the same code to this and it is not working:
http://market-updates.online-stock-trading-guide.com/
any ideas?

Here's the code I added to both based on this thread : http://forum.bytesforall.com/showthread.php?t=3729

<?php
if ( ( is_front_page() AND ($bfa_ata['postcount'] == 1) )
OR ( !is_front_page() ) ) {
bfa_post_footer('<div class="post-footer">','</div>');
} ?>
  #2  
Old Oct 27, 2009, 04:02 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
your front page is not your blog page....

is_front_page()

Description
This Conditional Tag checks if the main page is a posts or a Page. This is a boolean function, meaning it returns either TRUE or FALSE. It returns TRUE when the main blog page is being displayed and the Settings->Reading->Front page displays is set to "Your latest posts", or when is set to "A static page" and the "Front Page" value is the current Page being displayed.

you need to use is_page - see http://codex.wordpress.org/Function_Reference/is_page
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Oct 27, 2009 at 04:07 PM.
  #3  
Old Oct 27, 2009, 07:47 PM
Larry
 
37 posts · Sep 2009
My Front page is my blog page. The link I have in my post above is the front page/blog page.

You probably looked at my nav bars and saw the "Home" page links, which point to the home page for my static site on the main domain, not the blog which is installed on a sub-domain.
  #4  
Old Oct 27, 2009, 07:58 PM
Larry
 
37 posts · Sep 2009
I just noticed that in ATO>Settings>Reading there is no section "Front Page Displays" for this site like in my other site.
  #5  
Old Oct 27, 2009, 08:23 PM
Larry
 
37 posts · Sep 2009
I read through the link at wordpress you pointed me to and I tried using is_home instead of is_front_page and got it to work that way.

Any idea why that is?

And why isn't there the "Front Page Displays" option showing in my admin?
  #6  
Old Oct 27, 2009, 08:30 PM
Larry
 
37 posts · Sep 2009
I found the answer to my one question about why there is no "Front Page Displays" option in my admin section:

Quote:
Front page displays
Use this setting to determine if your posts or a "static" Page displays as your blog's front (main) page. This setting displays only if you have one or more Pages defined.
I don't have any pages set up, that's why.

http://codex.wordpress.org/Reading_Options_SubPanel

Still not sure why is_front_page didn't work in this case though?

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Removing Post Footers on Homepage except top post Larry Post-Kicker, -Byline & -Footer 2 Oct 5, 2009 06:14 AM
[SOLVED] How do I make the space between header and 1st post smaller? pilsen1 Header configuration & styling 6 Sep 28, 2009 08:16 PM
Removing Dashed Line Above 1st Post on Single Post Page krystyna Post-Kicker, -Byline & -Footer 2 Aug 27, 2009 05:14 PM
No Spacing Between 1st Post and Sidebar in IE LabbyRoad Atahualpa 3 Wordpress theme 2 May 26, 2009 01:09 PM
Post / Page Info Items - Button crashes comp, how do I add to post-footer? Image help everygirlssecret Post-Kicker, -Byline & -Footer 1 Jan 5, 2009 01:12 PM


All times are GMT -6. The time now is 01:52 AM.


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