Magazine theme | Ads in posts

Discussion in 'Blogging' started by AsadMoeen, Jan 29, 2011.

  1. #1
    Hello.

    I somehow cannot place ads in posts on this theme. Maybe it's encrypted or something. If someone has placed ads in-between posts on this theme, please help.
     
    AsadMoeen, Jan 29, 2011 IP
  2. Dodger

    Dodger Peon

    Messages:
    1,494
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    0
    #2
    What theme? And are you using your own hosting, or is this a free blog?
     
    Dodger, Jan 29, 2011 IP
  3. AsadMoeen

    AsadMoeen Active Member

    Messages:
    540
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    71
    #3
    It's my own hosting.

    Mp3z.pk is the website.

    Theme is magazine by studio press.
     
    AsadMoeen, Jan 29, 2011 IP
  4. sitacomments

    sitacomments Peon

    Messages:
    76
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    What ads are you talking about? Is it adsense ad?
     
    sitacomments, Jan 29, 2011 IP
  5. AsadMoeen

    AsadMoeen Active Member

    Messages:
    540
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    71
    #5
    Yes adsense ad units they are.

    If you see my other website mixupdate.com, I have placed ads in-between the posts but on mp3z.pk where Magazine theme is running, I somehow cannot achieve it. The ad placement where I want is just above the post and below the title.

    In the demo, you can see an ad placed just after the post but I cannot do it since I can't find that file, maybe it's encrypted.

    http://www.studiopress.com/demo/magazine.html

    This is how I placed them:

    I tried to switch it up & down to different places but they don't appear otherwise.

    This is the page.php file

    <?php get_header(); ?>
    
    
    
    <div id="content">
    
    	<div id="contentleft">
        
            <div class="postarea">
        
    			<?php include(TEMPLATEPATH . '/includes/breadcrumb.php');?>
    			
                <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
                
                <h1><?php the_title(); ?></h1>
    <!--BEGIN AdSense code below-->
    <div align='center'>
    <script type="text/javascript"><!--
    google_ad_client = "pub-6345543381851136";
    /* 336x280, created 1/5/11 */
    google_ad_slot = "2170759940";
    google_ad_width = 336;
    google_ad_height = 280;
    //-->
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    </div>
    <!--END AdSense code -->
                <?php the_content(__('Read more', 'studiopress'));?>
    <!--BEGIN AdSense code below-->
    <div align='center'>
    <script type="text/javascript"><!--
    google_ad_client = "ca-pub-6345543381851136";
    /* Xpertify2 */
    google_ad_slot = "3985934198";
    google_ad_width = 336;
    google_ad_height = 280;
    //-->
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    </div>
    <!--END AdSense code -->
    			<div class="clear"></div>
    			<?php edit_post_link('('.__('Edit', 'studiopress').')', '', ''); ?>
                
                <?php endwhile; else: ?>
                
                <?php require(TEMPLATEPATH . '/includes/post-nav-block.php'); ?>
    			
    			<?php endif; ?>
                
            </div>
    		
    	</div>
    			
    <?php include(TEMPLATEPATH."/sidebar.php");?>
    
    </div>
    
    <?php get_footer(); ?>
    Code (markup):
     
    Last edited: Jan 29, 2011
    AsadMoeen, Jan 29, 2011 IP
  6. Dodger

    Dodger Peon

    Messages:
    1,494
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    0
    #6
    You just edited page.php which is for your ... ahem ... pages, not your posts. Posts are displayed with the template file named single.php
     
    Dodger, Jan 30, 2011 IP