WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Limiting indexed content types in v 1.3

[Resolved] Limiting indexed content types in v 1.3

  • In version 1.2 it seemed the plugin only indexed pages and posts by default and I could add custom content types to index with, for instance:

    add_filter('lift_indexed_post_types', function( $post_types ){
        $post_types[] = 'audio';
        $post_types[] = 'video';
    }

    In version 1.3 the plugin indexes every content type by default.

    I had to do this to limit to just the content types I wanted indexed:

    add_filter('lift_indexed_post_types', function( $post_types ){
        unset($post_types);
        $post_types[] = 'audio';
        $post_types[] = 'video';
        $post_types[] = 'post';
        $post_types[] = 'page';
        return $post_types;
    });

    It seems to work, is this correct?

    Brady

    http://wordpress.org/extend/plugins/lift-search/

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] Limiting indexed content types in v 1.3’ is closed to new replies.