WordPress¤á¤â¤ØÌá¤ë

WordPress¤ËAdSense¤ò·ÇºÜ¤¹¤ë¤Ë¤Ï AdSense Manager ¤È¤¤¤¦¥×¥é¥°¥¤¥ó¤òƳÆþ¤¹¤ë¤ÈÎɤµ¤½¤¦¤Ç¤¹¡£

¤ä¤Ã¤Æ¤ß¤¿¤±¤É¡¢¤Ê¤¼¤«É½¼¨¤µ¤ì¤º¡¦¡¦¡¦¡£·ë¶ÉAdSense¤«¤é¼èÆÀ¤·¤¿¥½¡¼¥¹¤òľÀÜŽ¤êÉÕ¤±¤Þ¤·¤¿¡£

¥¹¥Þ¡¼¥È¥Õ¥©¥ó¥Ú¡¼¥¸¤ËAdSense¤ò·ÇºÜ¤¹¤ë¾ì¹ç¤Ï¤³¤Á¤é ¥¹¥Þ¡¼¥È¥Õ¥©¥ó¤«¤é¤Î±ÜÍ÷¤ËÂбþ¤¹¤ë

¥Æ¡¼¥Þ¤ò¤¦¤Ã¤«¤ê¹¹¿·¤·¤Æ¤·¤Þ¤Ã¤¿¤ê¤·¤¿»þ¤Î¤¿¤á¤Î¸Ä¿ÍŪ¤Ë¹­¹ð¤ò·ÇºÜ¤·¤Æ¤¤¤ë¾ì½ê¤Î¥á¥â¤Ç¤¹¡£¤Ê¤Î¤Ç°Ê²¼¤Ï¸«¤Ê¤¤¤Ç²¼¤µ¤¤¡£

Twenty Ten

¥Ø¥Ã¥À¹­¹ð ¥Ö¥í¥°TOP

wp-content/themes/twentyten/ °Ê²¼¶¦Ä̤ǵ­½Ò

  • index.php ¥Ö¥í¥°TOP
  • archive.php ¥¢¡¼¥«¥¤¥Öµ­»ö
  • category.php ¥«¥Æ¥´¥ê¡¼µ­»ö
  • search.php ¸¡º÷·ë²Ì
<div id="content" role="main">

<!-- 468x60 -->

¥Ø¥Ã¥À¡¢¥Õ¥Ã¥¿¹­¹ð ñ°ìµ­»ö¥Ú¡¼¥¸

wp-content/themes/twentyten/loop-single.php

<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

<!-- 468x60 -->

<!-- ά -->

</div><!-- #nav-below -->

<br />
<table border="0" style="border-style: none;">
<tr>
<td width="320" align="center">
<!-- 300x250-->
</td>
<td width="320" align="center">
<!-- 300x250 -->
</td>
</tr>
</table>

¥Õ¥Ã¥¿¹­¹ð Ê£¿ôµ­»ö¥Ú¡¼¥¸

1¥Ú¡¼¥¸¤ËÊ£¿ôµ­»ö¤òɽ¼¨¤¹¤ë¾ì¹ç¤Ï¡¢°ìÈÖ¾å¤Ë¤¢¤ëµ­»ö¤Î¤¹¤°²¼¤Ë300x250¤Î¹­¹ð¤¬2¤Äɽ¼¨¤µ¤ì¤ë¤è¤¦¤Ë mv_count ¤Çµ­»ö¿ô¤òȽÄꤹ¤ë¡£
AdSense¤Î¥Ð¥Ê¡¼¹­¹ð¿ô¤Ï1¥Ú¡¼¥¸3¤Ä¤Þ¤Ç¤Ê¤Î¤Ç¡¢¥Ø¥Ã¥À1¤Ä¡¢¥Õ¥Ã¥¿2¤Ä¤Î¹ç·×3¤Ä¤ËÂбþ¤¹¤ë¤¿¤á¤Î½èÃÖ¡£

wp-content/themes/twentyten/loop.php

<?php while ( have_posts() ) : the_post(); ?>
<?php $_REQUEST['mv_count']++; ?>

<!-- ά -->

</div><!-- #post-## -->

<?php if ($_REQUEST['mv_count'] == 1) { ?>
<table border="0">
<tr>
<td width="320" align="center">
<!-- 300x250 -->
</td>
<td width="320" align="center">
<!-- 300x250 -->
</td>
</tr>
</table>
<br /><br />
<?php } ?>

<?php comments_template( '', true ); ?>

Twenty Twelve

¥Ø¥Ã¥À¹­¹ð

wp-content/themes/twentytwelve/ °Ê²¼¶¦Ä̤ǵ­½Ò

  • index.php ¥Ö¥í¥°TOP
  • single.php µ­»ö¾ÜºÙ
  • archive.php ¥¢¡¼¥«¥¤¥Öµ­»ö
  • category.php ¥«¥Æ¥´¥ê¡¼µ­»ö
  • search.php ¸¡º÷·ë²Ì
<div id="content" role="main">

<div style="margin-bottom: 10px;">
<!-- 468x60 -->
</div>

¥Õ¥Ã¥¿¹­¹ð

1¥Ú¡¼¥¸¤ËÊ£¿ôµ­»ö¤òɽ¼¨¤¹¤ë¾ì¹ç¤Ï¡¢°ìÈÖ¾å¤Ë¤¢¤ëµ­»ö¤Î¤¹¤°²¼¤Ë300x250¤Î¹­¹ð¤¬2¤Äɽ¼¨¤µ¤ì¤ë¤è¤¦¤Ë mv_count ¤Çµ­»ö¿ô¤òȽÄꤹ¤ë¡£
AdSense¤Î¥Ð¥Ê¡¼¹­¹ð¿ô¤Ï1¥Ú¡¼¥¸3¤Ä¤Þ¤Ç¤Ê¤Î¤Ç¡¢¥Ø¥Ã¥À1¤Ä¡¢¥Õ¥Ã¥¿2¤Ä¤Î¹ç·×3¤Ä¤ËÂбþ¤¹¤ë¤¿¤á¤Î½èÃÖ¡£

wp-content/themes/twentytwelve/content.php

<?php
$_REQUEST['mv_count']++;
?>

<!-- ά -->

</div><!-- .entry-content -->

<?php if ($_REQUEST['mv_count'] == 1) { ?>
<table border="0">
<tr>
<td width="320" align="center">
<!-- 300x250 -->
</td>
<td width="320" align="center">
<!-- 300x250 -->
</td>
</tr>
</table>
<?php } ?>

<?php endif; ?>

¸ÇÄê¥Ú¡¼¥¸

wp-content/themes/twentytwelve/page.php

<div id="content" role="main">

<div style="margin-bottom: 10px;">
<!-- 468x60 -->
</div>

<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', 'page' ); ?>

<table border="0">
<tr>
<td width="320" align="center">
<!-- 300x250 -->
</td>
<td width="320" align="center">
<!-- 300x250 -->
</td>
</tr>
</table>

¥È¥Ã¥×   ÊÔ½¸ Åà·ë º¹Ê¬ ¥Ð¥Ã¥¯¥¢¥Ã¥× źÉÕ Ê£À½ ̾Á°Êѹ¹ ¥ê¥í¡¼¥É   ¿·µ¬ °ìÍ÷ ¸¡º÷ ºÇ½ª¹¹¿·   ¥Ø¥ë¥×   ºÇ½ª¹¹¿·¤ÎRSS
Last-modified: 2021-09-19 (Æü) 19:09:15