Meteor Slides
[resolved] Search results for slides (4 posts)

  1. Russ
    Posted 4 years ago #

    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

  2. Russ
    Posted 4 years ago #

    Never mind.

  3. Russ
    Posted 4 years ago #

    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;

    So, now post_type slide is being excluded.

  4. Josh Leuze
    Plugin Author

    Posted 4 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic