Viewing 4 replies - 1 through 4 (of 4 total)
  • This is an interesting point, Radovan. Let me check with our developer Jonah on this (who would understand the implications here better) and get him to take a look. If it looks doable and makes sense from a technical standpoint we’d happily incorporate it.

    I’ll have Jonah respond with any follow-ups. Thanks for the tip.

    Hi Radovan,

    What code in particular are you referencing in our plugin? File name and line number would be helpful ??

    Thanks,
    – Jonah

    Thread Starter Radovan Smitala

    (@adorei)

    Hi,

    every loop in theme:
    table.php, table-mini.php, ecp-page.php, ecp-single.php, and so on.

    For example in table.php before ending php tag you must add:

    wp_reset_query();
    wp_reset_postdata();

    because if i have for example another query (for post_type, category posts, etc) at the start of page. i call method the_post() in begining. post are initialized.
    I place the_title() in the header. Meanwhile is called event calendar. That is another query and is initialized with the_post(). Now is whole post overwrites with calendar query. Calendar is showed with classic WordPress template tags.
    AND NOW IS PROBLEM:
    When i want to put some information from before query (parent query), i can’t, because calendar query is not cleared (reset) and still have overwrited template tags.

    Hey Radovan,

    Ok, I gotcha. I’m not sure about this myself and need to have another developer take a look. Stay tuned ??

    – Jonah

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: The Events Calendar] Break current query / Reset query events’ is closed to new replies.