Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter vertexman

    (@vertexman)

    I find out that the post had no ‘post_excerpt’ in database and after I inserted it there manually, it works. So the problem is, why the post didn’t save his excerpt in database?

    P.S: sorry for my english

    Thread Starter vertexman

    (@vertexman)

    This is my code in sidebas:

    <?php query_posts('cat=6&showposts=1'); ?>
                            <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
                            <div class="meta-date"><?php the_date(); ?></div>
                                <?php
                                $myExcerpt = get_the_excerpt();
                                $tags = array("<p>", "</p>");
                                $myExcerpt = str_replace($tags, "", $myExcerpt);
                                echo '<p>'.$myExcerpt;
                                ?>
                                <a href="<?php the_permalink(); ?>">viac tu</a>
                            <?php endwhile; else: ?>
                                <p>Sorry, no posts matched your criteria.</p>
                            <?php endif; ?>
Viewing 2 replies - 1 through 2 (of 2 total)