Skip to:
Content
Pages
Categories
Search
Top
Bottom

Twitter and loop-single-reply.php – Can't make the counter work


  • Rami
    Participant

    @ramirocastro

    I’m trying to add a Twitter share button in the loop-single-reply.php so the button appears before each reply’s content:

    …….
    <?php do_action( ‘bbp_theme_before_reply_content’ ); ?>
    **** [HERE the twitter share button code] *****
    <?php bbp_reply_content(); ?>
    ……….

    using the Twitter data-url parameter as: data-counturl=”<?php echo bbp_get_reply_url(); ?>

    PROBLEM=SHARE WORKS+COUNTER DOESN’T: The button is sharing the page but not COUNTING. I tried to check everything around the twitter button, but I want to ask for your help in case the place and data-counturl is not correct for BBPRESS.

    Please help!

    Thanks
    Ramiro.

Viewing 1 replies (of 1 total)

  • Rami
    Participant

    @ramirocastro

    PROGRESS:

    I updated the data-url to a standard page (such as /about-us/ ) and the counter works.

    In conclusion, i believe it may be the # character in the replies url (e.g. #post-234) that could somehow conflict with Twitter.

    If anybody knows about it, please any help would be appreciate, if not, I will try to explore a solution and post it here for everyone to see.

    Cheers from London.
    Ramiro.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar