Forums

Specify a WP search result with a direct URL (2 posts)

  1. WaltRibeiro
    Member
    Posted 1 year ago #

    Can I link to a WP search result for a "blog title" with specific words in it, instead of a "full article" with those words in it?

    I currently have it so I can link to searches specifically within my 'songs' category:

    http://fororchestra.com/category/songs/?s=Bon+Jovi

    But I'd like to link to a title that had the words *within* that 'songs' category. I know its written wrong, but I assume something like this:

    http://fororchestra.com/category/songs/title?s=Bon+Jovi

    Therefore, my searches would *only* include Bon Jovi songs, and not The Roots songs (which happens to mention Bon Jovi within their article)

    Any help is greatly appreciated!

    -Walt

  2. WaltRibeiro
    Member
    Posted 1 year ago #

    OK so maybe this is more clear / better wording:

    If I do a WordPress search on my blog for "Bon Jovi" I get this as the search result URL:

    http://fororchestra.com/?s=Bon+Jovi

    But that shows the results of ALL blog posts that include the words "Bon Jovi" in it.

    So, how can I search just the wordpress blog post titles with "Bon Jovi" in them? I tried everything, would it be something like this? :

    http://fororchestra.com/post-title?s=Bon+Jovi

    BTW I don't need the php code, I only need the correct URL code.

Topic Closed

This topic has been closed to new replies.

About this Topic