• Resolved tastymouse

    (@tastymouse)


    In the Post Grid we only have the option to display the excerpt. On one of my pages I want to show the full article in columns.
    I also tried Advanced Columns but one can’t load Posts in it. So the option to choose between Excerpt and Full post in Post Grid would be great.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Team Brainstorm Force

    (@brainstormteam)

    Hey @tastymouse ,

    Thank you for reaching us out.
    You can use the filter to solve your issue.

    function filter_post_excerpt( $excerpt, $id, $attributes ) {
        return get_the_excerpt( $id );
    } 
    add_filter( 'uagb_single_post_excerpt__grid', 'filter_post_excerpt', 10, 2 );

    I hope this helps you.

    Regards,
    Vrunda Kansara

    Hello and thank you for your help and support. I appreciate all the hard work you put into this plugin!

    I am trying to get the post carousel to display “all content” because I would rather use it for the testimonials as I find adding testimonial content to the testimonial block to be a bit cumbersome. Is it possible to show full content on the post carousel block?

    Thank you in advance for any help.
    Kind Regards,
    Tanya

    Thread Starter tastymouse

    (@tastymouse)

    Hi Vrunda,
    I added the code to functions.php but don’t see any difference.
    Thanks, Tom

    Plugin Support Team Brainstorm Force

    (@brainstormteam)

    Hey @tanyaslogos & @tastymouse ,

    Thank you for waiting in.
    Do you mind adding a request here?

    Regards,
    Vrunda Kansara

    I would like to give a HUGE THANK YOU to Vrunda and the team over at Brainstorm force for taking the time to give me this code that allows you to display the content instead of the excerpt. ??

    add_filter(
       'uagb_single_post_excerpt_grid',
        function( $excerpt, $id, $attributes ) {
            return get_the_content($id);
        },
        10,
        3
    );

    Amazing support and an AMAZING plugin! THANK YOU!

    Thread Starter tastymouse

    (@tastymouse)

    The code of tanyalogos works but no ALL posts show the complete post. It want to be able to choose it for each specific page/category. Is that possible too?

    Plugin Support Team Brainstorm Force

    (@brainstormteam)

    Hello @tastymouse,

    Could you please try out the following code and let me know if it works. If it doesn’t work please get back to us or kindly open a ticket with us using our Support Portal for a quicker resolution?

    Please paste this code in your functions.php file for the theme.

    function filter_post_query( $query_args, $attributes) {
        // Modify $query_args values.
        $current_cat = get_the_category();
        $query_args['post__not_in'][] = get_the_ID();
        $query_args['category__in'] = ( isset( $current_cat ) && is_array( $current_cat ) ) ? $current_cat[0]->term_id;
        return $query_args;
    } 
    add_filter( 'uagb_post_query_args_grid', 'filter_post_query', 10, 2 );

    I hope this helps you.

    Regards,
    Sweta

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Post Grid show full post’ is closed to new replies.