Last active
December 16, 2015 14:09
-
-
Save whyisjake/5446381 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Individual Arrays | |
array | |
0 => string 'Keith Pelczarski' (length=16) | |
1 => string 'Heather Harding' (length=15) | |
array | |
0 => string 'Lovebian Designs is run by Heather and Keith (a.k.a. Coco). They are jack-of-all-trades with strong interests in design, screen printing, and sewing. They hand make their products with love.' (length=190) | |
array | |
0 => string 'http://makerfaire.files.wordpress.com/2013/04/hk_unicorns-500x375.jpg' (length=69) | |
array | |
0 => string '6f5d82cff2fc45339bc54ec61f9e74fb' (length=32) | |
1 => string '' (length=0) | |
// Merged Array | |
array | |
0 => | |
array | |
0 => string 'Keith Pelczarski' (length=16) | |
1 => string 'Heather Harding' (length=15) | |
1 => | |
array | |
0 => string 'Lovebian Designs is run by Heather and Keith (a.k.a. Coco). They are jack-of-all-trades with strong interests in design, screen printing, and sewing. They hand make their products with love.' (length=190) | |
2 => | |
array | |
0 => string 'http://makerfaire.files.wordpress.com/2013/04/hk_unicorns-500x375.jpg' (length=69) | |
3 => | |
array | |
0 => string '6f5d82cff2fc45339bc54ec61f9e74fb' (length=32) | |
1 => string '' (length=0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (!empty($json->m_maker_name)) { | |
$i = 0; | |
var_dump($json); | |
echo '<h3>Makers:</h3>'; | |
$makers = $json->m_maker_name; | |
foreach ($makers as $maker) { | |
echo '<div class="media">'; | |
if ( isset( $json->m_maker_photo[ $i ] ) ) { | |
echo '<img src="' . wpcom_vip_get_resized_remote_image_url( $maker->m_maker_photo[ $i ], 130, 130, true ) . '" class="media-object thumbnail pull-left" />'; | |
} | |
echo '<div class="media-body">'; | |
echo '<h4>' . $maker . '</h4>'; | |
echo '<p>' . Markdown( $json->m_maker_bio[ $i ] ) . '</p>'; | |
echo '</div>'; | |
$i++; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment