single.php displaying custom fields but no post content. (2 posts)

  1. savespy
    Posted 10 years ago #

    I'm trying to set up my permalink page and am stuck on one thing that I'd really appreciate any help with. My main blog page is basically one blog post with several custom fields added: http://www.savespy.com

    If you click on the permalink on that page http://www.savespy.com/2006/02/26/lumix-fz-5-with-12xzoom/ I've got it bringing back everything the homepage does but I can't get it to pick up the main blog post under product info.
    I've got
    <?php the_content('', '
    '); ?> in the same place within the loop as it is on my index.php page but it doesn't seem to be picking it up.

    It should bring back the following data as it does on the homepage:

    • Advanced Mega Optical Image Stabilizer
    • Leica DC Vario-Elmarit Lens
    • 5 Megapixel CCD
    • 12x Optical Zoom
    • 4x Digital Zoom
    • 1.8 inch Diagonal LCD Display

    Been stuck on this for 2 days going in circles so any help would be brilliant, Thanks!


  2. madonnafl
    Posted 10 years ago #

    I wish I could see all of the PHP surrounding the content tag. My suggestion without seeing it: put <?php if (have_posts()) : while (have_posts()) : the_post(); ?> after <?php get_header(); ?>.

Topic Closed

This topic has been closed to new replies.

About this Topic