Hi everyone,
I need to include a #hashtag in the content of tweet, so I used a custom field to try achieve this.
My custom code looked like this:
<a href="https://twitter.com/share" class="twitter-share-button" data-lang="pt_BR" data-url="<?php echo get_permalink(); ?>" data-via="variavel5" data-count="vertical" data-text="Participe do projeto <?php the_title(); ?> #<?php echo get_post_meta($post->ID, 'hashtag', true); ?>">Tweetar</a>
But the rendered content did not process the php tags, like this:
Participe do projeto <?php the_title(); ?> #<?php echo get_post_meta($post->ID, ‘hashtag’, true); ?> via @variavel5
Anyone please help me how can I do this?
Thanks in advance.