WordPress.org

Ready to get started?Download WordPress

Forums

Slideshow
[resolved] Hardcode with Custom field (5 posts)

  1. kweliu
    Member
    Posted 1 year ago #

    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); ?>
    	<?php
    		$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!

    http://wordpress.org/extend/plugins/slideshow-jquery-image-gallery/

  2. Stefan Boonstra
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    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,
    Stefan

  3. kweliu
    Member
    Posted 1 year ago #

    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.

  4. Stefan Boonstra
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  5. kweliu
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic