Event Submission overwriting bottom Widget in Theme

Home Forums Calendar Products Community Events Event Submission overwriting bottom Widget in Theme

Viewing 15 posts - 1 through 15 (of 25 total)
  • Author
    Posts
  • #1011146
    karen
    Participant

    Can you please take a look at this.
    http://ge.tt/9I2OlBP2/v/0?c
    The submission success page is overwriting my widget post. Obviously if I revert to 2014 theme it will no longer be a problem.. 🙂
    I will contact the theme dev as well.
    thanks!
    karen

    #1011426
    Brian
    Member

    Hi Karen,

    I took a look at your image, but not sure what you mean.

    Can you provide some more details on what it should look like and instead what it does?

    Thanks

    #1011460
    karen
    Participant

    Indeed I can. the title of the post is there but the text of the post is missing and has been replaced with the text of the submission confirmation as above it.
    thanks!

    #1011665
    Brian
    Member

    Oh I see it now.

    I was not looking for that.

    It could be that after the submit the loop is not being reset so it still thinks the page is the id.

    See if adding this snippet to your theme’s functions.php resolves the issue:

    /*
    * Reset Post Data After Community Form
    * @version 1.0
    */
    add_action( 'tribe_events_community_form_after_template', 'tribe_reset_query_after_community' );
    function tribe_reset_query_after_community() {
    wp_reset_postdata();
    }

    If that does not work I have one other snippet to try after that if it still does not work that widget might have to be modified to directly use the id for the excerpt to get around this.

    Let me know.

    Thanks

    #1012620
    karen
    Participant

    Hi, that did not appear to have worked. Since this widget is random by category, I do not think that I can use the ID.
    ideas?

    #1012863
    Brian
    Member

    Hi,

    What about removing that other snippet and trying this:

    /*
    * Reset Post Data After Community Form
    * @version 1.0
    */
    add_action( 'tribe_events_community_form_after_template', 'tribe_reset_query_after_community_two' );
    function tribe_reset_query_after_community_two() {
    wp_reset_query();
    }

    If that does not help I am out of ideas unfortunately as I am not sure how that widget works.

    If you can provide any more details on it I might be able to help, but I am limited in fixing 3rd party coding conflicts.

    Thanks

    #1012866
    karen
    Participant

    I will try but I am caught in the middle here. the THEME dev wants more info from you guys and you want more info from the theme dev. ..

    #1013064
    Brian
    Member

    This reply is private.

    #1014711
    karen
    Participant

    HI Brian,
    The theme developer simply said that the widget simply shows what it is given. I cannot use an ID because the widget shows a random post from a particular category, in this case “useful-trivia” Does that help?
    karen

    #1014862
    Brian
    Member

    Not really. I am not sure how it works so if resetting the post data does not work then I do not have anything else for it.

    I looked at the coding and do not see why it would be picked up by the widget.

    What widget is this that does this? Is it a plugin I can download and test out? Or is it part of the theme?

    #1014975
    karen
    Participant

    I am afraid it is part of a Weaver Xtreme Plus.

    #1015135
    Brian
    Member

    This reply is private.

    #1015774
    karen
    Participant

    This reply is private.

    #1015809
    Brian
    Member

    Hi,

    What is the name of the widget that is doing this and can you list all the settings?

    I will take a look after that information and look at the coding, but after that I am not able to continue on theme compatibility issues per our term and conditions.

    #1016020
    karen
    Participant

    The widget is the Sitewide Bottom Widget and I am using the TEXT widget and creating a list of category posts.
    Show_posts_filter=”trivia” where trivia is a category list of the posts I want in this widget.
    It works on all other pages, just not the ones that are created on the fly.
    I understand your predicament. Perhaps someday I will find an answer.

Viewing 15 posts - 1 through 15 (of 25 total)
  • The topic ‘Event Submission overwriting bottom Widget in Theme’ is closed to new replies.