• Resolved darksilence

    (@darksilence1990)


    Dear Wise Chat,
    I want my Blog to generate new UNIQUE chat room below every blog posts

    Blogchat or FCCchat used to have this feature but now they dont exist anymore

    Can you create such functionality for me, I dont want to use Short-code manually for each posts.

    • This topic was modified 8 years, 9 months ago by darksilence.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Marcin

    (@marcinlawrowski)

    Hello,

    Please put the following code to your theme’s functions.php file:

    
    function add_wise_chat_to_posts( $content ) {
    	global $post;
    	if( ! $post instanceof WP_Post ) return $content;
    
    	switch( $post->post_type ) {
    	case 'post':
    		return $content . '[wise-chat channel="Channel for post #'.$post->ID.'"]';
    	default:
    		return $content;
    	}
    }
    add_filter( 'the_content', 'add_wise_chat_to_posts' );
    

    This will append Wise Chat to every post.

    Marcin

    Thread Starter darksilence

    (@darksilence1990)

    Thank you, Wise Chat Team for this wonderful Update,

    I will buy your Pro version, will this function still work?!
    Thank you, so so much.

    Let my internal work finish you will get a new client.

    🙂 apart from all the chat plugins I used, your one was most preferable one. And fits every desire! ONLY one in this whole domain.

    Keep up the good work, for people like you we bloggers are able to dream. May God bless you. 🙂

    Plugin Author Marcin

    (@marcinlawrowski)

    Thank you:)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Automatic Wise Chat Integration for Each blog Posts’ is closed to new replies.