Skip to:
Content
Pages
Categories
Search
Top
Bottom

custom post type post follow


  • Saurabh Dwivedi
    Participant

    @saurabh-dwivedi

    i m using https://wordpress.org/plugins/buddypress-followers/
    and my code is
    <?php $args = array(‘post_type’ => user, ‘posts_per_page’ => ‘-1′);
    $loop = new WP_Query($args);
    while ($loop->have_posts()) : $loop->the_post(); ?>
    <div id=”col3_a”><span><h2>Follow</h2></span>
    <span><h2 class=”book_icon”>Bookmark</h2></span>
    <?php endwhile; ?>

    in this code follow button when user click on it that means user follow this post. also show how many post follow by this user and also get if a user post a post how many followers this post.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘custom post type post follow’ is closed to new replies.
Skip to toolbar