WordPress – Extending base datatypes with Pods plugin

For right now, I will share the code that covers the elements we talked about in class. I’ll go back and write this up more elaborately.

Simple Background Image

The PHP we used to add a background image:

<?php $image_object = get_post_meta( $post--->ID, 'background_image', TRUE ); ?>
<?php // print_r($image_object); ?>
<?php $image = $image_object['guid']; ?>

To write the URL into the HTML of the page:

<?php echo $image; ?>

Music Listings

A comprehensive (lengthy) tutorial covering creating a pod and displaying it through Pods pages and templates is at OpenScriptSolutions.

Leave a Reply