Forum Replies Created
-
AuthorPosts
-
May 4, 2012 at 8:15 am in reply to: Displaying Custom Field Attributes on Frontend in Custom Template File #18688
Ken
ParticipantLooks like the new update fixes the issue. Great job guys!
April 5, 2012 at 7:49 am in reply to: Displaying Custom Field Attributes on Frontend in Custom Template File #17644Ken
ParticipantThanks guys, you mentioned that it might not be done until 2.1, so I just wanted to keep it in the loop. At least for now I have a fix that’s the important thing.
April 4, 2012 at 1:01 pm in reply to: Displaying Custom Field Attributes on Frontend in Custom Template File #17600Ken
ParticipantThanks Rob.
Ken
Participant@Henry, the obvious is not always so obvious…LOL
I take back my earlier comment, after updating the single-venue file all appears correctly.
@Jonah Thanks for the clarification, I will add that to my list of things to check upon updating.March 27, 2012 at 10:42 am in reply to: Displaying Custom Field Attributes on Frontend in Custom Template File #17212Ken
ParticipantJust to keep in the loop, I noticed that the event-meta.php file was changed a bit. However I still had to modify line #27 to read:
$options = explode("\r\n", $customField['values'])It might not have been added to 2.0.5 like you mentioned in the previous posts. I’ll check back in with 2.1.Ken
ParticipantFrom the update change log it states that the issue with past dates not appearing on the venue page. Am I missing something, my site still shows past events.
Ken
ParticipantSounds good…I’m glad to offer up a solution for once instead of a problem. LOL
Ken
ParticipantOn the back end you can delete the phone & address since those are text fields. But you cannot clear the dropdowns (ie country and state).
If country or state is not set on the initial creation of the venue you are ok, but you can’t reset it after it has be published.
does that make sense? I am barely following along 🙂
Ken
ParticipantThe above solution worked to change the link to edit the venue instead of the event.
Ken
ParticipantIts not a deal breaker right now I think I’ll hold out for the update in a couple weeks.
I also came across an bug where if there was no events for the venue then the “edit” link at the bottom of the page (after the venue meta is displayed) would take you to the edit page for the venue.
But if there was a couple events with that venue the “edit” link (now displayed after the last event) took you to the edit page for the last event in the list.
I added this code:
wp_reset_postdata(); // reset the post data so that you can edit the venue and not the last event for this venue.After the last
endif;in the single-venue.php fileKen
ParticipantHAHA so true Rob.
I think that I am good on this for now. I appreciate the attention to my issue.
Thanks
KenKen
ParticipantHi Guys, it appears I was struggling with the definition of what a ‘single event’ was. I was thinking that it was the actual event lading page (the page that is rendered by single.php).
I then started testing the re-occurring days on the back end and then noticed the “See All” for the “Schedule” section on the front end. Clicking that “See All” link took me to the Single Event page.
Single event being the ‘list’ of all the re-occuring dates for that event.
Now I know and knowing is half the battle. LOL
Ken
ParticipantI noticed a small bug/issue in regards venues.
When you create a new venue and you do not place address information in (lets say you don’t have it yet) there is no problem. using if (tribe_address_exists( get_the_ID() ) ) : nothing is displayed on the front end with that conditional statement.
But lets say that you create a venue and you give it a country (Say U.S.) and then the drop down is populated for State ( and you do not choose a state ) if you update the post US appears in the address area on the frontend using the above code… Like it should.
However if the user wants to go back and edit it so that there is no address again (so that no information appears on the frontend) you cannot de-select the country. Likewise if a state was chosen you cannot deselect a state since that dropdown on the admin side is triggered by the country selection that can’t be deselected.
I know that this is a extremely rare occurance and a workaround would be to create a new venue again. But if there are multiple events linked to the original venue, creating a new venue then having to re-link all the events could be a nightmare. Is there an easier way to “reset” the address info..other than going into the database?
Ken
ParticipantNope I had tribe_has_venue() LOL thanks for pointing that out.
First I check:
if (tribe_is_venue() )Then the next is:
if (tribe_is_multiday() || !tribe_get_all_day() && !tribe_is_venue())Seems to do the trick.
Ken
ParticipantOK that makes sense. But I was placing this in ecp-page-template.php when the single event occurs the ecp-single-template.php takes over and renders the title right?
Everything right now seems to be working ok…I am just wondering if I need that single event check since it is being rendered in the ecp-single-template.php file.
-
AuthorPosts
