Site logo

Archived topic

Showcase Most Recent Post Only

3 replies · Started by Rubina on September 7, 2021

Viewing posts 1–4 of 4

Hi, there! I'm attempting to create a block that showcases only my most recent post. I'm currently accomplishing that with a plugin but would like to transition over to solely using GP Premium with GP Blocks. You can see the current layout of the website here:

Thanks in advance for any assistance!

Hi there,

GP Premium doesn't have a Post grid or Post list block. It's mainly for extending GP Elements and extending the theme customizer settings.

The way to go about this is actually what you're current setup is. You'll have to add the "most recent posts" through either a plugin or custom coding.

Can you specify which in particular do you need assistance on? Let us know. :D

Thanks for the quick reply, Elvin! I'll keep the plugin setup for the most recent post then.

I have another related question regarding the block formatting but can open a new support topic if that's better.

Following along with this video tutorial from Leo, I'm trying to add a Content Template block element for all my posts to a static homepage.

I attempted to do this using Location: Page; Home. Nothing showed up. The block shows up if the Reading settings are on "Latest Posts" and the block is set to Location: Blog.

But I'd like the static homepage. What am I missing?

P.S. Apologies for being such a newbie. :)

The Block Element - Content template can only apply to default loops of Blog index page, search page and Archive pages.

It doesn't create a loop, nor edit a loop coming from custom code or plugin. It only changes how the default loop layout/styling. :)

That said, when you're creating a static home page instead of a home page that is a blog index page set on Dashboard > Settings > Reading, you'll most likely add a post loop from either a custom code or a plugin, that's likely the reason why the Block Element - Content Template didn't apply. :D

This archived topic is closed to new replies.