Customizing Official Tweet Button
-
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 https://a.bc/def (via @mytwittername)”How can I do this?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Customizing Official Tweet Button’ is closed to new replies.