I created a custom post type with wp-types called "Events"
I'm using Event Tickets Plus to allow me to add tickets to each event. It essentially creates a woocommerce product item for each ticket I create and associates it with my Event.
I created a Content Template for Events that looks like this:
[wpv-post-title]
[types field='event-description'][/types]
<p>[types field='what-you-get-on-completion'][/types]</p>
I expect this will show me:
TITLE
Description
what you get on completion
Instead, it repeats the list of tickets under each [types][/types] and then AGAIN at the bottom of the page. (it doesn't repeat it after [wpv-post-title]).
TITLE
Description
list of tickets
what you get on completion
list of tickets
list of tickets
(see attached screenshot)
I don't understand why it displays tickets at ALL (since I don't have anything in my content template about tickets), much less why it keeps repeating them.
As a test, I created a single-event.php to use instead of the View Content Template and I used the get_post_meta() function to get the values for these items, e.g., :
get_post_meta( get_the_ID(), 'wpcf-event-description', true );
This displays the description (as I'd expect) without the Tickets being displayed underneath of it.
Playing around more though, I found that in my single-event.php, when I call get_content() that DOES display the tickets
I'm super confused. I can't understand why they're being returned from get_content() (which I realize has nothing to do with Views) but then I also can't understand why my Views Content Template keeps repeating them again and again.
Any ideas how I can fix/control this? I actually would like it to display the list of tickets at the bottom of the content template, I just want to be able to control when & where it gets placed.
Thanks!!
Abby