TJong
Forum Replies Created
-
Thanks for the quick reply, it didnt work the first time but after some settings it was indeed the Display calendar in events page? with a combination of the Overwrite format.
Thanks again for your help 🙂
Hi there,
Well I tried a lot to fix it but without succes. I eventually installed an other plugin that does the job: Nivo Slider for WordPress.
I hope this plugin will fix your problem.
Cheers
Thanks you so so much, it was indeed that I had forgotten to add those php lines.. I do not understand how that could happen.
Thanks again!
Thanks for your reply, I just installed the plugin. But still it isnt working correctly, my images are now loading but my slider is not..
Would you happen to know what is wrong?
Forum: Plugins
In reply to: Splitting up text and images in a pageThanks for your reaction, here is the code. I just noticed that this code only works for the first attachment.
Function.php part
function get_first_attachment() { global $post; $id = $post->ID; $attachments = get_children( array('post_parent' => $id, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'DESC', 'orderby' => 'menu_order ASC') ); $tpl = get_bloginfo('template_url'); $nothing = $tpl.'/nothing.jpg'; if ( empty($attachments) ) return $nothing; foreach ( $attachments as $id => $attachment ) $link = wp_get_attachment_url($id); return $link; }HTML Loop part
<!-- put this inside the loops --> <div class="alignleft"><img src="<?php echo get_first_attachment(); ?>" width="150" height="150"></div> <div class="alignright"> <!-- your title, text and meta goes here --> </div>