Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to customize reply insert format in specific forum?

  • @sub0810

    Participant

    Topic insert format in specific forum can change using following code.
    For example, Forum post=1000,1300

      if( is_single(1000) ){  
            echo 'Baseball rule';     
            return;
       }elseif( is_single(1300) ) {           
            echo 'Football rule';     
            return;
        }
    

    Then how can I customize reply insert format in specific forum?
    For example, Forum post=1000,1300

    ‘reply insert format’ in content-single-topic.php .

Viewing 3 replies - 1 through 3 (of 3 total)
  • @robin-w

    Moderator

    if the reply is 1500 and the topic it belongs to 1000 then

    $reply_topic_id = bbp_get_reply_topic_id(1500)
    if( $reply_topic_id == 1000 ){  
            echo 'Baseball rule';     
            return;

    @sub0810

    Participant

    Thank you for your advice.

    Your code works well.

    I do appreciate it every time.

    @robin-w

    Moderator

    🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar