Forum Replies Created
-
AuthorPosts
-
affariproject
ParticipantOkay, I confess. My code was the culprit. I’d forgotten that I’d made some modifications to the values that were being submitted with the form and it wasn’t matching the values stored through the PRO additional fields interface.
affariproject
ParticipantOh, and trying to save from the front-end doesn’t only just not save that field. It also clears out any value that was previously set for that radio field.
affariproject
ParticipantYeah, I considered that method. However, that will mess with the number of posts listed on each list view page. If you’re allowing ten posts to show, but six match the meta field, you’ll only see four. Then you might see all ten on the next page if none match the meta. Creates an inconsistent user experience.
affariproject
ParticipantHi Geoff,
Thanks for the reply. ACF is the route I was planning to go if this still wasn’t a built-in option for TEC. Thanks for the heads up. I’ll suggest it as a feature.
affariproject
ParticipantConsidering this is only happening on an events single page, do you have any recommendations on where to start deleting code to test?
affariproject
ParticipantHi Brian,
I fixed the $event variable notice, but I’m still getting the white screen. I did, however, break down and switch my theme to 2015 briefly. Sure enough, no white screen, so I suppose it’s something in my theme but I don’t know what. There are currently no errors being generated when I visit the offending white page or a working events single page.
affariproject
ParticipantThe only error that comes up for the events single page is this:
PHP Notice: Undefined variable: event in /home/content/50/7552150/html/wp-content/themes/newcitychurch/tribe-events/single-event.php on line 62The code on that line is this:
echo '<p class="datetime"><strong>Time:</strong> ' . tribe_get_start_date($event, true, 'g:ia') . ' - ' . tribe_get_end_date($event, true, 'g:ia') . '<br /><strong>Date:</strong> ' . tribe_get_end_date($event, true, 'F d, Y') . '</p>';I don’t explicitly define $event in my code. I suppose I thought it was defined as part of the default $post for the single page. Could that be the problem? If so, how would I fix it?
-
AuthorPosts
