• Resolved CallUp

    (@callup)


    I’ve installed the google custom search engine into my site on my local development environment. Once I get it working perfectly, I’ll upload files to the live site.

    I placed the Google Custom Search form field (text field) in header template, so that it can be used on any page on the site. It calls the get_search_form() — where Google script is found — so you’d think it would be retrieving identical search results regardless of the page.

    Using Google Custom Search form from the home page, it works perfectly. It finds words across all categories (subjects) … perfect! Also, since I’m set up with AdSense (which pre-configures your searches to specific site) it’s actually querying my live site correctly (not my localhost one). Which is fine, since that’s where it needs to work.

    Using the Google search form on any other page (i.e. Category page, or single page) it throws a 404 Error — ‘Cannot find what you’re looking for’ — every single time. Even when I’m searching for the identical words that work when searching from the home page, or words that are definitely tags in those specific categories.

    Does anyone have any advice on what might be the problem?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter CallUp

    (@callup)

    I’ve gone ahead and uploaded my theme files up to my live site, so if anyone wants to see how my Google Custom Search field works on home page, but doesn’t on all other pages it’s there to try: alterpolitics dot com

    It’s really quiet around here lately. I hope someone can help me.

    Thread Starter CallUp

    (@callup)

    I had to just reinstall the old crappy wordpress search engine back. There’s such messed up behavior with the non-home pages that I just can’t have the site sitting around like that.

    This damned Google Custom Search engine is the buggiest and crappiest little feature I’ve experienced yet. No one at their own site support will field a single question about it.

    Thread Starter CallUp

    (@callup)

    After much work, I finally resolved the problem. I posted the solution here for all others who run into this problem.

    No one on this site or at Google could seem to help resolve it, so I hope this helps.

    Best.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Google Custom Search in WordPress’ is closed to new replies.