this content template here hidden link
the single-event.php displays the content after the title like here hidden link
i need the content template to display where the word ++++++++++++here++++++++++++++ is displayed on the page instead ?
my single event php is located here hidden link
is it possible?
<removed>
Well, Content Templates are intended to replace what WordPress themes usually output by using the_content() function.
That is usually just below the Post Title, since it is the Post Body, so to speak.
https://developer.wordpress.org/reference/functions/the_content/
Hence, when you assign a Content Template to a single or many posts, it will replace exactly that part of the Theme Code.
If you instead want to display a Content Template "anywhere" on a post (so, not replacing the_content, or post body, but anywhere you insert it), you can do this by using a ShortCode.
You will find it in the "Fields and Views" GUI where you can search for "post body".
The ShortCode looks like this:
[wpv-post-body view_template="slug-of-your-content-template"]
Also, you can call a Content Template with PHP:
https://toolset.com/documentation/programmer-reference/views-api/#render_view_template
I could not see the front end of your page as it says it is for subscribers only, even I was logged in.
But above should describe well how you'd add that template to the desired location, wether with a shortcode or PHP
Please let me know if anything remains unclear.
PS:
I removed your access data because these posts are public.
thanks beda ,[wpv-post-body view_template="slug-of-your-content-template"] does this go in the content template or my php file for the post type? i tried the content template but it just added a warning for infinate loop. thanks
[wpv-post-body view_template="slug-of-your-content-template"] is a shortcode, and classically in WordPress you will insert this in a Text Editor of a Post, or else.
You can of course always insert this in PHP as well using do_shortcode(), or you can use Views API to display that Content Template in PHP:
https://toolset.com/documentation/programmer-reference/views-api/#render_view_template
The infinite loop you get is because you insert the [wpv-post-body view_template="slug-of-your-content-template"] shortcode inside each other.
That does not work
As said, Content Templates, if assigned to a post, will replace the Content of that post.
If you need to display a Content Template independently from the Post Body you'd need to use PHP or other methods to output it in the Themes sections you want which are not the post body.
However this is not something Toolset Support can help with, as it is a customization of the Theme.
You'd need to use https://toolset.com/documentation/programmer-reference/views-api/#render_view_template in the case you want to add the changes to a Child Theme, for example.
That would allow you to call any Content Template, anywhere you want, in the Theme's template Files (or well, even sidebars, if the Theme has any)
My issue is resolved now. Thank you!