How to Migrate WP Show Posts Plugin to GenerateBlocks?

In this tutorial, you will learn some processes to migrate WP Show Posts Plugin to GenerateBlocks.

If you are a regular GeneratePres user then you might have already guessed what we are doing to do here.

If not then, then here we are going to merge all of the WP Show Posts (WPSP) functionality to GenerateBlocks.

The reason is simple i.e. Tom Usborne and the team decided to merge WP Show Posts with GenerateBlocks as WP Show Posts needed an upgrade to block editing. Here, Generateblocks provides almost all the functionality as WPSP could provide.

Migrating from WP Show Posts Plugin to GenerateBlocks

The new GenerateBlocks 1.5 has added Dynamic Data, Query Loops, & Image Blocks and here we are going to utilize those functionalities while doing a migration.

Migrate from WP Show Posts Plugin to GenerateBlocks

1. Migrating Featured Posts in GeneratePress Sidebar

Here, we are going to migrate showing featured posts in the GeneratePress sidebar from WP Show Posts to GenerateBlocks.

Here we are going to use Generateblocks Query Loops. Here I have set featured as a tag for some posts that I want to feature in the sidebar widget.

so, let’s get started. Before that please make sure you are using the latest version of GenerateBlocks.

First, I am going to visit my widget section. Appearance > Widgets.

WP Show Posts in Block Editor

First, add a Container block, and inside the Container block, add a Query Loop Block.

Adding Query Block inside Container

Now add Title & Date Layout to start with, here we only need the title, so delete the post date meta.

Generateblocks Query Loop

Now, you select Query Loop block and you can see Query Parameters settings on the right side.

Click on Add Parameters > Under Select query parameter > Choose Taxonomies > Select Tags > Choose featured tags under Select terms.

Showing Featured Posts in Sidebar using Generateblocks

Now, you will be able to see the list of featured posts, you can control the settings using Generateblocks. so play with those settings.

Like, to adjust the spacing between two post links, you have to first select Post Template Block and change Vertical Gap.

2. Migrating Latest Posts from WP Show Posts on Homepage

Showing the latest post or featured post to your homepage is much easier now with Generateblocks. Before we were using the WPSP plugin but now with Dynamic Data, Query Loop, and Image block it’s easier to add the latest posts or featured posts.

As always, first, add the Container block.

Inside the Container block, add the Query Loop block from GeneratePress, not the default one.

Now choose Two columns & a featured image Layout.

Query Loop Block in GenerateBlocks

Let’s say you want to show 3 posts in a row then make a container width of 33 or if you want to show 4 posts in a row then make a container width of 25.

Container Width in GenerateBlocks for Query Loop

For this tutorial, I am going to delete the Post Excerpt block. Now, manage container spacing, adjust Post Title Font Size, etc. to make it beautiful. Also, adjust Post Template Horizontal and Vertical Gap.

Here is the tip for you, if you have images with distinct widths and heights for each post then you can adjust it by following ways.

First click on an Image block, Under settings, assign the height of the image, let’s say 130 px, under Object-fit choose Cover. That’s it.

Adjusting Image Block in GeneateBlocks

At the End

Likewise, you can use the Generateblocks plugin to design or edit various parts of your website and it is more powerful than ever.

Soon, I will come up with a tutorial to show related posts using Generateblocks only.

Moreover, you can completely switch from WP Show Posts plugin to Generateblocks as the GP Team is merging all the functionality of the WPSP free and Pro version to the GB Free and PRO version.

Share:

I am obsessed with WordPress and write articles about WordPress Speed Optimization, SEO, Blogging. I mostly publish tutorials on GeneratePress and GenerateBlocks.

Leave a Comment