• Hi, I noticed that when I tag posts as “featured” so they turn up in the carousel, while they appear in the carousel, they no longer appear with the non-featured posts in the blog list below the carousel. I would like to have featured posts appear in both the carousel and in the standard blog list below the carousel. Is this possible? I’m willing to use editor to add some custom code if necessary.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @james2lek,

    Unfortunately we don’t support this on both version. It always show only the featured post in carousel. However if you can edit, it is placed in boston_setup_featured_content function in boston/inc/extras.php.

    Cheers.

    @james2lek

    Here is what you need to do in order to display non-featured posts in Carousel and in standard blog list at the same time.

    1. Go to Appearances–>Editor
    2. From the ‘Templates’ list on the right choose ‘loop-featured.php’
    3. On line 10 make the following change:

    Replace:
    $featured_posts = boston_get_featured_posts();
    with:
    $featured_posts = boston_get_posts;

    4. On line 18 make the following change:

    Replace:
    <?php foreach ( $featured_posts as $post ) : setup_postdata( $post ); ?>
    with:
    <?php foreach ( $posts as $post ) : setup_postdata( $post ); ?>

    5. Save changes by clicking ‘Update File’ below the Editor area

    What this change does is to tell the Carousel function to pick normal (non-featured) posts from your blog instead of featured posts. For this change to work you should not tag your posts as ‘featured’, otherwise they will not come up in Carousel.

    Hope this helps your case!

    LG

    Hi @lg1 ,

    I have the same issue with @james2lek .
    However what I want is to show the featured posts in the normal posts list as well below, and still maintain its ‘special featured’ position in the carousel. Is it possible?

    I reviewed the code from extra.php and index.php, trying to figure out but still failed. It will be highly appreciated if you could give me a favor. thank you very much.

    • This reply was modified 8 years, 3 months ago by chy.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Carousel Issue’ is closed to new replies.