Support » Fixing WordPress » How to Show the Amount of Posts on the Homepage Header?

  • Hi there,

    i write several posts each day and i want my users to know how many posts are in total. I just want to show something like “10.000 posts and writing more!” something like that… how can i do it?

    thanks!

Viewing 1 replies (of 1 total)
  • The following code will display the total number of published posts:

    <?php $count_posts = wp_count_posts(); echo $count_posts->publish; ?>

Viewing 1 replies (of 1 total)
  • The topic ‘How to Show the Amount of Posts on the Homepage Header?’ is closed to new replies.