I have a static HTML page. On that page I want to show the latest 10 posts from my WordPress Blog.
I managed to do that with this code:
<?php require('./blog/wp-blog-header.php'); ?> <?php $args = array( 'numberposts' => 10 ); $lastposts = get_posts( $args ); foreach($lastposts as $post) : setup_postdata($post); ?> <?php echo get_the_post_thumbnail($post->ID, 'full'); ?> <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> <?php the_content(); ?> <?php endforeach; ?>
It works fine. The only thing is, that it does show the images as thumbnails. The same as on my WordPress Blog where I use the NextGen plugin.
I want to show the full image on my static page, because when I click on the image it directs me to another page for the large image and I don’t want that.
So my question is: is it possible to show the large image on the static page? Or is it possible to show the large image in a lightbox when I click on the thumbnail?
This is my testpage.
- The topic ‘[Plugin: NextGEN Gallery] NextGen on static page?’ is closed to new replies.