News: Sensation!!! Adipex p phentermine Viagra xenical Phentermine ups shipped Caffeine Buy Dianabol Biaxin Nasonex Online phentermine Cafergot Phentermine 6 pm order Oxtriphylline Ativan vs xanax Diet pills phentermine Hydroxyzine Buy cod pay phentermine Information about viagra Cefadroxil Phentermine diet medication Zoloft and xanax Fenoldopam Ups cod phentermine Tramadol without perscription Phentermine incrediants Taking phentermine with antidepressants Benztropine Avandamet Fioricet phentermine shipping Lethal doses of klonopin and xanax No overnight prescription xanax Buy Effexor Use of viagra Primidone Soma side effects Phentermine overnight delivery Lisinopril versus viagra Safe internet shopping generic viagraeng Free viagra order online Free prescription sample viagra Paxil and xanax interaction Cod free phentermine shipping Cheapest cialis Oxprenolol Lescol Natural viagra for woman Diphemanil Atenolol Plendil Allegra Related drugs to phentermine Nitrofurantoin Drug information picture identification tramadol er bvf Fioricet order Phentermine hcl Phentermine us pharmacy online consultation Cialis side effects Gemfibrozil Prevacid Generic viagra canada Viagra canada prescription Phentermine and birth defects Cialis drug prescription Bontril Reserpine Tramadol abuse Cheap phentermine no rx 5 90 Discount tramadol Tomorrow Buy cheap vicodin Accolate Viagra story Nylidrin Pravastatin Cheapest secure delivery cialis uk Donepezil Description tramadol Diet ingredient phentermine pill Advair Adipex phentermine pill Extra cheap phentermine Female uk viagra Drug laws ohio diet phentermine Xanax picture 5 mg no prescription Delivery generic overnight viagra Link myblogde online order viagra Capoten Ethinyl Nitrofurantoin Order soma online Viagra in woman Mobic Buy phentermine at amide pharmaceutical Discount phentermine Prazosin Book hydrocodone sport Tramadol and drug tests Nitroglycerin and viagra Cheap phentermine free consult Phentermine online pay with mastercard Micronase Akane soma Phentermine and fast shipping Cod online pharmacy phentermine sell Heart phentermine Xanax overnight delivery Metolazone Free trial viagra Bacampicillin Perscription cialis Menadione Norgestrel Buy Valium Viagra lawsuits Naproxen Phentermine diet pills diet pills Cheap viagra uk Counterfeit viagra Fioricet line Effects long side term xanax Coreg Xanax libido Dihydrotachysterol Levitra vs cialis vs herbal Kaopectate Ambien prescription Ibutilide Phentermine online ordering Cialis drug for impotence Lowest viagra price Asa Herbal phentermine forum India generic viagra Oxymetazoline Buy phentermine prescription Isosorbide Cefotetan Indapamide Cosopt Phentermine and carbs Antazoline Pharmacy phentermine sister Phentermine cheapest price Tramadol sale Perscription phentermine Loratadine Calan Viagra herbal alternative Citalopram Comparison viagra cialis levivia Viagra in canada Snorting xanax Phentermine rankings Trimethaphan Phentermine side effects danger Aciphex Desmopressin On line pharmacy phentermine Viagra online shop Buy soma online Liotrix Piperidolate Bepridil Cheep phentermine with cod payments Erythrityl Viagra substitute Viagra 100 mg Viagra price online Phentermine drug Trileptal Cozaar Carvedilol Viagra prescriptions Bromides Phentermine with no prescription Diazoxide Hyzaar Fluticasone Tramadol Phentermine next day Phentermine diet pill side effects Teniposide Dopamine Taking xanax while pregnant Generic xanax xr Phentermine weight loss Ordering phentermine Stopping xanax 50mg generic viagra Phentermine alternative Diamox Generic viagra cheap Lowest price phentermine with free shipping Viagra high blood pressure Dangers of phentermine heart Buy phentermine online cheap Buy hydrocodone where Thioguanine Non prescription phentermine Generic prescription viagra without Tacrolimus Free sample viagra Cetirizine Cheap phentermine online Online phentermine prescriptions Buy fioricet Xanax gg 258 Noroxin Xanax online without a prescription Chlorpropamide Non prescription phentermine Cephalothin Lowest phentermine Buspirone Methyclothiazide Cheapest phentermine online free shipping Buy generic xanax Is xanax addictive Phentermine without prescription Albendazole Cheap phentermine perscription Paroxetine Pravachol Mirena Viagra for woman study Ceftin Nolvadex Does phentermine speed up metabolism Nicoumalone Discount online viagra Female viagra Viagra cialis Order tramadol Viagra cialis levitra dose comparison Cheap soma Cefixime Deferoxamine Canada online pharmacy viagra Phentermine with no prior prescription Arthrotec Phentermine cod shipping Cialis com Free viagra without prescription Get phentermine Clozapine Phencyclidine Maximum dosage of phentermine Tramadol cash on delivery Saturday delivery phentermine Buy Levitra Hydrocodone lortab Robaxin Phentermine 37 5mg and mastercard Phenindione Grapefruit xanax Allowed cialis tag viagra xhtml Echothiophate Hydrocodone side effects Viagra users Viagra dose Butriptyline Black market costa rica pharmacy phentermine no imprint code Tramadol addiction Side effects of viagra Phentermine in the uk Ampicilin Pill price viagra 150 tramadol Phentermine faqs Generic viagra Diet pal pay phentermine pill Butalbital Information phentermine Dapsone Buy phentermine in canada Minocin Oxcarbazepine Maxzide Hydrocodone cough Death cases from taking phentermine Eulexin Phentermine on line without prescription Buy online viagra securely Adipex meridia phentermine xenical Viagra testimony Viagra class action Warfarin Caverta veega generic viagra Order cheap phentermine Vicodin drug test Natural supplement equivalent to xanax Thiopropazate Blue 30 mg 90 free shipping phentermine pharmacy Phentermine np with hoodia Glucophage Cipro 2 mg xanax Purchase xanax Clarithromycin Clemastine Low dose xanax prosexual Oxazepam Alternative herbal supplement viagra Levivia compared to viagra Nicorette Buy cheap phentermine online Phentermine pharmacies Levallorphan Terconazole Lotrimin Where to buy phentermine Viagra alternative for women Viagra lowest price Vicodin prescription Alternatives to viagra Phentermine pharmacies online Viagra pills Moricizine Phentermine adipex Hydroxychloroquine Diltiazem Azatadine Diet diet dieting phentermine pill Mexico viagra Eon phentermine Tramadol hcl 50 mg tab Womans viagra Buy Zovirax Cheap phentermine no prescription Pindolol Viagra cialis Free try viagra Generic name online qoclick tramadol Cordarone Tramadol 180 Pseudoephedrine Glycerin Viagra and levivia Lithium Buy soma Propofol Phentermine shipped cod Clopidogrel Isoflurophate Phentermine 15 mg Cheapest phentermine price Terbinafine Shipping overnight phentermine Tramadol without a prescription Buy xanax overnight Online doctors perscriptions xanax steroids Xanax next day Vytorin Xanax grapefruit juice Diet hcl phentermine pill Sucralfate Lexapro Purchase tramadol online Fast acting viagra Ambien cr effects side Herbal viagra for women Phentermine hydrochloride ship to missouri Glucotrol Maxzide Phentermine money orders Interstitial cystitis+xanax Singulair Discount priced viagra Soma online pharmacy Femara Protirelin Cheap xanax online Symptom of vicodin addiction Cheapest xanax What is phentermine civ Fenofibrate Cyclophosphamide Fioricet Cheep paris france phentermine Aldactone Phenytoin Impotence pill viagra Ketorolac Buy phentermine online no prescription Phentermine referring report urls Dilaudid Valium and xanax Cialis drug impotence Atrovent Propantheline Pentamidine Piroxicam Chlorthalidone Phentermine free shipping 90 supply Tramadol 377 Alesse Encare Methadone xanax interaction Phentermine purchase Lowest price phentermine Phentermine no credit card cod Metformin Lipitor Alprazolam xanax Tramadol hci Xanax online Ambien withdrawal Generic viagra india Phentermine airborne express Glyburide Cod tramadol Buy cialis without prescription Meridia sibutramine Xanax liver damage Tramadol 50 mg Levivia vs viagra Herbal substitute viagra Flurazepam Order phentermine online uk Phentermine pill discount Cialis commercial Cialis compare levitra Piperacetazine Natural over counter just like viagra stores Idarubicin Clomocycline Climara Natural alternative to viagra Buy Vicodin Plendil Sildenafil Cialis results Alprazolam Generica viagra Low cost phentermine health insurance lead Macrobid Does viagra work for women Fluvoxamine Codeine Zafirlukast Cialis sample Arava Alternative to phentermine Xanax no prescription required Viagra cialis comparison Cialis price comparison No online prescription xanax Aura soma Phentermine no consultation Phentermine studies Orlistat Hydrocodone side effects vicodin Is phentermine safe Bendroflumethiazide Insulin Cialis tadalafil Flagyl Tramadol uses Cheap hydrocodone Isoniazid Nicorette Amoxil Diet phentermine Xanax abuse Methimazole Buying xanax Benicar Online xanax Pepcid Xanax in urine Buy cheap domain onlineatspacecom xanax Lotrimin Famvir Buy Alprazolam Mexican pharmacies online+xanax Phentermine no prescription required next day delivery Minipress Side effects of phentermine Leucovorin Oxyphenonium Diphenoxylate Nimodipine Phentermine 30 mg How long between phentermine and meridia Viagra sale Foradil Dicumarol Viagra impotence pill Percocet Cycrimine Drug viagra Prometrium Free phentermine Hydrocortisone Effexor Buy Bontril Comparisons on online viagra suppliers Isometheptene Elavil Miconazole Cheap quality viagra Nutmeg Levivia dosing compared to viagra Podofilox Reglan Discount vicodin Compare prices on phentermine Buy Phentermine Viagra generic brand Accupril Phendimetrazine Phentermine online prescriptions Cinnarizine Phentermine usa Thiphenamil Abacavir Benadryl Anxiety disorder xanax xr to wean off effexor xr Acarbose Phentermine $89 Xanax mexico Cheap phentermine overnight Cardura Review of herbal phentermine Free viagra canada Keflex Adipex phentermine Women viagra Online tramadol prescriptions Buy viagra without prescription Rofecoxib Viagra drug Plavix Adipex Levivia viagra vs Phentermine hoodia Order vicodin online Tinzaparin Nortriptyline Provera Herbal viagra alternative Phentermine hc Sparfloxacin Adalat Adipex p phentermine vs What does xanax look like Cialis free trial 5 mg diet pills Cheap prescription viagra Lansoprazole Opium Danaparoid Tramadol hcl acetaminotran Cruises soma Capoten Fast delivery phentermine Buy phentermine online with pay pal Online pharmacy tramadol Delivery florida online pharmacy phentermine Naltrexone Olanzapine Mexican pharmacies online+no precription xanax Buy phentermine online cash on delivery Fastin Methylphenidate Meprobamate Propranolol Low natural resources for the drug phentermine Phentermine blue diet pills Levitra vs cialis vs viagra Vicodin side effects Free shipping with phentermine order Nalorphine Montelukast Pantoprazole Avapro Buying vicodin online Buy Adipex Buy xanax no prescription Amiloride Letrozole Is viagra safe for woman Otc viagra Buy cheap meridia Promazine Bactrim phentermine Wholesale pfizer viagra Cheap generic viagra online Description of meridia Xanax anxiety relief pills order here Online pharmacy prescription viagra Darvocet Fiorinal Paris france cheep viagra Canada cialis Invia nasal viagra Best online deal for phentermine Tramadol 50mg Phentermine online stores Saturday delivery cheapest phentermine Lisinopril Cheaper viagra levivia cyalis Bush inauguration speech draft viagra bastard of M357 vicodin Avalide Phentermine works Isocarboxazid Ambien Viagra cream for woman Phentermine and methamphetamine Cheap cialis online Birth defects and phentermine use Alternative herbal viagra Tramadol information Hexocyclium Buy cialis viagra Cheapest price phentermine online pharmacy Tramadol next day Xanax during pregnancy Fiorinal Drug interaction sibutramine and phentermine Ethoheptazine Prozac drug interaction with xanax Viagra overnight shipping Parnaparin Generic soma Tramadol online pharmacy Encainide Pravachol Pfizer viagra Westword fioricet phentermine Griseofulvin Cialis levitra viagra compare Chlorotrianisene Order cialis uk Drug interactions tramadol elavil Free viagra online Clomid Ethanol Research phentermine tolerance Online pharmacy duromine viagra international Cefamandole Cardizem Buy Zoloft Levaquin Didrex Viagra experiences Accolate Avalide Hydrocodone effects Natural alternatives to viagra Ssri phentermine heart Generic viagra from india Ash of soma Phentermine amide Arthrotec Methsuximide Order phentermine phentermine online Cheap phentermine online 37 5 Iprindole No prescripton phentermine Eprosartan Xanax info Labetalol Imitrex Tools needed for injecting xanax 120 tramadol Nefazodone Buy generic online phentermine Zantac 5mg tablets Abbr href rel title title viagra Combivent 2mg xanax Viagra cialis levitra comparison Pentasa Shipping phentermine to florida Xanax look alike Buy tramadol without prescription Maprotiline What does phentermine look like Liquid hydrocodone Lasix Xanax withdrawal symptoms Trimethobenzamide Succinylcholine Phentermine cod delivery Generic viagra overnight Phentermine to buy Quinine Acetaminophen fioricet Norflex Motrin Buy online viagra where Add link phentermine purchase suggest Valsartan Buy phentermine mastercard Norvasc Cheapest phentermine free shipping Viagra online Buy cheap online viagra Lysodren Loprox Natural supplement for viagra Ondansetron Ethisterone Alavert Ketoconazole Cheapest online viagra Caffeine Xanax grapefruit Buy Xanax Camphor Xanax tablets Ganciclovir Ordering 30mg phentermine Uk viagra Ethynodiol Xanax pills Etodolac Picture viagra pill Where to buy phentermine online Methoxsalen Buy online order viagra Antipyrine Calcitriol _cialis et levitra Online pharmacies phentermine xenical meridia Zalcitabine Guanfacine Vicodin online Viagra mail order Cheap diet online phentermine pill Xanax shipped cod Clomiphene Strattera Herbal alternatives to viagra Finasteride Buy viagra canada Thalidomide Phentermine price Plicamycin Pictures of xanax pills Alternative to viagra online 1 loss phentermine pill weight Buspirone Buy prescription tramadol without Cefdinir Does phentermine really work Cheapest phentermine diet pills Klonopin versus xanax Tyropanoate Phentermine in florida Prochlorperazine Dibenzepin Atropine Nortriptyline Ethionamide Disopyramide High cortisol level phentermine Trovafloxacin Meridia side effects Hydrocodone pharmacy Trimeprazine Cheapest phentermine online Phentermine withdrawal symptoms Phentermine yellow 30 mg Medrol Adipex phentermine xenical Viagra cost Tramadol sales Celexa Phentermine 90 day Try viagra for free Cheap price on phentermine Combivent Buy Prozac Cogentin Phentermine and diet pill Buy discount phentermine Flovent Overdose xanax Buy cheap domain onlineoutdoorscom xanax Buy canada cialis Drug screening phentermine Neurontin Order xanax cod Premarin What does xanax do Phentermine online without prescription Phentermine prescribed online Amoxil Cheap phentermine free shipping Altace Cialis viagra levivia Phentermine perscription Sell viagra Long term side effects from xanax Klonopin xanax Fioricet with codeine Purchase cialis online Viagra for sale Cialis for sale uk Phentermine online diet pill Compare levivia and viagra Order phentermine diet pill Phentermine international order Discount phentermine prescription Phentermine tricks Herbal viagra reviews Filing income tax phentermine Generic online phentermine Cortisol Phentermine diet plan Elidel Mephenytoin Alternative herbal review viagra Clomiphene Natural viagra Xanax overnight shipping Methscopolamine Dimethindene Order xanax on line Herbal online viagra Cialis testimonials Tapering off xanax Biaxin Phentermine np Xanax cod Clindamycin Imiquimod Lethal dose xanax Viagra sample Micronase Fluorescein Compare viagra to cialis Biperiden Actos phentermine aciphex imitrex Viagra shelf life Cefazolin Difference between viagra and levivia Dioxyline Buy phentermine diet pill Imdur Ticarcillin Pulmonary hypertension viagra Online viagra sales Oxycontin From generic india viagra Lethal doses klonopin wellbrutrin xanax Tramadol apap Takin prozac and xanax Buy Ambien Generic hydrocodone Insulin Generic viagra lowest prices Female spray viagra Altace Generic overnight viagra Busulfan Soma addiction Cialis levivia viagra vs vs Where can i buy phentermine Esomeprazole Dilantin Phentermine and topiramate for weightloss Cialis free sample Information viagra woman Adipex diet phentermine pill Buy cialis in canada Cialis generic india Viagra online pharmacy Order viagra viagra online Cheapest place buy viagra online Fastin phentermine Ecstasy Drug loss phentermine weight Flupenthixol Prescription weight loss medication phentermine Compare viagra to cialis Buy no online prescription xanax Iodine Soma drug Fluconazole Compare ionamin phentermine Cheap viagra order online Time released xanax Maker of viagra Hydrocodone Cheap online phentermine Leo phentermine order online Cefixime Diet phentermine pill Buy Ativan Phentermine without rx Phentermine Xanax precriptions Cheap phentermine online no prescription Dacarbazine Generic uk viagra Oxycodone vs hydrocodone Generic lowest price viagra Albuterol Order cialis Meridia order Phentermine us Discount ambien Canadian no phentermine prescription Xanax master card Thyroglobulin Phentermine pharmacy online consultation Cheap tramadol no prescription Xanax and pregnancy Buy cheap uk viagra Xanax withdrawl message boards Buy viagra pill online Language phentermine ru Tramadol hcl tab Ceftazidime Buprenorphine Coumadin Cheap diet phentermine pill Online adipex phentermine prescriptions Taking viagra or levitra as a booster for cialis Kaolin Online consultation xanax Long term effects of xanax Bupropion Tricor Phentermine 37_5

如何在主页的文章之间加入 adsense 广告

这两天在修改 blog 版面,顺便把 google 广告也改了改,把原本在首页最后面的广告移到了第二篇文章后面,具体操作我在去年5月就说过了,今天把旧文章提到第一页来,应该有人会需要。

上次我写过 如何在你的 blog 里加入 Adsense 广告 ,这次再详细的讲一讲如何在主页的文章和文章之间加入 adsense 广告
如果你想在 blog 主页的文章和文章之间加入 adsense 广告(具体效果见我的 blog ),你就需要修改 wordpress 模版,不同的 wordpress 主题有着不同的差异,不过按照以下的步骤修改模版,应该都能成功:

1 . 进入你现在使用主题的 index.php 文件中,寻找:

  1. <?php if (have_posts()) : ?>

在它之前加上:

  1. <?php $counter = 1; ?>


2 . 继续寻找:

  1. <?php the_content('…'); ?>

(’…’) 不同的主题会是不同的内容,例如我的是:

  1. <?php the_content_rss('', FALSE, '', 68); ?>

在它之前加入:

  1. <?php $counter = $counter + 1; ?>

3 . 最后,找到:

  1. <?php endwhile; ?>

在它之前加入:

  1. <?php  if(2 == $counter){
  2.          echo ' 填入你要加入的 adsense 广告代码 ';
  3.       } ?>

或:

  1. <?php  if(3 == $counter){
  2.          echo ' 填入你要加入的 adsense 广告代码 ';
  3.       } ?>

你可以改变数字为 2 、3、4 或 你想要的数字(这是你想要你的 adsense 广告出现的位置,2代表在第一篇文章后面,3代表在第二篇文章后面…….)

而且,这个方法也适用于 archive.php 档案。

如果您喜欢我的文章,可以订阅我的 谢谢。
  • 看过本篇的朋友,还看过:

  • 16 Responses to “如何在主页的文章之间加入 adsense 广告”


    1. Gravatar Icon
      1Jianquan's Blog

      我要怎么样设置才能和你的一样 在1 2 3个文章之间都显示广告呢
      谢谢 了

      [回复]

    2. Gravatar Icon

      可以在文章最后一步加入

      1. <?php  if(1 == $counter){
      2.          echo ' 填入你要加入的 adsence 广告代码 ';
      3.       } ?>
      4. <?php  if(2 == $counter){
      5.          echo ' 填入你要加入的 adsence 广告代码 ';
      6.       } ?>
      7. <?php  if(3 == $counter){
      8.          echo ' 填入你要加入的 adsence 广告代码 ';
      9.       } ?>

      在我的 http://zsktest.akaka.com.cn/ 里已经改了,但是是“2.3.4”之间,你看看是不是要那种效果?

      [回复]

    3. Gravatar Icon
      3Jianquan's Blog

      我按照上面的办法修改 第一个没有办法显示

      像贵站一样 在每篇文章的 最上面是怎么样增加的啊 ??

      [回复]

    4. Gravatar Icon

      第一个不是用这个方法的
      只要在 index.php 相应位置加入广告代码就好了

      上面那个方法只是通过变量在页面里的文章之间显示广告,其它广告不通过这种方法实现。

      我这个 blog 是直接将我的广告代码加到 index.php 里

      1. <div id="post-<?php the_ID(); ?>" class="entry">

      之前

      1. <div id="post-<?php the_ID(); ?>" class="entry">

      可能不同的主题有所不同,例如我的 testblog 里是:

      1. <div class="post" id="post-<?php the_ID(); ?>">

      主要是要找那个 ID ,
      test blog 里已经改好了,看看是不是要那个效果?

      [回复]

    5. Gravatar Icon
      5peterzsk

      不同的 theme 都有所不同
      没法回答你具体怎么改
      不过一般的是改 INDEX.PHP
      你可以试试

      [回复]

    6. Gravatar Icon

      你是只想在单独文章页的下面出现广告?

      [回复]

    7. Gravatar Icon
      7peterzsk

      直接在 INDEX.PHP 里修改就能满足两个要求

      1. <?php endif; ?>
      2.  
      3. <?php else : ?>

      之前加入你的广告代码就好了

      [回复]

    8. Gravatar Icon
      8peterzsk

      搞定没?

      [回复]

    9. Gravatar Icon

      你等等
      我改完发给你算了

      [回复]

    10. Gravatar Icon

      不好意思
      没仔细看那个 theme
      它和我现在用的这个 theme 有很大的差别

      是要在 INDEX.PHP 和 single.php 下修改
      我改完发给你了
      你把 google 的 id 号改一下就好了

      [回复]

    11. Gravatar Icon

      我想在第一与第二,第二与第三之间都加上广告。
      按照你说的做了,只能显示第一与第二篇之间的的,第二与第三篇之间的是空白,不知道是怎么回事?请指教!

      [回复]

    12. Gravatar Icon

      谢谢哈。还记得我这档子事,我早已搞定了。

      [回复]

      peterzsk reply on 2008-05-14 5:26 pm:

      这几天改版面,找到这个帖子

      [回复]

    13. Gravatar Icon

      mark,现在还没打广告,以后要的

      [回复]

    1. 1如何在wordpress博客的主页文章之间加入 adsense 广告 | ITryIt

      […] 原文地址:http://zsk.akaka.com.cn/2007/05/adsence-between-posts/ […]

    2. […] 原文地址:http://zsk.akaka.com.cn/2007/05/adsence-between-posts/ Trackback url : u can trackback from your own site « 有感而发我最近转择的新闻(世界小姐)(行为艺术)(华南虎照) […]

    Leave a Reply