At the top of the settings you will see various options such as displaying

Discover tools, trends, and innovations in eu data.
Post Reply
Mostafa044
Posts: 1074
Joined: Sat Dec 21, 2024 5:34 am

At the top of the settings you will see various options such as displaying

Post by Mostafa044 »

Now let's look at how you can display the latest posts by category in different areas of your website. We'll go over the methods below so you can jump straight to the method that interests you:

Method 1: Adding Recent Posts by Category Using Block Editor

WordPress has the Latest Posts block in the block editor by default . It allows you to view the latest posts within a page or post, and you can even filter them by categories.

First, you need to edit the post or page where you want to display the latest posts by category. On the post editing screen, click the "Add new block" (+) button, then find the "Latest Posts" block.


The block will appear in the content area with a preview of list of south africa cell phone number your recent posts. Simply click on the block to select it and you will see the block settings in the right column.

Now you need to scroll down to the Sorting and Filtering section under the block settings . Here you need to enter the name of the category you want to display posts from.

You can even select multiple categories by separating the category names with a comma.

You will notice that the preview of your recent posts only contains posts from the categories you selected.

You can now save your post or page and preview it in a browser window. This is what it looked like on our test page, which shows the latest posts in a specific category with featured images and post excerpts .
Post Reply