Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

php in single post

Old Feb 10, 2009, 09:40 AM
9 posts · Feb 2009
hi, how to insert a string php like Related Posts, inside the single post between footer and comments?

I do not want it to appear in the page.

Old Feb 10, 2009, 01:16 PM
Flynn's Avatar
3,768 posts · Oct 2008
Munich, Germany
To put it above the comments, and only on single post pages, put it into index.php at around line 217 right before this:

PHP Code:
        <?php // Load Comments template (on single post pages, and "Page" pages, if set on options page)
... and wrapped into a conditional statement, so that you end up with:

PHP Code:
<?php if ( is_single() ) { ?>
        <?php // Load Comments template (on single post pages, and "Page" pages, if set on options page)
Old Jan 29, 2010, 11:05 AM
54 posts · Dec 2009
Hi Flynn,

I need to insert code in this part of the loop:

<?php bfa_post_bodycopy('<div class="post-bodycopy clearfix">','</div>'); ?>

I want to insert this code:

<?php if ( is_single() ) { ?>
<script type="text/javascript">show_banners('page_ad');</script>
<?php } ?>

What I'm trying to do is get my ads to appear in the same spot in all posts. I keep coming up with syntax errors because I don't know much PHP. Is this doable?

Old Dec 4, 2012, 08:54 PM
37 posts · Sep 2010
Thank you Flynn,

I have been searching for this answer for hours!!!


single post php

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Why no single.php DavePorter Plugins & Atahualpa 5 Apr 23, 2010 07:45 PM
[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
Banner over Single Post Title jay2009 Header configuration & styling 0 Mar 21, 2009 05:41 PM
How do i EDIT Single Post? sns Atahualpa 3 Wordpress theme 2 Mar 9, 2009 11:25 AM
Problem with Archives Returning a Single Post andyro Atahualpa 3 Wordpress theme 1 Dec 12, 2008 04:54 PM

All times are GMT -6. The time now is 01:49 PM.

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