• dbunit16

    (@dbunit16)


    Hello,

    I am trying in call a custom field inside a PHP string but I am not the best at PHP, or even good at all… How do I make this valid?

    <?php include("ads$key="bigimage"; echo get_post_meta($post->ID, $key, true);.php"); ?>

    Thank you,

    Jon

Viewing 1 replies (of 1 total)
  • vtxyzzy

    (@vtxyzzy)

    I can’t be sure unless you show what the include() would look like if you coded it by hand, and what is in the content of the Custom Field.

    As a guess, this might be what you want:

    <?php $bigimage = get_post_meta($post->ID,'bigimage',true);
    include("ads{$bigimage}.php); ?>
Viewing 1 replies (of 1 total)
  • The topic ‘Custom Field Help’ is closed to new replies.