Shortcode on the page php
How to make a page conclusion shortcode bbp-single-forum using custom fields?
I created a custom field ‘idbbp’, found ID single topic.
On the page posted the following code:
<?php $idbbp = get_post_meta($post->ID, 'idbbp', true); $forum_id = bbpress()->current_forum_id = $idbbp; echo( bbpress()->shortcodes->display_forum($forum_id)); ?>
but it does not work for me. Tell me please what I did wrong.
- You must be logged in to reply to this topic.