Skip to:
Content
Pages
Categories
Search
Top
Bottom

Error on “Layout and functionality” page


  • bhkh
    Participant

    @bhkh

    Layout and functionality – Examples you can use

    In #16 the code says this:

    //filter to add description after forums titles on forum index
    function rw_singleforum_description() {
      echo '<div class="bbp-forum-content">';
      echo bbp_forum_content();
      echo '</div>';
    }
    add_action( 'bbp_template_before_single_forum' , 'rw_singleforum_description');

    But I believe it should be:

    function rw_singleforum_description() {
      echo '<div class="bbp-forum-content">';
      echo bbp_forum_content();
      echo '</div>';
    }
    add_action( 'bbp_template_before_single_forum' , 'rw_singleforum_description');

    The first code causes the html to display on the front end.

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

  • Robin W
    Moderator

    @robin-w

    ok, I’ve just run the above through an online difference checker and it says no difference 🙂


    bhkh
    Participant

    @bhkh

    ¯\_(ツ)_/¯

    I don’t know. For sure the second one works for me. Was there a reason the characters were escaped, or whatever that is called? Certianly it’s more human readable just using the < >s.

    Thanks for checking, though.

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