Viewing 4 replies - 1 through 4 (of 4 total)
  • Hey sangil,

    I see what you mean! I traced this out and it looks like the backslashes are in place until this plugin hands off the content to bbPress. They are ultimately taken off when the new topic is made, when WP runs stripslashes on the content.

    I can addslashes before sending the content along, but I want to do some testing and make sure that doesn’t cause any issues. In the meantime, you can put a snippet like the following in your theme’s functions.php file to accomplish the same thing:

    add_filter( 'bbppt_topic_content', 'addslashes' );

    Let me know how this works for you!

    Thread Starter sangil

    (@sangil)

    Hello?

    Unfortunately, after adding “add_filter” to the functions.php into the child theme,
    the contents are not copied at all.
    Any suggestions?

    …/wp-content/themes/twentyeleven-child$ more functions.php
    <?php
    add_filter( ‘bbppt_topic_content’, ‘addslashes’ );
    ?>

    Thread Starter sangil

    (@sangil)

    Oops… Please ignore my previous reply.
    Your suggestion works! (I forgot the fact that during experiment I removed the format string in the admin menu..)

    I made a child theme with the above functions.php
    and now it works.

    Whew! You had me going there for a minute. ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: bbPress Topics for Posts] Mathjax equations in the post’ is closed to new replies.