WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Relevanssi: search tag description (4 posts)

  1. g01010
    Member
    Posted 4 years ago #

    Does anyone know if

    a) it's possible to configure Relevanssi to include a tag's description in its search, or

    b) there's a hack to achieve this?

    Thanks.

    http://wordpress.org/extend/plugins/relevanssi/

  2. Mikko Saari
    Member
    Posted 4 years ago #

    Sure it's possible. Find the bit in the code that says "INDEX TAGs of the POST".

    There's this code:

    foreach($ptagobj as $ptag) {
    	$tagstr .= $ptag->name . ' ';
    }

    Just add the tag description ($ptag->description, I'm guessing) to the $tagstr and it should do the trick.

  3. g01010
    Member
    Posted 4 years ago #

    Beautiful. Thanks.

    It's a great plug-in.

  4. borisj
    Member
    Posted 3 years ago #

    How does this exactly look like?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags