WordPress.org

Ready to get started?Download WordPress

Forums

Relevanssi - A Better Search
Feature Request: Options for including category/taxonomy pare (2 posts)

  1. Alexander Gieg
    Member
    Posted 2 years ago #

    When the options for including posts' categories and/or custom taxonomies are enabled, it'd be nice to have two additional options to also include their parents, as this would enable an even more effective fuzzy search. Something like this alternative version to the category indexing code block that starts at line 2295 (not tested, as I don't actually have multiple category levels, and probably in need of a rework or "function'izing" to avoid repeating code blocks) or this one to the first foreach in the index_taxonomy_terms() function (tested and working!).

    PS1: The test I did in the last one was with if (true) {, as I still don't know how to handle WP's admin side of things. :P

    PS2: I noticed the index_taxonomy_terms() description says it should return the number of terms indexed, but it actually doesn't. I guess there should be a return $n; at the end?

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

  2. Mikko Saari
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks, that does sound like a good idea.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags