Introducir codigo en paginacion de posts
-
Hola, llevo días con dolor de cabeza intentando de poner un código de google consumer surveys en la paginación de cada posts, de tal manera que al responder la encuesta esta libere la numeración para darle continuar la segunda o tercera parte del post.
Mi tema es MH-Squared-Lite y el lugar donde descubrí la configuración de la paginación en posts archivo: ‘mh-custom-functions.php’, el código por default es este:if (!function_exists(‘mh_squared_lite_posts_pagination’)) {
function mh_squared_lite_posts_pagination($content) {
if (is_singular() && is_main_query()) {
$content .= wp_link_pages(array(‘before’ => ‘<div class=’pagination clear’>’, ‘after’ => ‘</div>’, ‘link_before’ => ‘<span class=’pagelink’>’, ‘link_after’ => ‘</span>’, ‘nextpagelink’ => __(‘»’, ‘mh-squared-lite’), ‘previouspagelink’ => __(‘«’, ‘mh-squared-lite’), ‘pagelink’ => ‘%’, ‘echo’ => 0));
}
return $content;
}
}
add_filter(‘the_content’, ‘mh_squared_lite_posts_pagination’, 1);Y quisiera que quedara envuelto en este código que me proporciona google.
<div class=’p402_premium’>
<!– YOUR PREMIUM CONTENT HERE –>
</div>
<script type=’text/javascript’>
try { _402_Show(); } catch(e) {}
</script>Pero cada vez que hago un intento me salen errores, no encuentro como. Ayuda por favor
The blog I need help with is: (visible only to logged in users)
-
This is the English support forum. To get help and instructions in your language post to Español (Spanish): http://es.forums.wordpress.com
-
Hi, how are you?
I’ve translated your question on google translator and I’ll respond to you in English, ok?
Unfortunately you not able to use javascript on WordPress.com sites. For more information please check the link below:
Regards.
-
@danielancines
I also use Google translate. However, our colleagues in the other support forums https://en.forums.wordpress.com/topic/forums-in-other-languages-not-english?replies=1 are best suited to answering questions that are not in English. -
-
- The topic ‘Introducir codigo en paginacion de posts’ is closed to new replies.