• Hi. I found this theme that’s not in the WP database call Plask.

    It has this function that isn’t actually working, where it presents the latest post with the thumbnail picture. I can’t seem to figure out how to feed a picture into it though.
    The theme has specific options, but none concerning the feature exists.

    Could someone have a peak at the contents of feat.php (the feature’s function file) for me and tell me where it sources the pictures from? I suck at php/sql

    <script type="text/javascript">
    stepcarousel.setup({
    	galleryid: 'mygallery', //id of carousel DIV
    	beltclass: 'belt', //class of inner "belt" DIV containing all the panel DIVs
    	panelclass: 'panel', //class of panel DIVs each holding content
    	panelbehavior: {speed:500, wraparound:true, persist:true},
    	defaultbuttons: {enable: true, moveby: 1, leftnav: ['<?php bloginfo('template_directory'); ?>/images/left.png', -20, 60], rightnav: ['<?php bloginfo('template_directory'); ?>/images/right.png', 0, 60]},
    	statusvars: ['statusA', 'statusB', 'statusC'], //register 3 variables that contain current panel (start), current panel (last), and total panels
    	contenttype: ['external'] //content setting ['inline'] or ['external', 'path_to_external_file']
    })
    
    </script>
    
    <div id="mygallery" class="stepcarousel">
    <div class="belt">
    <?php
    	$slidecat = get_option('pov_slide_category');
    	$slidecount = get_option('pov_slide_count');
    
    	$my_query = new WP_Query('category_name= '. $slidecat .'&showposts='.$slidecount.'');
    while ($my_query->have_posts()) : $my_query->the_post();$do_not_duplicate = $post->ID;
    ?>
    
    <div class="panel">
    
    		<div class="slideimg">
    		<?php $screen = get_post_meta($post->ID,'slide', true); ?>
    		<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>" > <img src="<?php echo ($screen); ?>" width="450" height="250" 	alt="<?php the_title(); ?>"/> </a>
    		</div>
    
    		<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php 	the_title(); ?></a>
            </h2>
            <div class="slideex">
            <?php the_excerpt(); ?>
           <h4> <p><a href="<?php the_permalink() ?>" title="Permanent Link to <?php the_title(); ?>">Read More &raquo;</a></p></h4>
    		</div>
    </div>
    
    <?php endwhile; ?>
    
    </div>
    
    </div>

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • When you edit or create a new post go to the custom field box and use “slide” as name with out quotes, and then as the value put the URL of the thumbnail.

    Thread Starter Number_6

    (@number_6)

    Gee whiz, thanks for that!

    That’s my dilemma answered.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Advanced Featured-posts function’ is closed to new replies.