bbPress

Simple, Fast, Elegant

bbPress support forums » Requests and Feedback

including templates and template fragments

(2 posts)
  • Started 2 years ago by ear1grey
  • Latest reply from mdawaffe
  1. The topic-tags.php template is being explicitly included through the topic_tags() method of template-functions(), so replacing it in my-templates has no effect.

    This makes me wonder if, generally, a bb_include and bb_require method could be used for all includes which would check the template system before resorting to a default folder.

    this could possibly replace the oft repeated:
    if (file_exists( BBPATH . 'my-templates/whatever.php' ))
    require( BBPATH . 'my-templates/whatever.php' );
    else require( BBPATH . 'bb-templates/whatever.php' );

    I thought it worth mentioning because theme developers might find it useful from the outset.

    Posted 2 years ago #
  2. This will be fixed in the next release of bbPress. Thanks!

    Posted 2 years ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.