Forums

<?php the_ID(); ?> doesn't work (2 posts)

  1. tourvista
    Member
    Posted 2 years ago #

    Thanks in advance for the help.

    I have a problem with <?php the_ID(); ?>

    I have this code in my template

    <div class="post" id="post-<?php the_ID(); ?>">

    but it doesn't seem to work because when I see the source code it says

    <div class="post" id="post-<?php the_ID(); ?>">

    I know it is not very important but I cannot validate the webpage with such id name.

    Thanks

  2. tourvista
    Member
    Posted 2 years ago #

    My mistake,

    I was looking at the wrong place.
    I had written

    <div class="post" id="post-<?php the_ID(); ?>">

    in my code somewhere else

    Cheers!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags