Hi there, i created a custom page template that displays different data based on the parameters in the URL, and im trying to alter the post id that wpdiscuz saves to.
For example, the page is .../Music/Artists/?ArtistID=150&Album=5
The problem im having is that the same comments thread is showing for all artists and albums, because its using the post id for the /Music/Artists/ page - i see this in the admin comments section.
My approach:
I created a custom post with wp_insert_post, titled "Album Discussions - (ArtistName/AlbumName)" with MusicThreads as the type. That generates a Post ID that i can save the comment thread to.
I've added MusicThreads to the default form in wpdiscuz settings.
The question i have is how can i call a wpdiscuz comment section and point it to the new post id instead of the page's post id?
Thank you so much for your time, expertise and assistance!
Hi,
Please note that wpDiscuz works with the global post. Before displaying the page, it requires modifying the global post.
Hello, i spent quite a bit of time before posting here trying to modify the global post with the alternate post id, calling comments_template(), and then reverting the global post, but that did not work. I even tried modifying the global wpquery.
Modifying the global post did however work when i disabled commenting on the page, but it displayed the generic wp comment system and not wpdiscuz, so that led me here to see if someone with the inside scoop could help pinpoint a filter or something to override the post with.
I was also wondering if it was maybe something to do with the caching features? I dont know where to start with that though.
I'm ok with pro support reaching out too if required.
Thanks!