• Resolved WanderingOn

    (@wanderingon)


    Hi,

    Is it possible to use the shortcode for Jetpack Popular Posts to display the 6 most popular posts on my website in a grid format on my homepage?

    I would like to display the featured image and the blog title only. If this is possible how can I do this?

    Any assistance would be very much appreciated.

    Thanks in advance! ??

    https://www.ads-software.com/plugins/jetpack/

Viewing 1 replies (of 1 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    You should be able to add the Top Posts to your home page by adding the following to your home page’s template file:

    <?php echo do_shortcode( '[jetpack_top_posts_widget types="post" count="6" display="list" ]' ); ?>

    You can also include the shortcode directly in the page:

    [jetpack_top_posts_widget types="post" count="6" display="list" ]

    Once you’ve done so, you’ll be able to customize the look of the Top Posts list thanks to CSS. You can add that CSS to your theme stylesheet, or to your custom CSS editor available under Appearance > Edit CSS in your dashboard.

    I hope this helps.

Viewing 1 replies (of 1 total)
  • The topic ‘Popular Posts Shortcode Question’ is closed to new replies.