Forums

[resolved] My WP Search, How to Fix? (3 posts)

  1. revlimiter
    Member
    Posted 1 year ago #

    When a user tries to search on my website they get a very long and confusing URL structure, http://www.kimstewart.ca/?s=test&submit.x=30&submit.y=12&submit=Search

    How can I fix this and make it so that it:
    A) Only searches in my Blog (posts only, no pages)
    B) Adds "blog" directly after my domain in the URL (this will add the tab highlight)
    C) Removes that "&submit.x=30&submit.y=12&submit=Search" and replaces it with something a little more SEO friendly.

    Well these are actually different matters, Questions B and C are for the URL and Question A is for WordPress 2.6 configuration. Anyways, any help is greatly appreciated!

    Thanks!
    Cheers,

  2. Dagon Design
    Member
    Posted 1 year ago #

    A) A mod to do that: http://wordpress.org/support/topic/176278

    B) You can do that in your permalink settings

    C) That should not be happening unless you are either running a plugin that is doing something with search results, or your theme file has custom search code for some reason.

  3. revlimiter
    Member
    Posted 1 year ago #

    Hey Dagon,
    Thanks for the reply :-)

    A) I checked out http://wordpress.org/support/topic/176278 and jsdalton gave some useful code which I have included, but pagination seems to be an issue as he states... hopefully a solution for that is in the works.

    B) I have actually already set my permalinks to Custom Structure "/blog/%postname%/" - My website is completely WordPress driven so this differentiates the main site pages from the blog. Unfortunately this doesn't seem to fix the URL structure.

    C) I must have some weird code running on my site. I have removed the default WP Header, and replaced it with my own code. Could this be why? I will do some more investigating...

    Cheers,

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.