Title: Hardcode with Custom field
Last modified: August 20, 2016

---

# Hardcode with Custom field

 *  Resolved [kweliu](https://wordpress.org/support/users/kweliu/)
 * (@kweliu)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/hardcode-with-custom-field/)
 * 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/](http://wordpress.org/extend/plugins/slideshow-jquery-image-gallery/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Stefan Boonstra](https://wordpress.org/support/users/stefanboonstra/)
 * (@stefanboonstra)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/hardcode-with-custom-field/#post-3440283)
 * 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
 *  Thread Starter [kweliu](https://wordpress.org/support/users/kweliu/)
 * (@kweliu)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/hardcode-with-custom-field/#post-3440318)
 * 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](https://wordpress.org/support/users/stefanboonstra/)
 * (@stefanboonstra)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/hardcode-with-custom-field/#post-3440319)
 * 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.
 *  Thread Starter [kweliu](https://wordpress.org/support/users/kweliu/)
 * (@kweliu)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/hardcode-with-custom-field/#post-3440372)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/slideshow-jquery-image-gallery_d3d2de.
   svg)
 * [Slideshow](https://wordpress.org/plugins/slideshow-jquery-image-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/slideshow-jquery-image-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/slideshow-jquery-image-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/slideshow-jquery-image-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/slideshow-jquery-image-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/slideshow-jquery-image-gallery/reviews/)

## Tags

 * [custom field](https://wordpress.org/support/topic-tag/custom-field/)
 * [hardcode](https://wordpress.org/support/topic-tag/hardcode/)

 * 4 replies
 * 2 participants
 * Last reply from: [kweliu](https://wordpress.org/support/users/kweliu/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/hardcode-with-custom-field/#post-3440372)
 * Status: resolved