fuzzylamp0433
Forum Replies Created
-
Can you explain why old posts are OK but new posts don’t show the URL? I don’t see how it’s related to this bug
https://github.com/wpeventmanager/wp-event-manager/issues/1445
Last comment.
This solution works for now because the booking urls are the same for most events:
Add this below line 17 of the event-registration.php file
<?php // Check for empty url if(empty($register->url)) { echo "<a href='https://mylink.com'>https://mylink.com</a>"; } else { //echo "Not empty"; } ?>actually if I force a value in the get_event_registration_method() function like this:
$method->url = ‘https://google.com’
I still get a no link on the front end for new posts.
File wp-event-manager-template.php, line 208 is this:
$register = $post->_registration;For new posts the value is empty despite a visible url in the “Registration email/URL” field and in the postmeta database table.
_event_registration_email has a value for the post_id in the postmeta table. Old events show the url, new events don’t.
Outputting the value with
echo “URL”.esc_url($register->url);
on the event-registration.php template is empty too. Confused.
Can I copy a single file from 3.1.37 to fix this for now or do I need to manually add event links to the description for each event and disable the button?
Thanks!
- This reply was modified 2 years, 8 months ago by fuzzylamp0433.
I’m seeing odd behaviour. Just added a new event with a link in the “Registration email/URL” field but it doesn’t show on the front end. I tried 3.1.37 last night, however, all expired events returned. Is there a known bug in 3.1.36? I don’t recall this happening before.
Ok great. It would be nice to have a feed to pull out a list of events to place on other pages / websites.