Quantcast
Channel: WordPress.org Forums » [Yoast SEO - Advanced SEO with real-time guidance and built-in AI] Support
Viewing all articles
Browse latest Browse all 42467

Rajavenkateshwaran on "[Plugin: WordPress SEO by Yoast] Using Yoast variables in a template file"

$
0
0

Am trying to create a share button for individual posts, i tried to this script and it doesn't fetch the actual URL while sharing. Do you have any suggestions on using Yoast variables inside template

<a class="snippet-facebook snippet-share" href="javascript:void(0)" onclick="facebook('<strong>http://www.dreamstopixels.com/%postname%/</strong>', 'Cookbooks', 'Easy JavaScript', '<?php echo $url ?>');"></a>

http://wordpress.org/extend/plugins/wordpress-seo/


Viewing all articles
Browse latest Browse all 42467

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>