WordPress.org

Ready to get started?Download WordPress

Forums

Integrating get_post_meta to call relevant NivoSlider (1 post)

  1. paddyjd
    Member
    Posted 3 years ago #

    Hi,

    I am currently looking to use a different NivoSlider on different posts, so I set up a custom field where I can enter the Nivo Slider number and call it within the template using <?php echo do_shortcod

    Currently I have:

    <?php echo do_shortcode;?>("<?php echo get_post_meta($post->ID, 'nivo_number', true); ?>")<?php ; ?>

    However this just shows the following text on the site

    do_shortcode("[nivoslider id='245']")

    Can anyone help? If it doesn't make sense I will try and explain.

    Thankyou

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.