Home Forums WoodMart support forum How to make the related post area in masonry grid instead of carousel?

How to make the related post area in masonry grid instead of carousel?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #266350

    TarequeYousuf
    Participant

    Hello,
    I wanted to make the “Related Post” area in “masonry Grid” instead of the carousel. On my screenshots, you can see that it’s showing carousel now, but I want to make it just masonry Grid with the rest of the post in that category.

    On the theme single.php single post I see this code, but it’s only for the carousel.
    <?php

    if ( woodmart_get_opt( ‘blog_related_posts’ ) ) {
    $args = woodmart_get_related_posts_args( $post->ID );

    $query = new WP_Query( $args );

    if( function_exists( ‘woodmart_generate_posts_slider’ ) ) echo woodmart_generate_posts_slider(array(
    ‘title’ => esc_html__(‘Related Posts’, ‘woodmart’),
    ‘blog_design’ => ‘carousel’,
    ‘blog_carousel_design’ => ‘masonry’,
    ‘el_class’ => ‘related-posts-slider’,
    ‘slides_per_view’ => 3
    ), $query);
    }

    ?>

    Can you send me the codes or how to do that in the masonry Grid? Not seeing any setting on the theme also.

    Thank you

    Attachments:
    You must be logged in to view attached files.
    #266628

    Hello,

    Unfortunately, there is no option or a quick solution.

    The only way is to hide the Related posts and add a Blog element into each post, set the category or tag that would determine which posts to show, and set the design you wish.

    You can create a template and paste it into each post, just changing the tab or category: https://wpbakery.com/video-academy/use-templates-wpbakery-page-builder/

    Hope it is workable for you.

    Best Regards

Viewing 2 posts - 1 through 2 (of 2 total)