WordPress.org

Forums

Wp2BB
[resolved] WP2BB Additional Function(s) (3 posts)

  1. makingtrails
    Member
    Posted 3 years ago #

    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

    Thanks

    J

  2. makingtrails
    Member
    Posted 3 years ago #

    *bump*

  3. makingtrails
    Member
    Posted 3 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Wp2BB
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags