• Hola a todos, estoy tratando de colocar el contenido de una entrada o post en una página, esto es mi código:

    <?php echo ' <p>SI Es la página de FCT</p>'; ?>
    <?php
    query_posts( "cat=59&posts_per_page=-1" );
    if ( have_posts() ) : while ( have_posts() ) : the_post();
    ?>
    <!--now the single Tag-->
    <h2><?php the_title(); ?></h2>
    <h3><div id="author-vy">Autor: <?php the_author_link(); ?></div></h3>
    <?php $date_year = get_the_time('Y'); $date_month = get_the_time('M'); $date_day =  get_the_time('d'); ?>
    <div class="archive_date"><?php echo $date_day; ?><span>-<?php echo $date_month; ?></span>-<?php echo $date_year; ?></div>
    
    <!--//now the content-->
    <?php the_content(); ?>
    <!--//Finally close the loop-->
    
    <!-- Inicia la carga de los comentarios-->
    <?php
    if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
    die ('Please do not load this page directly. Thanks!');
    if ( post_password_required() ) { ?>
    <p class="nocomments">Esta Entrada esta protegida. Ingrese al Sitio para ver el comentario.</p>
    <?php
    return;
    }
    ?>
    <?php if ( have_comments() ) : ?>
    <h4><span class="comment-heading">Comentario  </span><?php comments_number('Sin Respuesta', 'Una Respuesta', '% Respuestas' );?></h4>
    <div class="navigation">
    <div class="alignleft"><?php previous_comments_link() ?></div>
    <div class="alignright"><?php next_comments_link() ?></div>
    </div>
    <ol class="commentlist">
    <?php wp_list_comments('callback=mytheme_comment'); ?>
    </ol>
    <div class="navigation">
    <div class="alignleft"><?php previous_comments_link() ?></div>
    <div class="alignright"><?php next_comments_link() ?></div>
    </div>
    <?php else : // this is displayed if there are no comments so far ?>
    <?php if ('open' == $post->comment_status) : ?>
    <!-- If comments are open, but there are no comments. -->
    <?php else : // comments are closed ?>
    <!-- If comments are closed. -->
    <p class="nocomments">Proyecto Dumas Cerro los Comentarios.</p>
    <?php endif; ?>
    <?php endif; ?>
    <?php if ('open' == $post->comment_status) : ?>
    <div id="respond">
    <h4><?php comment_form_title( 'Deja tu Comentario', 'Deja un Comentario a %s' ); ?></h4>
    <div class="cancel-comment-reply">
    <?php cancel_comment_reply_link('Cancelar Respuesta'); ?>
    </div>
    <div class="clear"></div>
    <?php if ( get_option('comment_registration') && !$user_ID ) : ?>
    <p> Es necesario que <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>">Ingrese al Sitio</a> para dejar tu comentario.</p>
    <?php else : ?>
    <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
    <?php if ( $user_ID ) : ?>
    <p>Esta Logueado como <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="Salir de la Cuenta">Salir de la cuenta &raquo;</a></p>
    <?php else : ?>
    <div class="comment_col grid_6">
    	<span class="comment_field">
    		<label for="author">Nombre :</label>
    		<input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" <?php if ($req) echo "required"; ?> />
    	</span>
    	<span class="comment_field">
    		<label for="email">Email :</label>
    		<input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" <?php if ($req) echo "required"; ?> />
    	</span>
    	<span class="comment_field last">
    		<label for="url">Website :</label>
    		<input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" />
    	</span>
    </div>
    <?php endif; ?>
    <div class="comment_col grid_6">
    	<textarea name="comment" id="comment" cols="50" rows="10"></textarea>
    </div>
    <p><input name="submit" type="submit" id="comment-submit" tabindex="5" value="Envíar" />
    <?php comment_id_fields(); ?>
    </p>
    <?php do_action('comment_form', $post->ID); ?>
    <div class="clear"></div>
    </form>
    <?php endif; // If registration required and not logged in ?>
    </div>
    <?php endif; // if you delete this the sky will fall on your head ?>
    <!-- Finaliza la carga de los comentarios-->
    <?php endwhile; ?>
    <?php endif; ?>
    <?php echo ' <p>Fin de la página de FCT</p>'; ?>

    La pagina es:http://www.proyectodumas.com/cafe-toulouse-2/
    y la entrada que deseo meter es:http://www.proyectodumas.com/redes-sociales-y-voto-juvenil/

    el problema es que no me carga todos los comentarios de la entrada.

    De antemano muchas gracias por su ayuda

Viendo 1 respuesta (de un total de 1)
Viendo 1 respuesta (de un total de 1)
  • El debate ‘Colocar toda una entrada en una pagina’ está cerrado a nuevas respuestas.