Ayuda con Jquery y Php
-
Hola amigos tengo este código que corre en una pagina de wp con el plugin que acepta php en los post.
No logo que las variables tengan algún valor, aparecen vacías con este código.
===========================================================<script>
$(document).ready(function () {
$(‘.ex1’).ringShare({
sharelink: ‘<?php get_the_title(); ?>’,
sharetitle: ‘<?php get_the_title(); ?>’,
sharedesc: ‘<?php get_the_title(); ?>’,
pinmedia: ‘<?php catch_that_image(); ?>’,
tweetvia: ‘@dontlolme’,
sharesource: ‘http://www.dontlolme.com’,
rsslink: ‘http://feeds.feedburner.com/Dontlolme’,
services: {
‘facebook’: ‘https://www.facebook.com/sharer/sharer.php?u={sharelink}&title={sharetitle}’,
‘twitter’: ‘http://twitter.com/home/?status={sharetitle}+{sharelink} {tweetvia}’,
‘StumbleUpon’: ‘http://www.stumbleupon.com/submit?url={sharelink}&title={sharetitle}’,
‘digg’: ‘http://digg.com/submit?phase=2&url={sharelink}&title={sharetitle}’,
‘linkedin’: ‘http://www.linkedin.com/shareArticle?mini=true&url={sharelink}&title={sharetitle}&source={sharesource}’,
‘delicious’: ‘http://del.icio.us/post?url={sharelink}&title={sharetitle}¬es={sharedesc}’,
‘myspace’: ‘http://www.myspace.com/Modules/PostTo/Pages/?u={sharelink}&title={sharetitle}’,
‘bebo’: ‘http://www.bebo.com/c/share?Url={sharelink}&title={sharetitle}’,
‘gplus’: ‘https://plus.google.com/share?url={sharelink}’,
‘pinterest’: ‘http://pinterest.com/pin/create/button/?url={sharelink}&media={pinmedia}’,
‘technorati’: ‘http://technorati.com/faves?add={sharelink}&title={sharetitle}’,
‘posterous’: ‘http://posterous.com/share?linkto={sharelink}’,
‘tumblr’: ‘http://www.tumblr.com/share?v=3&u={sharelink}&title={sharetitle}’,
‘reddit’: ‘http://www.reddit.com/submit?url={sharelink}&title={sharetitle}’
}
});
})
</script>===========================================================
- El debate ‘Ayuda con Jquery y Php’ está cerrado a nuevas respuestas.