Navigation überspringen

[Gelöst] Post Type without singlephp and archivephp

This support ticket is created vor 2 years, 1 month. 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 1 reply, hat 2 Stimmen.

Zuletzt aktualisiert von Nigel vor 2 years, 1 month.

Author
Artikel
#2693830
Knipsel.JPG

I want to create a new Post Type without single.php and archive.php.
When I copy a correct post tye then unfortunately it doesn't work.

How can I get a post type like Uitstapjes? (image attached)

#2693840

Nigel
Unterstützer

Sprachen: Englisch (English ) Spanisch (Español )

Zeitzone: Europe/London (GMT+01:00)

Hi there

Can you clarify what your objective is?

You want to create a custom post type, but you don't want to be able to display those posts on the front end (either individually, via single.php, nor together in an archive using archive.php or index.php)?

If that's the case you can prevent displaying single posts or archives of that post type by editing the options for the post type (edit the post type at Toolset > Post types) and unchecking "has_archive" and "publicly_queryable", and checking "exclude_from_search".

#2694359

Thank Nigel