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 »

[SOLVED] Content Added to Loop has vanished


  #1  
Old Jun 15, 2010, 04:28 AM
NoisyDvL5's Avatar
NoisyDvL5
 
27 posts · Jun 2010
Missouri
Plugin [SOLVED] Content Added to Loop has vanished

Hello,

Love the theme, but I've been tinkering and have perhaps altered something and caused an adsense that is placed in the loop to disappear.

I deleted the code and reinstalled it as

<?php if ( is_front_page() AND $bfa_ata['postcount'] == 3 ) { ?>
ADSENSE CODE HERE
<?php } ?>

But I haven't been able to get it to come back, so I'm guessing I've crossed streams somewhere.

Based on the dropoff in impressions, the image ad vanished yesterday. The only changes I made to the site in that time frame was some work on a custom template for related posts, editing the size of the page numbers that appear with the nextpage tag, and removing some of the padding on the page/post items to tighten up the front page.

All the changes were fairly simple (except for my inability to center the images on the related posts template), so I don't think they could've caused the ad to vanish, but I don't know what else would.

Thanks in advance for any help. This is my site if that can help solve this mystery...

http://www.itsalltrue.net
  #2  
Old Jun 15, 2010, 04:32 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
What version of Atahualpa and WP?
where did you put that code?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Jun 15, 2010, 04:44 AM
NoisyDvL5's Avatar
NoisyDvL5
 
27 posts · Jun 2010
Missouri
I knew I'd leave something out.

Wordpress is 2.9.2 and Atahualpa is 3.4.9.

The code is placed in the Loop box on the Style/Edit Center Column as the given examples on that page suggest.
  #4  
Old Jun 15, 2010, 08:10 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
please copy and past the entire contents of 'The LOOP' so I can see what you have. If there is something that is private, send it to me in a PM
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Jun 15, 2010, 11:46 AM
NoisyDvL5's Avatar
NoisyDvL5
 
27 posts · Jun 2010
Missouri
Thank you for your help/patience.

I'm not sure if I'm allowed to repost the Adsense code, but it's precisely copied from Google with no alterations. Here's the rest of the contents of the loop box:

Quote:
<?php /* For SINGLE post pages if activated at ATO -> Next/Previous Navigation: */ bfa_next_previous_post_links('Top'); ?> <?php /* Post Container starts here */ if ( function_exists('post_class') ) { ?> <div <?php if ( is_page() ) { post_class('post'); } else { post_class("$odd_or_even"); } ?> id="post-<?php the_ID(); ?>"> <?php } else { ?> <div class="<?php echo ( is_page() ? 'page ' : '' ) . $odd_or_even . ' post" id="post-'; the_ID(); ?>"> <?php } ?> <?php bfa_post_kicker('<div class="post-kicker">','</div>'); ?> <?php bfa_post_headline('<div class="post-headline">','</div>'); ?> <?php bfa_post_byline('<div class="post-byline">','</div>'); ?> <?php bfa_post_bodycopy('<div class="post-bodycopy clearfix">','</div>'); ?> <?php bfa_post_pagination('<p class="post-pagination"><strong>'.__('Pages:','atahualpa').'</strong>','</p>'); ?> <?php bfa_post_footer('<div class="post-footer">','</div>'); ?> </div><!-- / Post -->

<?php if ( is_front_page() AND $bfa_ata['postcount'] == 3 ) { ?>
<script type="text/javascript">ADSENSE
</script>
<?php } ?>
I've tried a simple test using the basic 'postcount' php to add a small snippet of text and I couldn't get it to appear on the front page either.

Could I have done something to violate the conditions, so that "third post" trigger never gets tripped?

The only formatting (mucking) I've done was to

-add some text formatting to page numbers in the "bfa_post_parts.php". I did remove some code from the pagination section so that the page numbers wouldn't appear on the main page, but I did that weeks ago.

-adapted a custom template for related posts and added some css inserts to govern it.

-changed the padding on the various post/page items
  #6  
Old Jun 15, 2010, 12:07 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
it's got to be something else you did, or the adsence script.

I just stuck your code into The LOOP at my site, took out the <script...> and </script> and I see the word ADSENCE on the third post.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
half of blog vanished after upgrade install Monkey_Fist New Versions, & Updating 6 Jan 15, 2014 05:53 PM
Site has vanished after upgrade tcleveland New Versions, & Updating 4 May 7, 2010 08:24 AM
All my Google Analytics stats vanished Flynn Atahualpa 3 Wordpress theme 5 Nov 18, 2009 04:23 PM
Trying to modify the loop sspeedy Post-Kicker, -Byline & -Footer 5 Aug 27, 2009 06:38 PM
Only Pages in the loop sumochill Excerpts, Read more, Pagination 1 Aug 13, 2009 09:52 AM


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


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