add a link to discussion
-
Hi,
I would like to add some content, a link, in the first created topic in a discussion. (just like this is the first in this discussion)This link should link to a page with an overview showing all the blogs that this specific user has created, that are related to the topic.
I use this blog : https://www.buddyboss.com/product/buddypress-user-blog/So this link should only be visible if the user has created blogs related to this topic.
Next step is to have a “Create_New_Post” link (only visible for the specific user) above
the other link. This way i can relate this specific discussion to the blogs created.
This link will link to the page where users can create a new post.I think this will find out if the specific user has created blogs :
$ids = $wpdb->get_col( $wpdb->prepare( “SELECT id FROM $wpdb->posts WHERE post_author = $userid && post_type = topic && post_status = publish”, $term_id ) );
But i have to add some request if these blog posts should be related to a specific discussion.If someone can give me ideas to make some function to do this, i will be very happy 🙂
Michael
- You must be logged in to reply to this topic.