jetpack_top_posts_widget

The WordPress Core jetpack top posts widget shortcode.


Usage

  1. // basic usage 
  2. echo do_shortcode('[jetpack_top_posts_widget]'); 
  1. // variable usage 
  2. $result = do_shortcode('[jetpack_top_posts_widget]'); 
  3. echo $result;  

Defined (1)

The shortcode is defined in the following location(s).

/modules/widgets/top-posts.php  
  1. the_widget( 'Jetpack_Top_Posts_Widget', $instance, $args ); 
  2. $output = ob_get_clean(); 
  3.  
  4. return $output; 
  5. add_shortcode( 'jetpack_top_posts_widget', 'jetpack_do_top_posts_widget' );