WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Martin
    Member
    Posted 1 year 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?

    http://wordpress.org/extend/plugins/ml-post-slider/

  2. dwawobieg
    Member
    Plugin Author

    Posted 1 year ago #

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

  3. avi111
    Member
    Posted 1 year 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(); ?>
    
    <div>
    <a href='<?php the_permalink() ?>' title='<?php the_title(); ?>'>
    <?php
    if ( has_post_thumbnail() ) {
       the_post_thumbnail(array('medium'), array('class' => 'alignleft'));
    }
    ?>
    </a>
    <h4><a href="<?php the_permalink(); ?>" title="Read full post"><?php the_title(); ?></a></h4>
    <?php the_excerpt(); ?>
    </div>
    <br>
    <?php endwhile; ?>
    
    <?wp_reset_query(); ?>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.