raja123a (@raja123a)

Forum Replies Created

Viewing 1 replies (of 1 total)

  • raja123a
    Participant

    @raja123a

    @egyptimhotep
    Forum title remains numeric

    Below is the code in single.php

    <?php if ( have_posts() ) : ?>
    	<?php while ( have_posts() ) : the_post(); ?>    
    	
    		<div class="article">
    			<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>			
    			<?php the_content(); ?>	
    			<h2>Forum: <?php echo basename(get_permalink()); ?></h2>
    			<?php 
    			$post = get_post(get_the_ID());
    			$mypost = get_page_by_title(get_the_ID(),OBJECT,'forum');
    			echo do_shortcode( '[bbp-single-forum id='.$mypost->ID.']' ); ?>
    		</div>
    
    	<?php endwhile; ?>
    <?php endif; ?>

    It would be great if you could help me find, where i made a mistake 🙂

Viewing 1 replies (of 1 total)