Support » Plugin: Slideshow » Hardcode with Custom field

  • Resolved kweliu


    Hi Stefan,

    Love this slider! It really works like a charm.

    I have a question regarding hardcoding and custom fields. So I am fairly new to php, and I am trying to work out how to hardcode the gallery into my php, and then call up a specific gallery using custom fields. I am currently using a different gallery to do this, however it tends to lag when the page loads and could be a lot better.

    The hardcode for the gallery I am currently using is:

    <?php $gallery = get_post_meta($post->ID, 'gallery', true); ?>
    		$gal = $gallery;
    		$gal = apply_filters('the_content', $gal );
    		echo $gal;

    Is there anyway to do this?
    Thank you very much for any help or advice!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Stefan Boonstra



    I don’t know what gallery you’re using, so I don’t think I’ll be able to help you with your issue. The people that created the gallery plugin you’re using can probably help you much better at getting it running.

    Best regards,

    Hi Stefan,

    Well the thing is, I want to use your slider instead of the one I am currently using.
    I was just wondering if there was a way to call up your slider in a similar manner as how they have theirs, in which I can use hardcodes and custom fields to call up specific slideshows.

    Plugin Author Stefan Boonstra


    My slideshow can only be called using the shortcode in posts and pages or using the PHP snippet in your theme. The slideshows are (by default) retrieved by their ID, but can be retrieved by their slugs.

    Okay, I will try contacting the other plugin’s author then. Thank you for your help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Hardcode with Custom field’ is closed to new replies.