• Resolvido maickgb

    (@maickgb)


    Olá pessoal,

    Estou com um probleminha e gostaria da ajuda de vcs.

    O problema é o seguinte:

    Preciso exibir o post inteiro, sem resumo. Já tentei algumas formas que achei em outros posts mas não resolveu.

    segue o arquivo loop.php do meu tema “cosmos”:

    <?php
        global $theme;
        if (have_posts()) : while (have_posts()) : the_post();
    ?>
    
        <div class="post-wrap">
    
            <div <?php post_class('post clearfix'); ?> id="post-<?php the_ID(); ?>">
    
                <h2 class="title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'themater' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
    
                <div class="postmeta-primary">
    
                    <span class="meta_date"><?php the_time($theme->get_option('dateformat')); ?></span>
                   &nbsp; <span class="meta_author"><?php the_author(); ?></span>
    
                        <?php if(comments_open( get_the_ID() ))  {
                            ?> &nbsp; <span class="meta_comments"><?php comments_popup_link( __( 'Sem coment�rios', 'themater' ), __( '1 Coment�rio', 'themater' ), __( '% Comments', 'themater' ) ); ?></span><?php
                        }
    
                        if(is_user_logged_in())  {
                            ?> &nbsp; <span class="meta_edit"><?php edit_post_link(); ?></span><?php
                        } ?>
                </div>
    
                <div class="entry clearfix">
    
                    <?php
                        if(has_post_thumbnail())  {
                            the_post_thumbnail(
                                array($theme->get_option('featured_image_width'), $theme->get_option('featured_image_height')),
                                array("class" => $theme->get_option('featured_image_position') . " featured_image")
                            );
                        }
                    ?>
    
                    <?php
                        the_content();
                    ?>
    
                </div>
    
                <div class="readmore-wrap">
                    <a class="readmore" href="<?php the_permalink(); #more-<?php the_ID(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'themater' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php $theme->option('read_more'); ?></a>
                </div>
    
            </div>
        </div><!-- Post ID <?php the_ID(); ?> -->
    
        <?php endwhile; ?>
        <?php else : ?>
    
        <div class="post-wrap">
    
            <div class="post">
    
                <div class="entry">
    
                    <p><?php _e('N�o foram encontrados resultados para o arquivo solicitado.','themater'); ?></p>
    
                </div>
    
                <div id="search-wrap">
    
                    <?php get_search_form(); ?>
    
                </div>
    
            </div>
    
        </div>
    <?php endif; ?>
    
    <?php if (  $wp_query->max_num_pages > 1 ) { ?>
    
        <div class="navigation clearfix">
    
            <?php
                if(function_exists('wp_pagenavi')) {
                    wp_pagenavi();
                } else {
            ?><div class="alignleft"><?php next_posts_link( __( '<span>&laquo;</span> Posts mais antigos', 'themater' ) );?></div>
            <div class="alignright"><?php previous_posts_link( __( 'Posts mais recentes <span>&raquo;</span>', 'themater' ) );?></div><?php
            } ?> 
    
        </div><!-- .navigation -->
    
    <?php } ?>

    Grato!

Visualizando 1 resposta (de um total de 1)
  • Criador do tópico maickgb

    (@maickgb)

    Bom pessoal…

    Acabei dando uma mexida no código e acabei descobrindo como resolver.

    Segue abaixo a solução para que outros possam tirar suas duvidas sobre este assunto.

    Muito simples. Basta comentar ou tirar a seguinte parte do código:

    <!--   <div class="readmore-wrap">
                    <a class="readmore" href="<?php the_permalink(); #more-<?php the_ID(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'themater' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php $theme->option('read_more'); ?></a>
                </div>   -->

    OBS: Recomendo que vc comente o código, assim poderá usá-lo posteriormente.

Visualizando 1 resposta (de um total de 1)
  • O tópico ‘Problema com "leia mais"’ está fechado para novas respostas.