← WordPress

Problema com o READ MORE

Lida 1962 vezes

Offline

mix_93 
Membro
Mensagens 1630 Gostos 0
Troféus totais: 29
Trófeus: (Ver todos)
Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1

Boas, estou para aqui a codar uma template para wordpress, mas isto esta-me a dar um erro. Eu quero que me apareça o pequeno texto antes do READ MORE, mas não me está a aparecer apenas o READ MORE, Títulos etc... aparecem mas a parte do conteúdo não.

Alguém me consegue dar uma mãozinha?  :lol:
Offline

bfms 
Equipa
Mensagens 1769 Gostos 40
Feedback +1

Troféus totais: 35
Trófeus: (Ver todos)
Search Level 6 Apple User Super Combination Combination Topic Starter 50 Poll Votes 10 Poll Votes Poll Voter Poll Starter

Offline

Diogo Pinto 
Administrador
Mensagens 4400 Gostos 371
Feedback +4

Troféus totais: 37
Trófeus: (Ver todos)
Avatar Search Level 6 Linux User Mobile User Super Combination Combination Topic Starter 50 Poll Votes 10 Poll Votes

Ou então o plugin, LIMIT POST ;)
Offline

mix_93 
Membro
Mensagens 1630 Gostos 0
Troféus totais: 29
Trófeus: (Ver todos)
Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1

Pois eu tenho o <?php the_excerpt(); ?> mas ele não me mostra á mesma. :-k


Citar
<!--Início Post-->
<?php
global $post;
$count = 0;
$myposts = get_posts('numberposts=4');
$repeated = false;
foreach ($myposts as $post): $count++;
?>

<div class="post">
            <div class="posttop">
           <h1 class="posttitle"><?php the_title(); ?> (<?php the_time('Y/m/d', '', ''); ?>)</h1>
             <div class="comment"><?php comments_popup_link('Sem Coment&aacute;rios', '1 Coment&aacute;rio', '% Coment&aacute;rios'); ?></div>
         <br class="floatClear" />
            </div>
         <div class="storycontent">
            <img src="<?php bloginfo('stylesheet_directory'); ?>/images/img1.jpg" class="floatLeft" />
            <p>
       <?php if(have_posts()) : ?>
            <?php the_excerpt(); ?>
            </p>
            <p class="more"><a href='<?php the_permalink(); ?>'>[Read More]</a></p>
        <?php endif; ?>           
            </p>
            </div>
            <br class="floatClear" />
        </div>
<!--Fim Post-->