This support ticket is created Il y a 7 années et 6 mois. 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.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
Unfortunately I created a Custom Post Type with a couple of Custom Post Fields (single line title) but it is not showing in the page.
I did test my Types Configuration just by switching the theme and is working just fine.
So the problem is with the Theme
Please let me know if there is some known conflict with this theme (I found some unanswered tickets in the forum)
Also, please let me know if there is some kind of workaround to make it compatible.
This could be because Enfold is not using the wordpress standard functions to output post content.
What you can do is to go to Toolset -> Settings -> Frontend Content -> Theme support for Content Templates , this section should allow you to recognise the function that is being used to display the content on the frontend.
Good point, I just started by checking that section before posting but did'nt manage to understand how to make it work.
I found a solution and I'm happy with it.
Anyway, just for the record.
Edit single.php (in your child-theme)
Replace
get_template_part( 'includes/loop', 'index' );
With:
get_template_part( 'includes/loop', 'page' );
I created a custom one for my CPT in includes/loop-my-cpt.php
and added a conditional for my Custom Post Type
// Make it work with Types by using a page Template
if ( is_singular( 'my-cpt-slug' ) ) {
get_template_part( 'includes/loop', 'my-cpt-file' );
} else {get_template_part( 'includes/loop', 'index' );}
Thanks for your support
Best
This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.