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 »

[SOLVED] Question about this code: $bfa_ata['postcount'] == 1


 
Prev Previous Post   Next Post Next
  #1  
Old May 18, 2010, 08:22 PM
adum's Avatar
adum
 
85 posts · Jun 2009
[SOLVED] Question about this code: $bfa_ata['postcount'] == 1

Hey there,

I use the code "$bfa_ata['postcount'] == 1" to make things show up within the first post on a page.

I use it in conjunction with "is_front_page()", for example:

PHP Code:
<?php if ( (is_front_page() AND $bfa_ata['postcount'] == 1) ) { ?>
However...

Items I place within this PHP also show up on the page 2 of the front page, which I don't want. I only want it to show up on the very first post on page 1.

I've looked through WP codex a little bit and couldn't figure out if there is a way to do this...let me know if you have any ideas.

Best,

Adam
 

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding code for ads or other sites (newbie when it comes to code issues!) gardentravelbuzz Plugins & Atahualpa 7 Feb 7, 2011 04:43 AM
A little question where to place this code... cpalmer03 Header configuration & styling 1 Apr 23, 2010 02:25 PM
H1, H2, H3 Text Question dilly Excerpts, Read more, Pagination 5 Mar 23, 2010 03:03 PM
wow!!!! another TF question wheresnifty ThemeFrame Presales 3 Feb 15, 2010 04:05 PM
Excerpt question wwday3 Excerpts, Read more, Pagination 2 Jan 28, 2009 06:14 PM


All times are GMT -6. The time now is 11:30 AM.


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