Support » Themes and Templates » single.php displaying custom fields but no post content.

  • 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:

    If you click on the permalink on that page 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!


Viewing 1 replies (of 1 total)
  • madonnafl


    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(); ?>.

Viewing 1 replies (of 1 total)
  • The topic ‘single.php displaying custom fields but no post content.’ is closed to new replies.