Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to like blog posts?

  • Avatar of Ali Erkurt
    Ali Erkurt
    Participant

    @alierkurt

    Hey guys! Thank you for this great plugin.

    I’m using the 0.0.8 version and it says you can like blog posts. I can do that via activity stream. Is there any other way to like it e.g. on the single post page? Do I need to add any code to single.php or somewhere else? I can’t see like button for the blog posts. Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Avatar of Ali Erkurt
    Ali Erkurt
    Participant

    @alierkurt

    no comment?

    Yes, I was wondering about that too. Is there an easy way to allow users to vote up/down blog entries, submitted links and sort them all by popularity, visits, etc?

    Avatar of ds123
    ds123
    Participant

    @ds123

    @hempsworth or anyone able to get this working on blog posts? @hempsworth could we possibly get a development version that has this feature?

    Avatar of ds123
    ds123
    Participant

    @ds123

    @alierkurt were you able to find a way to “like” blog posts?

    @ds123 – I’ve got blog post Liking on mine (ie. in single.php). It was there out of the box, and is still there. Initially installed about 4 months ago I think. The only edit I’ve made to it is to swap bp_before_blog_single_post for bp_after_blog_single_post in Line 841. I also commented out the css in Line 880 and supplied my own. It renders just below my div.author-box. In my wp-admin I only have one settings page for it. Am I right in thinking there was a second settings page (or did I imagine that…)? I only ask because a couple of other plugins I’ve engaged fell over at the last WP update and needed tweaks to display settings in wp-admin again.

    Avatar of blueinkalchemist
    BlueInkAlchemist
    Member

    @blueinkalchemist

    @aljuk – Does this function appear in the default BP single.php? I’m using a custom layout and BP-template-pack so I might need to do a bit of modification to the template’s single.php so users can ‘like’ individual posts outside of the activity stream…

    Apologies if I’m resurrecting an old thread.

    EDIT: Turns out this was super-simple. Just had to add <?php bp_like_button( get_the_ID(), ‘blogpost’ ); ?> to single.php in the custom template.

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

You must be logged in to reply to this topic.