Custom Post type- post Indexing plugin

Any way custom posts type can be included in the post indexer plugin? or is it already included

thanks

  • Barry
    • DEV MAN’s Mascot

    Hi, no it doesn’t – it only indexes Posts – hence the name :slight_smile:

    Custom post type indexing / merging is more complex. The taxonomies and extra custom fields used the rules and “merging” can be different and thus require site by site / install by install changes, so I don’t think it’ll be as easy as “switching on” the indexing for this plugin.

  • asimetrick
    • Site Builder, Child of Zeus

    @Barry

    Hi. May I reactivate this topic?

    Actually, custom types ARE indexed! Not only the code only excludes the ‘page’ post type but I also made a test and it works pretty well.

    So why exclude the specific ‘page’ post type? It’s editable content as well after all, even if it’s not a pure post.

    So either we only want to index posts and the condition should be on the ‘post’ type, not the ‘page’ type, or we want to index any type of editable content and the condition should be removed. Even better: a setting that defines the post types to be indexed. And if the setting is changed, we apply the same logic as for the spam status for example: everything with the wrong post type is removed and indexing starts just from then for new post types (“from now on” logic).

    For custom fields, they are not indexed anyway even for the posts (it’s always possible to have custom fields even with posts), so there would be nothing more to be managed here.

    For the taxonomies, I don’t understand why it’s limited to Categories and Post Tags. The WP taxonomy model is actually built (at least since WP 3.0) to be generic and I see nothing in the plugin’s code that requires this limitation. Do I miss something?

    So may I request (suggest?) to remove the limitations on post types and taxonomies and replace them by a setting on what to index?

    Thanks.