the_content not working…
-
Hey gang,
I’m trying to setup a mobile version for my wordpress-driven site (with slave-tethered mysql databases), and in writing single.php I’ve run into a curious problem:
<?php the_content(); ?>
won’t work!! Excerpt does, and the$post->post_content
method works, but without the formatting goodness of the_content. Code’s below.Cheers!
<div id="single"> <? $cat = cat_slug(); $do_not_duplicate[] = $post->ID; ?> <h3><? the_category(', '); ?> »</h3> <h1><? the_title(); ?></h1> <p class="byline"><?php $key="writer"; echo get_post_meta($post->ID, $key, true); ?> | <?php the_time('d M.') ?></p> <div id ="content"><? # echo $post->post_content; ?><?php the_content(); ?></div> <div id="breadcrumbs"><?php echo "Continue Reading:"; wp_link_pages('before=&after=&next_or_number=number&pagelink=%'); ?></div> </div><!--single-->
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘the_content not working…’ is closed to new replies.