Templating Problems yet again

Home Forums Calendar Products Events Calendar PRO Templating Problems yet again

Viewing 15 posts - 1 through 15 (of 21 total)
  • Author
    Posts
  • #13218
    Jason
    Participant

    Starting 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:

    http://www.barnumfestival.com.php5-19.dfw1-2.websitetestlink.com/event/tom-thumb-lavinia-warren-contest/

    ecp-page-template : http://pastebin.com/99GqzJRm
    list.php : http://pastebin.com/bwu4SqP7

    Please let me know if there is any other code you need.

    #13236
    Rob
    Member

    Hi 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.

    #13278
    Jonah
    Participant

    Hey Jason, try using get_the_ID() instead. I don’t think you can echo functions that return data.

    #13281
    Jason
    Participant
    #13283
    Jonah
    Participant

    Weird, 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.

    #13292
    Rob
    Member

    Thanks 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…

    #13343
    Jason
    Participant

    Still 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.

    #13363
    Rob
    Member

    Thanks 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.

    #13492
    Jason
    Participant

    I 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.

    #13502
    Jonah
    Participant

    Hey 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?

    #13505
    Jason
    Participant

    Jonah,

    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.

    #13533
    Rob
    Member

    Thanks 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.

    #13610
    Jason
    Participant

    just wondering if there has been any update on this, i have to give an internal review of the finished project by tomorrow @ 3pm!!

    #13618
    moderntribe
    Participant

    Jason, 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!

    #13619
    Jason
    Participant

    Paul,

    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

Viewing 15 posts - 1 through 15 (of 21 total)
  • The topic ‘Templating Problems yet again’ is closed to new replies.