I am trying to: Setup a content template for a custom post type
Link to a page where the issue can be seen: lien caché
I expected to see: A post using the content template setup for it.
Instead, I got: The post not showing the template or any custom fields from the template.
The template works with other themes but not 2022.
Shane
Supporter
Les langues:
Anglais (English )
Fuseau horaire:
America/Jamaica (GMT-05:00)
Hi Graham,
Thank you for getting in touch.
Would you mind allowing me to have admin access to the website so that I can have a more detailed look at this for you ?
Please where applicable please provide me with a link to an example page where I can see the issue.
I've enabled the private fields for your next response.
Thanks,
Shane
Shane
Supporter
Les langues:
Anglais (English )
Fuseau horaire:
America/Jamaica (GMT-05:00)
Hi Graham,
Thank you for the credentials, however they don't seem to work.
Can you check them on your end and let me know if they work for you.
Thanks,
Shane
Please try again with the details I previously sent.
Shane
Supporter
Les langues:
Anglais (English )
Fuseau horaire:
America/Jamaica (GMT-05:00)
Hi Graham,
This should now be working.
What I did was to enable the "Theme support for Content Templates" settings and view the post on the frontend to see which function the theme is using to render its default content. Then I copied this function into the template function setting.
In this case the function being used was "render_block_core_post_content".
Once I added this custom function then the content template started showing up fine on the frontend.
Please let me know if everything is ok now.
Thanks,
Shane
My issue is resolved now. Thank you!