Skip Navigation

[Resolved] Post Type without singlephp and archivephp

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 1 reply, has 2 voices.

Last updated by Nigel 8 months, 1 week ago.

Author
Posts
#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
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00: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