Home › Forums › Calendar Products › Events Calendar PRO › Templating Problems yet again
- This topic has 20 replies, 5 voices, and was last updated 10 years, 9 months ago by
Support Droid.
-
AuthorPosts
-
January 11, 2012 at 1:07 pm #13218
Jason
ParticipantStarting to get a little annoyed that the “PRO” event calendar that we purchased doesn’t seem to be of “PRO” quality. I hate to complain but could have built one with pods with little effort and in less time it’s taken me to troubleshoot these templating issues.
At any rate….
http://www.barnumfestival.com.php5-19.dfw1-2.websitetestlink.com/events
I was originally getting some wonky results, so i cleared the template of everything except the loop. Inside the loop is one function that outputs the ID of that post.
The problem is that the 1 event that is in the system, is in the future, is not being displayed. However, I am getting 1 event returned, without an ID. This happened to me before and was a result of some funky way of exporting wp_query using a singleton method.
Here is the link to the 1 event that’s in the system:
ecp-page-template : http://pastebin.com/99GqzJRm
list.php : http://pastebin.com/bwu4SqP7Please let me know if there is any other code you need.
January 11, 2012 at 6:50 pm #13236Rob
MemberHi Jason. Thanks for the note, and sorry to hear you’re having issues. We do expect that people using this plugin will have some WordPress development knowledge and will be willing to do some customization if they’re integrating it into a custom environment.
That being said, nothing should be so complex that it frustrates you and we’re happy to do what we can to help. I think what you’ve provided here so far should give us what we need to look into this. I’ll get Jonah to take a look, and can bring additional devs in as needed from there. We’ll do what we can to work through this with you and if there’s a bug in the code here will make sure to get it patched for 2.1. I apologize again from all of us for the inconveniences you face in the interim.
January 12, 2012 at 11:52 am #13278Jonah
ParticipantHey Jason, try using get_the_ID() instead. I don’t think you can echo functions that return data.
January 12, 2012 at 12:00 pm #13281Jason
Participantno dice here,
updated page output: http://www.barnumfestival.com.php5-19.dfw1-2.websitetestlink.com/events/
updated code : http://pastebin.com/JrZpsJdx
January 12, 2012 at 12:04 pm #13283Jonah
ParticipantWeird, it’s working for me using the Genesis theme. I simply copied in your code into my list.php template file. echoing $post->ID doesn’t work and I’m not sure why not but echoing get_the_ID() works… Let me get someone else to take a quick look at this.
January 12, 2012 at 12:36 pm #13292Rob
MemberThanks for taking a look Jonah. From what I can tell this is an issue specific to your setup, Jason, likely related to the theme or another plugin. We’ll get another dev to take a look but no guarantees that they’ll be able to identify what’s up. Fingers crossed…
January 13, 2012 at 11:25 am #13343Jason
ParticipantStill can’t seem to overcome templating issues on list.php page after changing to a custom loop using wp_query.
http://www.barnumfestival.com.php5-19.dfw1-2.websitetestlink.com/events/ (should show events in alphabetical order)
http://www.barnumfestival.com.php5-19.dfw1-2.websitetestlink.com/events/upcoming (should show events in chronological order automatically leaving expired/past events off the list)
Code of list.php here : http://pastebin.com/5S3G5FMN
The query $args are being dumped into wp_query fine, but for some reason wp_query is executing a totally unrelated SQL query. Not sure what you guys are doing in the background.
January 13, 2012 at 7:00 pm #13363Rob
MemberThanks for the update, Jason. We reviewed this today with the dev team and are having trouble identifying what could be the cause here…but we’re still on it and actively discussing. Just a heads up so you know we’re working towards a resolution.
January 17, 2012 at 8:07 am #13492Jason
ParticipantI just got the project deadline on this from my Project Manager and I need a resolution or a refund by Friday, Jan 20 @ 3:00 EST. I have to deliver this to the client on Jan 23rd.
January 17, 2012 at 9:32 am #13502Jonah
ParticipantHey Jason, we’re all a little confused as to what the problem is right now. Looking at your link above we see that you’re spitting a bunch of code out for debug and then there are events listed below that. What exactly is the problem now?
January 17, 2012 at 10:10 am #13505Jason
ParticipantJonah,
The first var_dump is the $args array being passed to wp_query. The 2nd var_dump is the actual wp_query object after args are passed, showing that the SQL query being run by wp_query is completely different and not affected by the wp_query arguments passed to it. Not sure what TEC plugin is doing behind the scenes to modify wp_query, but i’m not using any of the TEC template tags to generate the loop, i’m using strictly wordpress functions and somehow TEC is still interfering.
The loop.php code that is dumping the debug info is posted to pastebin above.
January 17, 2012 at 4:48 pm #13533Rob
MemberThanks for confirming, Jason – I believe this gives us what we need to know. We’re obviously still looking into it but will keep you posted as to what we hear back.
January 19, 2012 at 6:11 am #13610Jason
Participantjust wondering if there has been any update on this, i have to give an internal review of the finished project by tomorrow @ 3pm!!
January 19, 2012 at 10:00 am #13618moderntribe
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!
January 19, 2012 at 10:08 am #13619Jason
ParticipantPaul,
If you look at the bottom of the page (http://www.barnumfestival.com.php5-19.dfw1-2.websitetestlink.com/events/) you’ll see the events are coming out in a list.
But if you look at the query $args at the top of the page, you’ll notice that they should be ordered by title in ASC order.
They’re not ordered correctly.
the SQL in the 2nd var_dump shows wp_query is ignoring the query args for a SQL statement set in your tribe-query-class.php
-
AuthorPosts
- The topic ‘Templating Problems yet again’ is closed to new replies.
