Forums

[resolved] [Plugin: NextGEN Gallery] using Custom Fields to show gallery ID (1 post)

  1. vachi
    Member
    Posted 3 years ago #

    PLEASE DELETE THIS, i am sorry i posted it in the wrong area, sorry once again

    I wanna be able to call on the gallery ID from the custom field area
    meaning i have a custom field called gallery, in there i write [gallery=74]

    than in the loop i want to show the gallery specified by that id
    the code i have right now is
    <div class="actor_gallery"><?php $gallery = get_post_meta($post->ID, 'gallery', true); ?><?php echo $gallery ?></div>
    but this gives me a simple text output ([gallery=74])
    any ideas on how this can be done?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.