• Hello everybody
    I want to use the function wp_get_recent_posts on the single.php page to display the last 5 articles of category the category of the article being read.

    Thank you in advance

Viewing 1 replies (of 1 total)
  • Hello,
    No need to use that function in your single.php file. Your single file always called single article and it shows single content of a single post.

    If you control the number of the blog post to show then you can set it from your admin panel.
    Just go to Settings > Reading > and choose how many post you want to show in your blog listing page.

    thanks.

Viewing 1 replies (of 1 total)
  • The topic ‘Recent publication of a category’ is closed to new replies.