• Resolved janleeks

    (@janleeks)


    Hi, I’m using the custom field template plug-in on my site at present, its all working fine. In the php templates I have this code to pull in my content…

    <?php
    if ($aboutreferences != "") {
        echo ' ' . $aboutreferences . ' ';
    }
    ?>

    What if I want this same content to appear on another page. I do not know how to pull a custom template to a specific page when the content is added to another page. I’m sure this is very easy but I can’t find the solution.

    Regards

    Jan

Viewing 1 replies (of 1 total)
  • Thread Starter janleeks

    (@janleeks)

    <?php
    // Retrieve custom meta values from post if they're present
    $aboutreferences = (get_post_meta($post->ID=2, "aboutreferences", true));
    ?>

    I was having a mental block, simply referencing the id, der..!

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Custom Field Template] content input once on two different pages’ is closed to new replies.