Top Posts and Pages Widget

Last updated:

Display either your most liked posts or your ten highest-traffic posts in the past 48 hours.

Add the Top Posts and Pages Widget

To add the Top Posts and Pages Widget, follow these steps:

  1. Activate the Extra Sidebar Widgets feature.
  2. Visit your dashboard.
  3. Navigate to Appearance → Customize → Widgets and search for “Top Posts & Pages”.
  4. Click to add it to any widget area.

Customize the Widget

In addition to the widget options, you can add filters to your shortcode to customize the look of the widget on your site:

jetpack_top_posts_widget title="Top Posts" count="3" types="post" display="grid"

Change the title, count, types, and display as desired.

Display the Widget

Use the jetpack_top_posts_widget shortcode in posts and pages to show the widget anywhere on your site. You can add the shortcode directly to your theme template files using the following code:

echo do_shortcode( '[jetpack_top_posts_widget]' ); 

Please be aware that code snippets are provided as a courtesy and our support team is unable to provide assistance with further customizations. Before you add a code snippet, we recommend backing up your site. If you don’t have a backup solution yet, you can add a Jetpack VaultPress Backup plan.

Troubleshooting

Why isn’t my Top Post Widget updating?

If your Top Posts Widget isn’t updating, your site may have an expired transient that is not being deleted as it should be. To solve the issue, try the following steps:

  1. Install the Transients Manager plugin.
  2. Search for any transient that starts with jetpack_restapi_stats_cache_ followed by a random string of characters.
  3. Delete any of these transients.
  4. Check whether your Top Post Widget has been refreshed.

Transients Manager is a third-party plugin. Since Jetpack does not own or develop this plugin, we aren’t able to troubleshoot it and we are not responsible for updating it.

Still need help?

Please contact support. We’re happy to advise.