• Hi, using OpenMag free theme and NS plugin.

    Theme uses Themater_FeaturedPosts for showing slider with these options:
    category, post/page id, custom slides.
    —-

    if($featuredposts_source == ‘category’) {
    if($this->theme->display(‘featuredposts_source_category’)) {
    $featuredposts_query = ‘posts_per_page=’ . $this->theme->get_option(‘featuredposts_source_category_num’) . ‘&cat=’ . $this->theme->get_option(‘featuredposts_source_category’);
    }
    } elseif($featuredposts_source == ‘posts’) { … etc for custom, pages…

    I tried inserting the ns_featured query after adding “featured” in main selection. It appears as a menu item,(can be selected and activated) but does not work:

    elseif($featuredposts_source == ‘featured’) {if($this->theme->display(‘featuredposts_source_featured’)) {
    $featuredposts_query = new WP_Query( array( ‘meta_key’ => ‘_is_ns_featured_post’, ‘meta_value’ => ‘yes’ ) ),’posts_per_page=5′);}}

    It opens emtpy slider…

    Any ideas?
    Tnx

    https://ww.wp.xz.cn/plugins/ns-featured-posts/

The topic ‘Featured posts in slider’ is closed to new replies.