Peter (@pgmarco)

Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)

  • Peter
    Participant

    @pgmarco

    I was able to fix this by using the following code:

    <?php if ( is_user_logged_in() ) { ?>
    
    <?php if ( bbp_show_lead_topic() ) : ?>
    		 
    <?php bbp_get_template_part( 'content', 'single-topic-lead' );	?>
                    			 
    <?php endif; ?>
    
    <?php } else { ?>
    					 
    <?php bbp_get_template_part( 'content', 'single-topic-lead' );	?>
                    			 		
    <?php } ?>

    Peter
    Participant

    @pgmarco

    I edited content-single-topic.php and removed the ‘<?php if ( bbp_show_lead_topic() ) : ?>
    <?php endif; ?>` The post shows up when I click on the topic, but now if I login and click a topic the post displays twice. I am also using a child theme so I wont break anything.

    What I had before:

    <?php if ( bbp_show_lead_topic() ) : ?>
    
    <?php bbp_get_template_part( 'content', 'single-topic-lead' ); ?>
    
    <?php endif; ?>

    Hope this helps


    Peter
    Participant

    @pgmarco

    All the forums are set to public, but still can not read the topics when I click on them, could a plugin be causing this problem?


    Peter
    Participant

    @pgmarco

    I found a way to edit it with the s2member plugin.

    https://wordpress.org/extend/plugins/s2member/

Viewing 4 replies - 1 through 4 (of 4 total)