Skip Navigation

[Resolved] Use Custom Post Type on Home page

This thread is resolved. Here is a description of the problem and solution.

Problem:

How to have custom post type listing that is customized?

Solution:

Inside the page use Gutenberg and Views block to generate the CPT archive and use only that view on the page.

Relevant Documentation:

https://toolset.com/course-lesson/adding-dynamic-content-to-your-homepage/

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 3 replies, has 2 voices.

Last updated by Christopher Amirian 1 year ago.

Assisted by: Christopher Amirian.

Author
Posts
#2657489

Hi there, i try to display CPT on my home page, i have seen thos post : https://toolset.com/forums/topic/how-to-set-archive-as-homepage/

That doesn't work, even with fonction....

You also advice to create a view in static page, do you have advice to trasnform or copy my archive in view ?

Thanks

#2657915

Christopher Amirian
Supporter

Languages: English (English )

Hi there,

The easiest way is to create a static page.

Inside the page use Gutenberg and Views block to generate the CPT archive and use only that view on the page.

You can use this example:

https://toolset.com/course-lesson/adding-dynamic-content-to-your-homepage/

Thanks.

#2657925

Hi,
I already have archive how I can use in block ?

#2658375

Christopher Amirian
Supporter

Languages: English (English )

Hi there,

Unfortunately, the WordPress Archive is not possible to be used as blocks. You will need to do the same thing you have done in the WordPress Archive as a View and then you will be able to use that on the homepage with the Views block.

Thanks.