• Resolved seotaro

    (@seotaro)


    Hi there.

    I have a couple of questions about the post carousel.

    1) Is it possible to display last modified date instead of the publish date in Post Carousel?

    2) Is it not possible to specify which posts are displayed in the carousel?

    Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter seotaro

    (@seotaro)

    Answer for myself

    #function filter_post_query( $query_args, $attributes) {
    // Unique class name added from Advanced tab for Post Grid Block.
    if ( 'related-grid' == $attributes['className'] ) {
    $query_args['post__in'] = array( 12026, 9930, 8631, 6761, 3794, 1287 );
    }
    return $query_args;
    }
    add_filter( 'uagb_post_query_args_carousel', 'filter_post_query', 10, 2 );
    <time datetime="<?php echo esc_attr( get_the_modified_date( 'c', $post->ID ) ); ?>" class="uagb-post__date">
    <?php echo ( true === $attributes['hideTaxonomyIcon'] ) ? '<span class="dashicons-calendar dashicons"></span>' : ''; ?>
    <?php echo esc_html( get_the_modified_date( '', $post->ID ) ); ?>
    

    Can you please let me know if there are any Functions that can implement the second method?

    Plugin Support mohsinbsf

    (@mohsinbsf)

    Hi @seotaro,

    Thanks for getting in touch with us.

    — You can show the specific posts by using the code that you shared in your last message.

    — For changing the date, I need to check with the dev team. Please lend me some time to assist you.

    Have a nice day!

    Plugin Support mohsinbsf

    (@mohsinbsf)

    Hi @seotaro,

    You can can use any of filter/action hook?uagb_single_post_before_meta_carousel/uagb_single_post_after_meta_carousel?to show custom meta on carousel or customize date. For more details, please check this guide: https://wpspectra.com/docs/filters-actions-for-post/

    Please mark this thread close if your problem is solved.

    Have a nice day!

    Plugin Support mohsinbsf

    (@mohsinbsf)

    Hi @seotaro,

    It’s been long since we heard from you. I am going ahead to mark this as resolved.

    Please feel free to open a new thread in case of any other queries.

    Have a nice day!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Is it possible to display last modified date instead of the publish date in Post’ is closed to new replies.