Featured Galleries implementation
-
Hi Andy / Drivingralle,
Saw the plugin, great idea. I know some css and PHP but not the whole riddle.
Just curious where I need to implement this in the edito. I am using wordpress 4.1 with the Bridge theme. I only want to display the galleries in the single posts and the blogrol as featured images. So I guess I have to implement in in single.php and blog-large-image.php (the one I’m using).
Is it simply inserting this code
$galleryArray = get_post_gallery_ids($post->ID);
<?php foreach ($galleryArray as $id) {
<img src=”<?php echo wp_get_attachment_url( $id ); ?>”>
<?php } ?>
In to these templates?
Hope you can help me with this, would be great. Not sure what you meant with
this ‘Do you know how to get anchor links from inside the loop?’ in another post though.. (I’m dutch:) )Well thanks in advance and for creating the plugin. Hope it’ll work for me too.
Best,
JW
- The topic ‘Featured Galleries implementation’ is closed to new replies.