- This topic has 1 reply, 2 voices, and was last updated 13 years ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- The forum ‘Generic’ is closed to new topics and replies.
Events Made Easy › Forums › Generic › Allow multiple images to properly attach to locations
Hi Franky,
Would be great if images could be stacked onto a location properly (i.e. enable the built in gallery feature) to attach to a location, at the moment it seems we need third party plugins to hack images into place when wordpress has perfectly good features that are good to go if only we could access them 🙂
At the moment, I add images to a page/post/cpt but I don’t insert them into post (so literally just attach them) then use this code to output them in my theme:
$attachments = get_posts( array( ‘post_type’ => ‘attachment’, ‘numberposts’ => -1, ‘post_status’ => null, ‘post_parent’ => $post->ID ) );
if ( $attachments ) {
foreach ( $attachments as $attachment ) { ?>
<?php } ?>
<?php } ?>
This would be mega useful if you could look into it… The workaround of using plugins and short codes is not toooo bad but it means you have to have it within the #_NOTES and you might not want them at that point of the page in your theme…
Any chance?
Since events are not posts there’s no other way than using shortcodes …