Home › Forums › Calendar Products › Community Events › Event Submission overwriting bottom Widget in Theme
- This topic has 24 replies, 2 voices, and was last updated 10 years, 5 months ago by
Brian.
-
AuthorPosts
-
October 3, 2015 at 5:43 am #1011146
karen
ParticipantCan 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!
karenOctober 5, 2015 at 7:00 am #1011426Brian
MemberHi 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
October 5, 2015 at 7:49 am #1011460karen
ParticipantIndeed 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!October 5, 2015 at 4:39 pm #1011665Brian
MemberOh 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
October 8, 2015 at 5:28 am #1012620karen
ParticipantHi, 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?October 8, 2015 at 2:28 pm #1012863Brian
MemberHi,
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
October 8, 2015 at 2:30 pm #1012866karen
ParticipantI 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. ..
October 9, 2015 at 7:02 am #1013064Brian
MemberThis reply is private.
October 14, 2015 at 5:06 pm #1014711karen
ParticipantHI 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?
karenOctober 15, 2015 at 7:00 am #1014862Brian
MemberNot 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?
October 15, 2015 at 9:25 am #1014975karen
ParticipantI am afraid it is part of a Weaver Xtreme Plus.
October 15, 2015 at 4:59 pm #1015135Brian
MemberThis reply is private.
October 19, 2015 at 5:50 am #1015774karen
ParticipantThis reply is private.
October 19, 2015 at 7:44 am #1015809Brian
MemberHi,
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.
October 19, 2015 at 4:37 pm #1016020karen
ParticipantThe 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. -
AuthorPosts
- The topic ‘Event Submission overwriting bottom Widget in Theme’ is closed to new replies.
