Search
Close
AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
Notifications
Clear all

Tricky situation with comment form not showing up when overriding post_data to dynamically call post based on user ID

4 Posts
2 Users
0 Reactions
2,748 Views
(@gunarcom)
Active Member
Joined: 7 years ago
Posts: 8
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
  [#3860]

So, I have wpDiscuz installed and it's working everywhere on my site like intended. Love the plugin. I have it enabled both single pages and on the custom post type that I am calling in with my setup_postdata(). But when I call in the post, the normal comment form shows up. Here is the code I am using to call the post object:

// Setup Post Object defined in users profile 
$post_object = get_field('club_membership_profile', 'user_'.get_current_user_id());
if( $post_object ):
// override $post
$post = $post_object;
setup_postdata( $post );

There is only one comment form on the page and the default comment template shows up / works just fine. But I would love to be able to have the wpDiscuz form override it.

I am not sure if I am explaining this clearly because I have been working on this for too long and my brain is kind of fried at this point. Let me know if you have any ideas that might help me accomplish my goal. I appreciate it. 



   
Quote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 8 years ago
Posts: 6645
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

Thank you @gunarcom,

Please provide us some example URLs with and without wpDiscuz comment forms to allow us to check it. 



   
ReplyQuote
(@gunarcom)
Active Member
Joined: 7 years ago
Posts: 8
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

@astghik - I sent an email to info@gvectors.com with login / password information to my site. The page I am asking about requires you to be logged in to see the content. 



   
ReplyQuote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 8 years ago
Posts: 6645
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

Thank you @gunarcom,

For further support we'll need feedbacks for the points mentioned in this post:

https://gvectors.com/forum/how-to-and-troubleshooting/resolved-wpdiscuz-comment-form-is-missing/#post-349

Please check the points and provide information for each one. 



   
ReplyQuote
Share:
Scroll to top