WordPress.org

Ready to get started?Download WordPress

Forums

Customizing Official Tweet Button (4 posts)

  1. cozbaldwin
    Member
    Posted 3 years ago #

    Hello, so it's very simple to add the Twitter official tweet button where I want it. And of course, for Tweet Text we should be using: <?php the_title(); ?> and <?php the_permalink(); ?> as the URL -- and that all works fine.

    But I'm looking for a way to have the text be the title and then the category (preferably as a hash tag...) before the URL. However, my php skills prevent me from being able to accomplish this.

    Instinct tells me it should be
    <?php the_title(); ?> #<?php the_category(','); ?>
    But that doesn't work.

    If it's not clear, I want the output to be:
    "Review of New Record By The Beatles #reviews http://a.bc/def (via @mytwittername)"

    How can I do this?

  2. cozbaldwin
    Member
    Posted 3 years ago #

    It can't be THAT hard, could it?

  3. cozbaldwin
    Member
    Posted 3 years ago #

    please help?

  4. cozbaldwin
    Member
    Posted 3 years ago #

    ....Really??

Topic Closed

This topic has been closed to new replies.

About this Topic