ML Post Slider
Recent and dynamic posts? (3 posts)

  1. Martin
    Posted 3 years ago #

    I looked and install and from the plugin title I presumed this was able to display, say, the 5 most recent posts in a slider.
    From checking it out, I'm guessing that's not possible, yes?


  2. dwawobieg
    Plugin Author

    Posted 3 years ago #

    Unfortunately this is not possible yet. But your idea is good. When I'll do it I'll give You signal.

  3. avi111
    Posted 3 years ago #

    i tweaked the wordpress plugin "PHP Code for posts"

    i created a procedure for every post (with offset) and put it in the slider. i mean put the shortcode of [php snippet=1] in the post. you have to copy the code for every slide.

    the snippet is something like this:
    (when cat= is optional, and offset is going from 0 to the number of recent posts you want minus 1.

    <?php query_posts('cat=14,15&posts_per_page=1&offset=1'); ?>
    <?php while (have_posts()) : the_post(); ?>
    <a href='<?php the_permalink() ?>' title='<?php the_title(); ?>'>
    if ( has_post_thumbnail() ) {
       the_post_thumbnail(array('medium'), array('class' => 'alignleft'));
    <h4><a href="<?php the_permalink(); ?>" title="Read full post"><?php the_title(); ?></a></h4>
    <?php the_excerpt(); ?>
    <?php endwhile; ?>
    <?wp_reset_query(); ?>

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • ML Post Slider
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.