Site logo

Archived topic

Beta release of GP Pro - query about custom post types and best practice

1 reply · Started by Elisabeth on May 18, 2021

Viewing posts 1–2 of 2

Hi there,
I'm trying to create a custom post type for a listings page for a set of professionals (name, area covered, qualifications, personal statement, preferred method of contact, and similar). I've used PODS for this.
I'm then trying to create a front end posting form so that interested professionals can input their info, creating a draft post of that custom post type, which I then set to live once approving it.
And I will be trying to use the beta version of the latest GP Pro release to make use over the Themer options in creating the layout for the final live listing page for each professional and for the archive and search pages.
I've already hit a bit of a brick wall in that the pro form plugin (ninja) which I bought recently doesn't 'talk to' PODS.
I'm worried that at some point I'll hit another wall when it comes to using PODS (or something else) to set up the layout pages using GeneratePress.
So, can you advise me on plugins that you know integrate well with GP Pro for both setting up custom content types? Something that avoids me poking my nose around in the PHP of the site would be good as I am likely to wreck it...
Thank you
Liz

Hi there,

if you're looking to use the GPP 2.0 theme building options then the best method is to use the GP Theme Templates as the foundations for your CPT Templates:

https://docs.generatepress.com/article/setting-up-a-simple-custom-post-type/

This way you have all of the functionality of the GP Theme templates, including the necessary do_template_part functions that GPP 2.0 Content Templates require.

With your new CPT assoicated to your copied templates you should be able to contsruct your single and archive templates using the Block Element. Any Custom Field you have in your PODs template will be saved to the Post Meta - so that data should be accessible using the dynamic data.

This archived topic is closed to new replies.