WordPress.org

Ready to get started?Download WordPress

Forums

Captain Slider
any way to exclude slides from search results? (3 posts)

  1. Webprom Design
    Member
    Posted 1 year ago #

    HI!

    Thanks for the great slide plugin! Just if you can please exclude slides post type from search results, it looks strange in search results :)

    Thanks.

    http://wordpress.org/extend/plugins/captain-slider/

  2. mubashir09
    Member
    Posted 11 months ago #

    You need to edit post-types.php, which is found under "captain-slider/includes/admin/
    Find function ctslider_register_slides_posttype and then
    add

    exclude_from_search' => true,

    in labels array

    It will excludes slides from search results.
    Hope you find it helpful.

  3. Webprom Design
    Member
    Posted 11 months ago #

    thanks! Actually I added to into
    $post_type_args = array(
    and then it worked. It it probably will be overwritten when the plugin updates. Any ideas? How to include it in my child theme for twentyeleven?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.