Saltar navegación

[Resuelto] Use Custom Post Type on Home page

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

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 support ticket is created 2 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

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.

Este tema contiene 3 respuestas, tiene 2 mensajes.

Última actualización por Christopher Amirian 2 years, 10 months ago.

Asistido por: Christopher Amirian.

Autor
Mensajes
#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
Colaborador

Idiomas: Inglés (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
Colaborador

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.