Support » Plugin: Meteor Slides » [Plugin: Meteor Slides] Search results for slides

  • Resolved Russ

    (@russbloomquist)


    First off I love meteor-slides. 🙂

    I have a quick question.

    The slides show up in WP search results with a link to the Permalink location and not the slide link location. Is there a quick way to fix this?

    Thanks, Russ

Viewing 3 replies - 1 through 3 (of 3 total)
  • Russ

    (@russbloomquist)

    Never mind.

    Russ

    (@russbloomquist)

    I noticed that the slides are stored in the database as post_type=slide so I just added this to my theme functions.

    function SearchFilter($query) {
      if ($query->is_search) {
        // Insert the specific post types you want to search
        $query->set('post_type', array('post', 'page'));
      }
      return $query;
    }
    
    add_filter('pre_get_posts','SearchFilter');

    So, now post_type slide is being excluded.

    Plugin Author Josh Leuze

    (@jleuze)

    Hi Russ, thanks for trying my plugin. I hadn’t actually considered that these slides might show up in search!

    Thanks for sharing your solution, I’ll make sure that the next version of Meteor Slides fixes this issue.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Meteor Slides] Search results for slides’ is closed to new replies.