[Resolved] Hardcode with Custom field
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!
- The topic ‘[Resolved] Hardcode with Custom field’ is closed to new replies.