Problemas con los títulos de los post en mi nuevo sitio

  • Autor Autor VaMpE
  • Fecha de inicio Fecha de inicio
VaMpE

VaMpE

Iota
Domainer
Verificado
Verificación en dos pasos activada
Verificado por Whatsapp
¡Ha verificado su Paypal!
Hola Gente de Forobeta expongo mi problema aqui haber si me lo pueden solucionar.

Pues bien cambie el theme de un sitio nuevo recien empezando con el sitio.

El punto es que el theme no me reconoce los titulos del post en los que se encuentra. digamos que entro en algun post como por ejemplo el siguiente.

Url: Enlace eliminado

el problema que no me agarra el titulo personalizado que tengo si no que me agarra el titulo del ultimo post que tengo en el sidebar. en este caso es un juego el titulo que me agarra (ventana del explorador es)

Titulo: Juego El Fua | Radio Online | Musica

y deberia quedar asi:

Titulo: Adelanto de Spring Breakers Con Selena Gomez -Video

se me hace que es problema del theme pues con el tema anterior no me salio nada de esto.

quisiera que me ayudaran a arreglarlo siento que ay algun problema en el codigo pues me agarra el ultimo post. y no el titulo que deberia ser.

Alguna Solucion?

la web es : Conexion Radio - Radio Online | Escuchar la Mejor Musica | Videos Musicales


PHP:
<div class="sidebar_right">

<?

global $options;

foreach ($options as $value) {

    if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }

}

?>

     <div class="randomposts">

	 <h2>Ultimas Noticias</h2>



<?php $recent = new WP_Query("cat=-<? echo $ts_pho; ?>&showposts=3&offset=0"); while($recent->have_posts()) : $recent->the_post();?>



     <div class="featured1part2">

          <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php if ( function_exists("has_post_thumbnail") && has_post_thumbnail() ) { the_post_thumbnail(array(75,75), array("class" => "thumbs")); } ?></a>

          <h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>

          <?php excerpt('21'); ?>

     </div>

<?php endwhile; ?>



     </div>

	 

     <div class="rightad">

		  <?if ($ts_336280_disable == "false") { ?>

		  <? if ($ts_336_280) { ?>

          <? echo stripslashes($ts_336_280); ?>

          <? } else { ?>

          <?php include (TEMPLATEPATH . '/adsense/adsense-336-280.php'); ?>

          <? } ?>

		  <? } else { ?>

		  <? } ?>

     </div>



<div class="tabmenu">

<ul>

<li class="tabone"><a href="#" onmouseover="easytabs('1', '1');" onfocus="easytabs('1', '1');" onclick="return false;"  title="" id="tablink1">Comentarios</a></li>

<li class="blogroll"><a href="#" onmouseover="easytabs('1', '2');" onfocus="easytabs('1', '2');" onclick="return false;"  title="" id="tablink2">Blogroll</a></li>

<li class="tabtags"><a href="#" onmouseover="easytabs('1', '3');" onfocus="easytabs('1', '3');" onclick="return false;"  title="" id="tablink3">Etiquetas </a></li>

</ul>

</div>



<div id="tabcontent1">

	 <div class="recentcomments">			

			<?php

global $wpdb;

$sql = "SELECT DISTINCT ID, post_title, post_password, comment_ID,

comment_post_ID, comment_author, comment_date_gmt, comment_approved,

comment_type,comment_author_url,

SUBSTRING(comment_content,1,40) AS com_excerpt

FROM $wpdb->comments

LEFT OUTER JOIN $wpdb->posts ON ($wpdb->comments.comment_post_ID =

$wpdb->posts.ID)

WHERE comment_approved = '1' AND comment_type = '' AND

post_password = ''

ORDER BY comment_date_gmt DESC

LIMIT 10";

$comments = $wpdb->get_results($sql);

$output = $pre_HTML;

$output .= "\n<ul>";

foreach ($comments as $comment) {

$output .= "\n<li>".strip_tags($comment->comment_author)

.":" . "<a href=\"" . get_permalink($comment->ID) .

"#comment-" . $comment->comment_ID . "\" title=\"on " .

$comment->post_title . "\">" . strip_tags($comment->com_excerpt)

."...</a></li>";

}

$output .= "\n</ul>";

$output .= $post_HTML;

echo $output;?>

     </div>	

</div>



<div id="tabcontent2">

     <div class="recentcomments">

          <ul>

<?php wp_list_bookmarks('title_li=&categorize=0'); ?>



          </ul>

     </div>

</div>



<div id="tabcontent3">

     <div class="tagcloud">

			<ul>

				<?php wp_tag_cloud('smallest=8&largest=16&number=30&order=RAND'); ?>

			</ul>

     </div>

</div>

	

</div>

Esta es la parte que me da problemas de aqui agarra el ultimo post comentado (de arriba hacia abajo no se si me explico 🙁 )

PHP:
 <div class="randomposts"> 

     <h2>Ultimas Noticias</h2> 



<?php $recent = new WP_Query("cat=-<? echo $ts_pho; ?>&showposts=3&offset=0"); while($recent->have_posts()) : $recent->the_post();?> 



     <div class="featured1part2"> 

          <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php if ( function_exists("has_post_thumbnail") && has_post_thumbnail() ) { the_post_thumbnail(array(75,75), array("class" => "thumbs")); } ?></a> 

          <h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3> 

          <?php excerpt('21'); ?> 

     </div> 

<?php endwhile; ?> 



     </div>

Porfa hechenme una manita se los agradecere demasiado!
 
Última edición:
Una Disculpa [MENTION=4610]cank[/MENTION] anoche se me fue el internet 🙁 aqui pego el contenido del single.php

PHP:
<?php get_header(); ?>

<div id="content">
<?
global $options;
foreach ($options as $value) {
    if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }
}
?>
<div class="singlepages">

<?if ($ts_breadcrumb_disable == "false") { ?>
<?php include (TEMPLATEPATH . '/breadcrumbs.php'); ?>
<? } else { ?>

<? } ?>


		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

		<h2><?php the_title(); ?></h2>
		<div class="entryinfo">el dia  <?php the_time('l, F jS, Y') ?> en <?php the_category(', ') ?></div>
			<div class="entry">
				<?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>

				<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
				
			    <div class="adsingle">
		  <?if ($ts_46860_disable == "false") { ?>
		  <? if ($ts_468_60) { ?>
          <? echo stripslashes($ts_468_60); ?>
          <? } else { ?>
          <?php include (TEMPLATEPATH . '/adsense/adsense-468-60.php'); ?>
          <? } ?>
		  <? } else { ?>
		  <? } ?>
				</div>
			
			
				<?php the_tags( '<p>Quizas Te Interese: ', ', ', '</p>'); ?>
		
			</div>
     
		<?php edit_post_link('Editar esta Entrada.', '<p>', '</p>'); ?>

<?php
$post = $wp_query->post;
if ( in_category('1') ) {
include(TEMPLATEPATH . '/relatedphotos.php');
} else {
include(TEMPLATEPATH . '/relatedposts.php');
}
?>		
		
		<?php wp_reset_query(); ?> 
		
		<?php comments_template(); ?>
		
		<?php endwhile; endif; ?>
</div>

<?php include (TEMPLATEPATH . '/sidebar_single.php'); ?>

</div>

<?php get_footer(); ?>
 
Última edición:
A que titulo te refieres por que yo no veo por ningun lado este: Juego El Fua | Radio Online | Musica
 
A que titulo te refieres por que yo no veo por ningun lado este: Juego El Fua | Radio Online | Musica

ya esta de nuevo. mira lo que pasa es esto. cuando creo una entrada el titulo cambia pero agarra el titulo de un post del sidebar. cosa que no deberia ser no se a que se debe 🙁

checalo ahora mismo ya esta ( no salia el titulo ya que habia creado una post y el titulo habia cambiado pero no corresponden los titulos)

Harias el favor de entrar de nuevo a checar el sitio?
[MENTION=2218]Angel Ortega[/MENTION] si navegas en otros post te daras cuenta que el titulo es el mismo ya movi todo, volvi a reinstalar el theme pensando que algo le moveria yo pero no! no se arregla nada
 
[MENTION=5754]VaMpE[/MENTION] prueba agregando esta linea

<?php wp_reset_query(); ?>

debajo del <?php endwhile; ?> del sidebar

Quedaria:

<?php endwhile; ?>
<?php wp_reset_query(); ?>

Haber si se soluciona
 
Atrás
Arriba