Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter hlam

    (@hlam)

    Will you please show me where I can add the code into the post loop?
    This is my index.php:
    <div id=”pageheader” class=”titleclass”>
    <div class=”container”>
    <?php get_template_part(‘templates/page’, ‘header’); ?>
    </div><!–container–>
    </div><!–titleclass–>

    <div id=”content” class=”container”>
    <div class=”row”>
    <div class=”main <?php echo esc_attr(kadence_main_class()); ?> postlist” role=”main”>

    <?php if (!have_posts()) : ?>
    <div class=”alert”>
    <?php _e(‘Sorry, no results were found.’, ‘virtue’); ?>
    </div>
    <?php get_search_form(); ?>
    <?php endif; ?>

    <?php while (have_posts()) : the_post(); ?>
    <?php get_template_part(‘templates/content’, get_post_format()); ?>
    <?php endwhile; ?>

    <?php //Page Navigation
    if ($wp_query->max_num_pages > 1) :
    virtue_wp_pagenav();
    endif; ?>

    </div><!– /.main –>

    Plugin Author r-a-y

    (@r-a-y)

    The plugin doesn’t add a follow button on WP pages by default.

    You can check out this wiki page for an idea of how to do it:
    https://github.com/r-a-y/buddypress-followers/wiki/Add-a-follow-button-on-a-regular-WP-page

    Thread Starter hlam

    (@hlam)

    Hi r-a-y, thank you for your comment.
    Is the index file the right place to enhance the post loop?
    In the index file above, where should I put this code in?
    Thanks for help, I’m very new in wp ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Missing Follow button on post page’ is closed to new replies.