WordPress.org

Ready to get started?Download WordPress

Forums

apply_filters crashes functionality (1 post)

  1. bizunas
    Member
    Posted 5 years ago #

    Hey!
    Lately i discovered, that my call to the_content function causes problems, as after that request no other functions are working properly, and inside the_contents calling function apply_filters... causes all that fuss.

    My code is :

    <?php get_header(); ?>
    
    <div id="content">
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    
    <h2><?php the_title(); ?></h2>
    <p class="timestamp"><?php the_category(', ') ?><?php edit_post_link('[e]',' | ',''); ?></p>
    <div class="contenttext">
    <?php the_content('<p>Skaityti toliau &raquo;</p>'); ?>
    </div>
    
    <?php link_pages('<p><strong>Puslapiai:<strong> ', '</p>', 'skaičius'); ?>
    
    <p class="postnavleft"><?php previous_post_link('&laquo; %link') ?></p>
    <p class="postnavright">&nbsp;<?php next_post_link('%link &raquo;') ?></p>
    
    <?php comments_template(); ?>
    
    <?php endwhile; else: ?>
    <p>Inlägget kunde inte hittas.</p>
    <?php endif; ?>
    
    </div>
    
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    And if you take out the_content function out of the code, all later functions works just fine.

    Please help !! How could i fix this problem ?

Topic Closed

This topic has been closed to new replies.

About this Topic