Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author madax

    (@dwawobieg)

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

    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(); ?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Recent and dynamic posts?’ is closed to new replies.