Navigation überspringen

[Gelöst] Use Custom Post Type on Home page

Dieser Thread wurde gelöst. Hier ist eine Beschreibung des Problems und der Lösung.

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 vor 1 Jahr, 3 Monaten. 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.

Dieses Thema enthält 3 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von Christopher Amirian vor 1 Jahr, 3 Monaten.

Assistiert von: Christopher Amirian.

Author
Artikel
#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

Sprachen: Englisch (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

Sprachen: Englisch (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.