Support » Themes and Templates » <code> tag does not working.

  • When I use the < code > syntax to display code, wordpress does not show the code.
    You can see the problem..
    What is problem ?
    Thank you.
    I want to show this code…

    $temp_category = single_cat_title('',false);
    if (!empty($temp_category)){
    // give index
    <h1><?php single_cat_title(); ?></h1>
    <?php echo(category_description(the_category_ID(false))); ?>
    <p class="index">
    <?php if ($posts) : foreach ($posts as $post) : start_wp(); ?>
    "><?php the_title(); ?> / <?php the_date(); ?>
    <?php endforeach; else: ?>
    <?php _e('Sorry, no posts matched your criteria.'); ?>
    <?php endif; ?>
    }else{ // give details or single post

Viewing 4 replies - 1 through 4 (of 4 total)
  • Put it through the Amazing WP Encoder and post the output on your site. Code tag doesn’t change the fact that all that looks like code will be interpreted as code — I think.
    There are also plugins for this but of those I know nothing

    the tag allows a lot of code to parse, and thus is invisible, or even messed up in the text filtering.
    use the encoder, it's a wonderful solution! the users can still cut and paste your example code whithout having to decode it.
    : )

    Yes. your suggestion is a solution.
    But I want to use tag that provide basically in the wp-admin/post.php.
    What is problem ?
    You also have this problem ?

    thank you..
    But in this support forum.. I used tag..
    It works very well.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘<code> tag does not working.’ is closed to new replies.