Create unreachable CPT (only content management)
-
Hi,
I wonder if it is possible to create a new CPT only in order to manage and use some fields and call this content on several templates of page : which mean that the CPT is totally hidden for the user (no url, no archive, nothing, just an interface for the admin and the possibility to loop on the content).
It is difficult to explain so I will make an exemple. I need to display partners logos on my website on several pages, those partners are subject to change. so I wanted to create a CPT “Partners” with only two ACF fields (logo and label) to manage them easily. After that, I created a function which find all partners and display for each the logo and the label in a slide.
But I don’t want the user to be capable of reaching a Partners page (which will be natively managed by the “single.php” file of WordPress) by following the slug or something like “mywebsite.com/partners/partner1/”. So this CPT is not intended to be shown in a page which belongs to it.
Is there any way to do it ?
Thank you in advance
- The topic ‘Create unreachable CPT (only content management)’ is closed to new replies.