Support » Plugin: Wp2BB » WP2BB Additional Function(s)

  • Resolved makingtrails


    In the Topic message text for posts section there are a few shortcodes where you can enter in the post text {$post}, the title {$title} and the url {$purl}. It is possible we can create new ones? As I am using featured images in my posts and would like them to be copied over to my phpBB forum aswell. The code is <?php the_post_thumbnail(); ?>, would be grateful if someone could tell me how I can add it in



Viewing 2 replies - 1 through 2 (of 2 total)
  • *bump*

    Figured out the solution for this. :

    To enable the function $featuredimage

    Add this to line 293 of wp2bb.php

    $featuredimage = get_the_post_thumbnail();

    And then add this to line 324

    $replacedtext = str_replace('{$featuredimage}', $featuredimage, $replacedtext);

    This would probably work for any other functions that you wish to import across to PHPBB also

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WP2BB Additional Function(s)’ is closed to new replies.