Forums

Join
bbPress Support ForumsThemesBBPress 2.0: How to use shortcodes?

Info

Tags

BBPress 2.0: How to use shortcodes?

  1. Hello,

    I have searched both here and on WordPress.org for how to use shortcodes and still can't seem to get it right.

    I have a custom WordPress theme that is based on the stock twenty-eleven theme. I have created a child theme in order to add styling for my BBPress forum.

    I'm hoping to mimic a style similar to the forums here on bbpress.org with the forum listings on the side. Am I correct this can be accomplished? If so, where do I include the shortcodes?

    Thank you in advance. Any help is greatly appreciated.

  2. Shortcodes go in a page, but you can also use them in themes and plugins using the <?php echo do_shortcode( $content ); ?> function.

    http://codex.wordpress.org/Function_Reference/do_shortcode

    So in your theme you would put this somewhere:
    <?php echo do_shortcode('[bbp-forum-index]'); ?>

  3. Great. Thank you for your quick reply!

  4. Awesome !

    Thanks hscoder
    really useful links

    best wishes
    _____________________________
    "I recently learned something quite interesting about video games. Many young people have developed incredible hand, eye, and brain coordination in playing these games. The air force believes these kids will be our outstanding pilots should they fly our jets."

  5. You must log in to post.