WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Custom Post Types

[Resolved] Custom Post Types

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author qhoxie
    Member

    @qhoxie

    Hello,

    The plugin does support indexing custom post types. Please give it a try and let us know what you think!

    Best,
    Quin, Swiftype

    Hey Quin,

    Love this feature, but I was wondering if we could choose which Custom Post types get indexed? Is there a way to block some? I have a lot post types that are for data around the site but shouldn’t show up in search independently.

    PatricioCamposA
    Member

    @patriciocamposa

    Hi itsmicks

    You can use robots.txt to disallow access to swiftype

    check this
    https://swiftype.com/documentation/robots

    Plugin Author qhoxie
    Member

    @qhoxie

    Hello,

    This actually isn’t the case with the WordPress plugin. The robots directives only apply to search engines created using our crawler solution. There is a good solution for the plugin as well. You can use a filter to restrict the post types that are allowed to be searched. Here is an example that only allows posts: https://gist.github.com/qhoxie/47e39f8db6b6fa2b7d7c

    Best,
    Quin

    liongabriel
    Member

    @liongabriel

    Is it possible to add checkboxes in the search to narrow it by custom post types?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] Custom Post Types’ is closed to new replies.