• Resolved saloonstudios

    (@saloonstudios)


    Basic syntax problem for me-
    I want to define page ID’s at the head of a page, then later recall those ID’s using the nicknames I’ve assigned. My non-working example:

    <?php
    $cinemaNew = the_ID(95);
    $mvdocsNew = the_ID(139);
    $sidesNew = the_ID(152);
    ?>

    Then recall those ID’s here:

    <img src=”<?php echo get_post_meta($cinemaNew, poster_150, true); ?>” alt=”” height=”150″ width=”110″ align=”top” border=”1″>

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Define and recall Page ID’ is closed to new replies.