Site logo

Archived topic

Category page

5 replies · Started by Nicole on November 7, 2022

Viewing posts 1–6 of 6

I am trying to show 3 columns of posts for each category with only the title and the first image (not featured image).

1. How do I show this layout of 3 posts per line with an image and title if I use the classic editor?
2. Is it possible to use the first image or do I have to use a featured image?

Hi Nicole,

1. If you're using the Classic editor, you'll need plugin or custom HTML. For instance, to retrieve posts of a specific category, we had a plugin called WP Show Posts. It's already merged though with GenerateBlocks which only works with the WordPress Block Editor. WP Show Posts can still work though.

WP Show Posts: https://wpshowposts.com/

You can also try a different plugin. For instance, I found this: https://wordpress.org/plugins/display-posts-shortcode/ which may work since it has a Shortcode as well.

2. Depending on the plugin you'll use, it may be possible but it's more likely post meta image as opposed to just the "first image". Sometimes, some plugins may allow you to retrieve post meta image data, and use this as the display image for the queried posts. In GenerateBlocks, though not available for the Classic editor, retrieving post meta images is possible.

It should be possible through custom code as well however, this level of customization would be out of our scope.

We highly advise our customers to use the Block editor, and use GenerateBlocks for ease of editing.

Thanks for your response.
Could I use the block editor just for category pages and the classic for posts and pages?

If I can, how do I even go about creating a category page? I did try to follow these instructions but /latest-posts-using-generateblocks/ but I don't since the things they point to

A Category page is created automatically by default.

To edit the way posts are presented in an Archive page with GP Premium, you would need to be using the Block Editor. See here: https://docs.generatepress.com/article/block-element-content-template/

I believe the Classic editor plugin that allows you to activate the classic editor only for specific posts and pages. See here: https://www.wpbeginner.com/plugins/how-to-disable-gutenberg-and-keep-the-classic-editor-in-wordpress/#:~:text=the%20Classic%20editor.-,Method%202.%20Disable%20Gutenberg%20with%20the%20Classic%20Editor%20Plugin,-For%20this%20method

Thanks!

You're welcome Nicole!

This archived topic is closed to new replies.