A
argondog
Alfa
¡Usuario con pocos negocios! ¡Utiliza siempre saldo de Forobeta!
🔒 Este tema está cerrado para nuevas respuestas.
⏰ Solo el creador del tema puede solicitar la reapertura de sus propios temas, pero únicamente dentro de los 60 días previos a la última actualización.
Amigo al ponerlo asi:
Me tira el siguiente error: Parse error: syntax error, unexpected $end in /home/somospel/public_html/wp-content/themes/somospelis-theme/single.php on line 144
Claro tienes que terminar el if con <?php endif; ?> una vez que carga todo lo que es la plantilla de la entrada
También creo que todo esto: <?php if( get_post_meta($post->ID, "thumb", true) ): ?>
<h1><a rel="nofollow" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
va abajo del while
Calculo que es así:
<?php get_header(); ?>
<div id="content-wrapper">
<div id="main-wrapper">
<?php /* Si no existen entradas*/ ?>
<?php if ( ! have_posts() ) : ?>
<div class="post-body">
<h3 class="post">Error 404</h3>
<p>Todo aquello que es casi perfecto tendra un error sino no dejara de serlo.</p>
</div>
<?php while ( have_posts() ) : the_post(); ?>
<?php if( get_post_meta($post->ID, "thumb", true) ): ?>
<h1><a rel="nofollow" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
<?php /* Mostrar las entradas. */ ?>
<div id="post-<?php the_ID(); ?>" class="postsingle">
<div class="post-body">
<script type="text/javascript">
var __cpa_setup = __cpa_setup || {
746:
{
}
}
;
746 in
__cpa_setup ? true : __cpa_setup[746] = {};
__cpa_setup[746][0] = {
param: {
's': '',
'r': 'somospelis.net',
'f': '',
'cs': typeof(document.characterSet) === 'undefined' ? document.defaultCharset : document.characterSet,
'u': ''
},
text: {
mediagetCaption10: "",
mediagetCaption11: "",
mediagetDownload1: "Descargar",
mediagetDesc1: "Descarga Segura GRATIS con MediaGet",
mediaCaption1: "",
mediaCaption2: "",
mediaDownload1: "Descargar",
mediaDesc1: "Descarga Segura GRATIS con MediaGet"
}
};
__s_blacklist = {'0': 'ADESCARGARDVDFULL ! Descarga los Mejores DVDR/DVDfull ', '1': '» ', '2': 'ADESCARGARDVDFULL ! Descarga los Mejores DVDR/DVDfull'};
__s_val = document.title;
for (key in __s_blacklist) __s_val = __s_val.replace(__s_blacklist[key], '').replace(/\s+/, ' ');
__cpa_setup[746][0]['param']['s'] = __s_val;
__cpa_setup[746][0]['param']['f'] = __cpa_setup[746][0]['param']['s'];
</script>
<div align="center">
<div id="cpa_rotator_block_746_0">
<div
style="width:468px;height:60px;overflow:hidden; background:#f2f4bd; border-left:1px solid #d4d4d4;overflow:hidden;">
<h2 style="text-align:center;margin:10px 1px 0 10px;padding:0;color:#000;font-family: arial;font-size: 16px;cursor:default; overflow:hidden;">
<span id="mediagetCaption10746_0"></span><span
id="mediagetFile1746_0">__rotator_param_f</span><span
id="mediagetCaption11746_0"></span></h2>
<a id="mediagetLink1746_0" href=""
style="text-decoration: underline; display:block; margin:6px 10px 0 0; font-size: 16px; background:#f2f4bd;width:121px;height:30px;text-align: center;color:#000;font-weight: bold;font-family: arial; cursor😛ointer"><font
id="mediagetDownload1746_0"></font></a>
Lo puse completo asi como me lo pasaste amigo y me tira el error: Parse error: syntax error, unexpected $end in /home/somospel/public_html/wp-content/themes/somospelis-theme/single.php on line 146
<p id="mediagetDesc1746_0"
style="text-align:center;margin:5px 2px 0 2px; padding:0;color:#000;font-family: arial;font-size: 11px;cursor:default;"></p>
<div style="clear:both;"></div>
</div>
<script type="text/javascript">
key = '746_0';
try {
setup = __cpa_setup[746][0];
for (name in setup['text']) {
el = document.getElementById(name + key);
if (el !== null) el.innerHTML = setup['text'][name];
}
s = setup['param'].s;
f = setup['param'].f;
cs = setup['param'].cs;
r = setup['param'].r;
document.getElementById('mediagetFile1' + key).innerHTML = f;
document.getElementById('mediagetLink1' + key).href = "http://mediaget.com/torrent.php?r=" + r + "&s=" + s + "&f=" + f + "&cs=" + cs;
} catch (e) {
}
try {
text_button = document.getElementById('mediagetFile1' + key).innerHTML.replace(/\s+/g, ' ');
text_caption1 = document.getElementById('mediagetCaption10' + key).innerHTML;
text_caption2 = document.getElementById('mediagetCaption11' + key).innerHTML;
caption_max = 57;
caption_length = text_button.length + text_caption1.length + text_caption2.length;
optimal_length = caption_max - text_caption1.length - text_caption2.length;
if (optimal_length < 10) optimal_length = 10;
if (caption_length > caption_max) {
document.getElementById('mediagetFile1' + key).innerHTML = text_button.substring(0, optimal_length - 3).replace(/\s*$/, '') + "...";
}
} catch (e) {
}
</script>
</div>
</div>
<script>script = document.createElement("script");
script.async = true;
script.type = "text/javascript";
script.src = 'http://bubblesmedia.ru/invoke.php?id=746&subid=0';
node = document.getElementsByTagName("script")[0];
node.parentNode.insertBefore(script, node);</script>
<?php the_content(); ?>
</div>
<h1>Comentarios</h1>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/es_LA/all.js#xfbml=1&appId=--------------";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-comments" data-href="<?php the_permalink() ?>" data-num-posts="10" data-width="630" data-colorscheme="dark"></div>
</div>
</div>
<?php endif; ?>
<?php endwhile; ?>
</div>
<?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>
Tenés un </div> de más xD el que está abajo de: <?php get_sidebar(); ?>
la verdad todo lo que el single no lo veo mal, quizás probaría tirar el the_content() arriba de los scripts para ver si modifican algo, aunque no creo, puede ser un id que te la esté jugando mal, pero no veo eso desde aca
Espero hayas podido solucionar tu problema, lamentablemente yo soy nuevo en Wordpress.Parse error: syntax error, unexpected $end in /home/somospel/public_html/wp-content/themes/somospelis-theme/single.php on line 146
🔒 Este tema está cerrado para nuevas respuestas.
⏰ Solo el creador del tema puede solicitar la reapertura de sus propios temas, pero únicamente dentro de los 60 días previos a la última actualización.
Utilizamos cookies y tecnologías similares para los siguientes fines:
¿Aceptas las cookies y estas tecnologías?
Utilizamos cookies y tecnologías similares para los siguientes fines:
¿Aceptas las cookies y estas tecnologías?