heena1
Forum Replies Created
-
It’s work. Thanks
Okey. Thank you…
Hello,
Thanks for help. It is worked.
It is that i exactly i need.
I changed plugin file that you mention above.
Thank you..Ok I will check it tomorrow then let you know.
Thanks
[Forum forum='”.php dynamic id variable.”‘]
I already ask you that in backend side work perfectly but I need to use in template file.
I used latest WordPress.
Because I need to use dynamic forum id to pass into shortcode.
But I need to use in template file with dynamic forum id.
So, I can’t use back end functionalityI used buddypress plugin also. So, is this affected ?
See this code that i write into template file with get_header() and get_footer()
<div id=”primary” class=”content-area”>
<main id=”main” class=”site-main” role=”main”>
<article id=”post-<?php the_ID(); ?>” <?php post_class(); ?>><?php get_sidebar(); ?>
<header class=”entry-header”>
<?php the_title( ‘<h1 class=”entry-title”>’, ‘</h1>’ ); ?>
</header><!– .entry-header –><div class=”entry-content”>
<?php
echo do_shortcode(‘[forum forum=”29″]’);
?>
</div><!– .entry-content –><?php
edit_post_link(
sprintf(
/* translators: %s: Name of current post */
__( ‘Edit<span class=”screen-reader-text”> “%s”</span>’, ‘twentysixteen’ ),
get_the_title()
),
‘<footer class=”entry-footer”><span class=”edit-link”>’,
‘</span></footer><!– .entry-footer –>’
);
?></article>
</main><!– .site-main –>
</div><!– .content-area –>
I not use the_content() function into this template
- This reply was modified 5 years, 5 months ago by heena1.
Please check with twentysixteen-child theme in template file.
Because i user twentysixteen-child themeAnd yes i write this shortcode into
<div id=”primary” class=”content-area”>
areaI added shortcode into “entry-content” division into article tag.
But [forum forum=”29″] not working. And it is display all forums data.
But i need to forum by id.