Forum Replies Created
-
AuthorPosts
-
February 9, 2012 at 1:58 pm in reply to: Displaying Custom Field Attributes on Frontend in Custom Template File #14962
moderntribe
ParticipantHi, Ken!
I think I figured it out. The current version of the plugin is not stripping the values of their newlines/carriage returns (which is how you make the list of list items in the admin). You should be able to use comparison operators as follows (if my testing is correct):
$my_dur = 'none\r\n';if (tribe_get_custom_field('Duration') != $my_dur):
Alternatively, you could edit events-calendar-pro/admin-views/event-meta where the line reads:
and make it read:
Let me know if either solution works for you. Good luck!
– Paul
moderntribe
ParticipantThat’s my current code. Could you post yours and I’ll double-check that they’re identical? Interestingly, my environment is defaulting to post_date not menu_order like yours is (and orderby => ‘title’ fixed that at my end). I just want to make sure I’m working verbatim from your current code so I can recreate your problem “correctly.” 😉
moderntribe
ParticipantTry using ‘orderby’ instead of ‘order_by’. This solved the problem for me. Let me know if it works for you!
moderntribe
ParticipantJason, I’m still unsure what the problem is that you’re experiencing. Originally I was thinking that you were unable to retrieve the event ‘tom-thumb-lavinia-warren-contest’, but I know see that that event is displaying on the page. Clearly though, it was my mistake, as there is still something wrong. I’m just a little confused as to *what* is the remaining problem (and I’m terribly sorry for my misunderstanding!). Is there a chance you could just re-write what the problem is that you’re experiencing so that I can try and figure it out for you? Again, sorry for my confusion, I’ve escalated this to one of my personal priorities, and I just want to be able to help. Thanks a lot!
moderntribe
ParticipantThanks a lot for pointing this out. WIll be fixed in 2.1.
moderntribe
ParticipantNo, there doesn’t seem to be anything out of the ordinary there. I’m examining Contact Form 7, the other main plugin active on that page, to see if it might be having an effect on the title. If you want you can try deactivating that plugin and seeing if it has an effect (although I’m trying to recreate the problem as we speak). Don’t worry, we’ll get to the bottom of this.
moderntribe
ParticipantHi, Joe; so I tried (unsuccessfully) to recreate your problem, and then pored over all our code that manages the page title, and couldn’t find anything that seemed amiss. Of course, it is still a possibility, but I have another theory that it might be a weirdness with the actual theme you’re using/created (my guess is in the header.php file). Does that seem possible at all? If not, I’ll continue to try and figure out our end, though, like Rob said, the problem is quite perplexing. Let us know!
-
AuthorPosts
