Skip Navigation

[Résolu] Use Custom Post Type on Home page

Ce fil est résolu. Voici une description du problème et la solution proposée.

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 Il y a 1 année et 1 mois. 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.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

Ce sujet contient 3 réponses, a 2 voix.

Dernière mise à jour par Christopher Amirian Il y a 1 année.

Assisté par: Christopher Amirian.

Auteur
Publications
#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

Les langues: Anglais (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

Les langues: Anglais (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.