WordPress.org

Forums

AIOSEO working properly but WP Search not matching keywords. (10 posts)

  1. zaphodbeeb
    Member
    Posted 2 years ago #

    Hi,

    I'm using the All in one SEO pack, and on some pages keywords that I've added per post / page - when entered into WP's own search do not come back.

    e.g.

    <!-- All in One SEO Pack 1.6.15.3 by Michael Torbert of Semper Fi Web Design[-1,-1] -->
    <meta name="description" content="We are intertwined with nature: we affect it as much as it affects us." />
    <meta name="keywords" content="astronomy, nature, lions, africa, bees, colony collapse disorder, rachel carson, silent spring, climate change" />
    <link rel="canonical" href="http://www.mysiteinprogress.com/abc/grades/" />
    <!-- /all in one seo pack -->

    However, if I then enter (for example) 'astronomy' [without quotes] into the search box and click go I get:

    Nothing Found
    No results found for: astonomy

    The keywords that do work *seem* to be the ones that are in the actual title and / or body content of the page / post and not the ones added using AISEO.

    Anyone help on this / come across it before? Is there something I need to do to have the WP search include / match keywords added by AIOSEO?

    Many thanks for any help!

  2. WP default search is not going to search header meta. You don't need WP search to index header meta anyway; WP internal search and Internet-wide search are completely different animals and are not related. If you need a better WP search, try WordPress › Relevanssi « WordPress Plugins.

  3. zaphodbeeb
    Member
    Posted 2 years ago #

    You don't need WP search to index header meta anyway;

    I do - the customer provided those keywords and expects that the WP search will find them if entered into the site's search box.

    Is there a way to make this work?

  4. the customer provided those keywords and expects that the WP search will find them...

    They don't understand that it doesn't matter that way. If they need those keywords to show up in a WP search, put them in page/post content.

  5. zaphodbeeb
    Member
    Posted 2 years ago #

    I was thinking of putting them in a div with css set to not display - something like:

    <div id="otherwords">keyword1, keyword2, keyword3</div>

    and then having

    #otherwords {
    display:none;
    }

    Concerned about possible Google penalty on doing this. There's only a couple of words needed to be added in each case though.

    Thoughts?

  6. Or color the text the same as the background color. Use a custom field to enter the terms.

  7. zaphodbeeb
    Member
    Posted 2 years ago #

    But WordPress doesn't search custom fields unless I'm mistaken?

    :-)

  8. zaphodbeeb
    Member
    Posted 2 years ago #

    --- Deleted. Dumb idea floated, briefly....

  9. Use a custom field to insert the keywords in the content.

  10. bottleneck
    Member
    Posted 2 years ago #

    @songdogtech

    My post was quietly deleted.

    Your feedback is welcome.

Topic Closed

This topic has been closed to new replies.

About this Topic