Skip to content

Commit 09b35b3

Browse files
Update code indentation
1 parent 22d076f commit 09b35b3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/show_popular_blog_posts_based_on_cat_shortcode.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,15 @@ function wp_display_popular_posts( $atts, $content = null ) {
6666

6767
$popular = new WP_Query( array(
6868
'posts_per_page' => $num,
69-
'meta_key' => 'popular_posts',
70-
'orderby' => 'meta_value_num',
71-
'order' => 'DESC',
69+
'meta_key' => 'popular_posts',
70+
'orderby' => 'meta_value_num',
71+
'order' => 'DESC',
7272
'category__in' => $cats
7373
) );
7474

7575
while ( $popular->have_posts() ) : $popular->the_post();
7676

77-
echo'<li><a href="'. get_the_permalink() .'">'. get_the_title() .'</a></li>';
77+
echo'<li><a href="'. get_the_permalink() .'">'. get_the_title() .'</a></li>';
7878

7979
endwhile;
8080

@@ -84,4 +84,4 @@ function wp_display_popular_posts( $atts, $content = null ) {
8484

8585
return ob_get_clean();
8686

87-
}
87+
}

0 commit comments

Comments
 (0)