Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 10th Jan 2009, 10:35 PM   #1
"the IM newbie"
War Room Member
 
erickz's Avatar
 
Join Date: 2007
Location: singapore
Posts: 284
Thanks: 32
Thanked 36 Times in 26 Posts
Default
help me on this wordpress coding please..
Share on: 
fb share twitter share gplus share more share

hi everyone,
i need to put a personalized text somewhere after the post content but before the comments area. can anyone help me on this as to where should i put this piece of text?
this is some text that i want to put to promote a clickbank product.
my site is here :aboutwow.net
i have try on different areas of the code but can't figured out where is the correct place to put this text. pls help me... thank you..

Single Post (single.php)

<?php get_header(); ?>
<div id="wrapper">
<div id="content">


<?php if (have_posts()) : while (have_posts()) : the_post(); ?>



<div class="post" id="post-<?php the_ID(); ?>">
<div id="title_container">
<div id="date">
<div class="d"><?php the_time('D') ?></div>
<div class="j"><?php the_time('j') ?></div>
<div class="m"><?php the_time('M') ?></div>
</div>
<div><h2 class="title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2><br />
</div>

</div>

<div class="entrytext">
<?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>


<?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?>
<br />
<br />
<div id="post_single">
<div id="post_single_title">Author:</div>
<div id="post_single_description"><?php the_author_posts_link() ?></div>
</div>
<div id="post_single">
<div id="post_single_title">Time:</div>
<div id="post_single_description"><?php the_time('l, F jS, Y') ?> at <?php the_time() ?></div>
</div>
<div id="post_single">
<div id="post_single_title">Category:</div>
<div id="post_single_description"><?php the_category(', ') ?></div>
</div>
<div id="post_single">
<div id="post_single_title">Comments:</div>
<div id="post_single_description">You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(true); ?>" rel="trackback">trackback</a> from your own site.</div>
</div>
<div id="post_single">
<div id="post_single_title">RSS:</div>
<div id="post_single_description">You can follow any responses to this entry through the <?php comments_rss_link('RSS 2.0'); ?> feed.</div>
</div>
<div id="post_single">
<div id="post_single_title">Navigation:</div>
<div id="post_single_description">
<div class="navigation">
<div class="alignleft"><?php previous_post_link('&laquo; %link') ?></div>
<div class="alignright"><?php next_post_link('%link &raquo;') ?></div>
</div>
</div>
</div>

</div>


</div>

<div id="post_single">
<?php comments_template(); ?>
</div>

<?php endwhile; else: ?>

<p>Sorry, no posts matched your criteria.</p>

<?php endif; ?>

</div>

<?php get_sidebar(); ?>
</div>

<?php get_footer(); ?>
erickz is offline  
Unread 12th Jan 2009, 03:44 AM   #2
Senior Warrior Member
War Room Member
 
Mohsin Rasool's Avatar
 
Join Date: 2006
Location: Spain
Posts: 1,048
Thanks: 588
Thanked 361 Times in 192 Posts
Default
Re: help me on this wordpress coding please..
Share on: 
fb share twitter share gplus share more share

Hi,

Without looking at your theme/blog live i cannot tell you exactly where your text would look OK. But looking at the code above...it needs to be before this line:
<?php comments_template(); ?>

As this is what introduce comments in the page, so you need to post your custom text before this line....

Let me know if this work for you,
Mohsin

Mohsin Rasool is offline  
The Following User Says Thank You to Mohsin Rasool For This Useful Post:
Unread 12th Jan 2009, 11:38 AM   #3
VIP Warrior
War Room Member
 
Karen Blundell's Avatar
 
Join Date: 2008
Posts: 1,768
Thanks: 4,644
Thanked 1,335 Times in 894 Posts
Default
Re: help me on this wordpress coding please..
Share on: 
fb share twitter share gplus share more share

holy cow that theme has a ton of unnecessary divs!

put your text before this:

<div id="post_single_title">Comments:</div>

---------------
Karen Blundell is offline  
The Following User Says Thank You to Karen Blundell For This Useful Post:
Unread 12th Jan 2009, 07:59 PM   #4
"the IM newbie"
War Room Member
 
erickz's Avatar
 
Join Date: 2007
Location: singapore
Posts: 284
Thanks: 32
Thanked 36 Times in 26 Posts
Default
Re: help me on this wordpress coding please..
Share on: 
fb share twitter share gplus share more share

lol.. thanks Mohsin and Karen.. i dunno why there is so many div there.. its a free theme i grab and seems the theme have cause me many problems.. i will try to fix it based on your inputs and see how it goes.. btw i did mentioned my site on my post..
its a autoblog i put up About WoW | World Of Warcraft - Find out what everyone is talking about on your favorite MMORPG!

thanks again...
erickz is offline  
Closed Thread


Bookmarks

Tags
coding, wordpress


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 04:28 PM.