• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Passing query in url Associate theme

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Passing query in url Associate theme

This topic is: resolved

Tagged: associate theme, query string, search

  • This topic has 2 replies, 2 voices, and was last updated 11 years, 9 months ago by David Chu.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • April 2, 2014 at 9:52 am #98091
    Dzynit
    Member

    I've narrowed this down to where I'm pretty sure it's theme related. First, I was trying to pass form variables using the gravity form plugin (which normally works fine). But as soon as the ? is added to the end of the url, the page does not redirect correctly - it continues to go to a 404 error page.
    I thought at first there was an issue with gravity forms, but when I tried the normal wordpress search which adds ?s=mysearchterm, the same thing happens.
    I deactivated all plugins and the issue remains. I'm positive there aren't any redirects set up anywhere. And the same issue is on two different hosts, so it's not the hosting server either.

    Has anyone else had this same issue and been able to get it resolved?

    Thanks for any help.

    http://injurylaworegon.com/
    April 4, 2014 at 8:27 am #98448
    Dzynit
    Member

    The problem turned out to be that you can't use "name" as a variable name in the query part of the url. It acted similar to performing a search.

    The wordpress search will work when done from the homepage only, which could be related to the use of .htm on our url's. So this isn't a problem because we're not using a search box on the site. If we add one, I can adjust the search form action accordingly so it works correctly.

    April 4, 2014 at 8:30 am #98449
    David Chu
    Participant

    Hi,
    It's hard to see exactly from the outside, but I see a very big suspect: the permalinks. You're adding ".htm" as a suffix, possibly to preserve SEO from an older site.

    I just did a quick test adding .htm to permalinks, and it worked great, including search. That only works for Posts, however, and you're doing something special to make the pages do .htm permalinks. I would have suspected Yoast, which as cool as it is, does crazy complicated processing, but you had tried disabling all plugins.

    Hard to say, but I have one last idea for what could be a research project... even if you disable all plugins, some discourteous plugins may leave their code in your .htaccess file, including stuff playing with your links.

    Good luck,
    D


    Dave Chu ยท Custom WordPress Developer – likes collaborating with Designers

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Passing query in url Associate theme’ is closed to new replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble