Support » Fixing WordPress » Permalinks and Adsense

  • We set up several pages on a wordpress site and implemented adsense ads in sidebar.php. The ads were displaying without a problem.

    We decided to change the permalinks from the default setting to the postname setting.

    All pages on the site appeared without a problem after this change however the adsense ads disappeared on all pages with the exception of the root URL (its address did not change from while all others changed from to, etc.)

    I noticed that occasionally some ads appear on a page but on re-load they disappear. I also reverted back to the default permalink setting and all the ads re-appeared. On setting it back to the postname setting they disappeared again.

    It has been a day since I made the permalink change and the ads still do not appear.

    Anyone have a suggestion as to what is going on here?

Viewing 14 replies - 1 through 14 (of 14 total)
  • Are you using any plugin to inject ads or placing them manually?

    We placed them manually in sidebar.php.

    We took the code that google adsense generates and just pasted it in.

    The thing I don’t understand is why the default permalink setting works without a problem but the postname setting doesn’t. Same adsense code.

    Theoretically it should work both ways. If you can post a link to your site, I can analyze and tell you why.

    I can’t post a link to the site because it is under development but here is the sidebar.php code. I don’t know if this helps at all. Thanks

    [162 lines of code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

    OK, fine. You may post the link when your site goes live.
    Perhaps you know that the AdSense policies and terms prohibits you to display ads on sites under development/construction. If you do so, it is the surest way to get your account cancelled.

    Please mark this topic as resolved.

    No more questions on this topic please.

    thanks for the info.

    actually I would like to see if anyone else has run into this problem and how it was resolved. I saw a couple of posts about this on other sites but there was no clear resolution.

    BTW when I said the site is under development it is being updated for content not physical changes to the site.

    Do you have an AdSense account? If so, why do you look into other sites when clear instructions are available just where your account is?

    I don’t know what you are talking about. “look into other sites”?????

    I Googled the problem I had with changing from default permalinks to postname permalinks (a wordpress function) and found a few references to this identical problem. A couple of posts about this are on the Google site itself.

    I did not see a resolution so I posted here. This is a forum to try to solve problems right?

    I would like to hear from other people who may have run into this issue.

    A couple of posts about this are on the Google site itself.

    Please post it.

    This is a forum to try to solve problems right?

    Only WordPress problems. Not problems related to Google or others. I answered you only because of fellow-feeling.

    I don’t know what you are talking about

    This shows you do not have your own AdSense account from where you can verify it immediately.

    Here is a link to the google thread I mentioned:!topic/adsense/QexchuiwcRs

    there are other mentions of this issue on other sites.

    Please don’t respond to this any longer. I am sure that there are more experienced people on this site who truly are interested in helping. And this is a WordPress related issue since when I toggle between the default setting and the postname setting as permalinks the ads appear and disappear.

    As far as having an adsense account you are clueless again. How could I have this problem if I didn’t have and adsense account. I set up the ads and installed them in the sidebar.php file as I indicated in my first post here.

    Again I thank you for your help but please move on. I would like to hear from others here who are interested in solving problems not attacking WordPress users.

    This is not a WordPress issue.

    Here is a link to the google thread I mentioned:!topic/adsense/QexchuiwcRs

    This link contains nothing on the topic. Trying to mislead others?


    if this is not a WordPress related issue why do the ads appear and disappear when you toggle between default and postname settings?

    This is specific to your site. No one else appears to be reporting this kind of issue and I’m sure, if the permalink structure was a problem with Adsense, we’d have heard about it by now. Very loudly.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Permalinks and Adsense’ is closed to new replies.