Hi all. I have a wp blog that has a slide show. There are 5 images that run through the slide, and while I have the images in place and want to keep those images, I need to update the php to put text over those images. Right now, it’s wanting to put post content over the images, but I don’t want them to be linked to the posts. I simply want to edit the slide’s php to say 5 different things. (one thing per slide) I would appreciate any help in this matter.
Here is what the code looks like now:
<?php if(get_theme_option('featured_posts') != '') { ?>
<?php
$featured_posts_category = get_theme_option('featured_posts_category');
if($featured_posts_category != '' && $featured_posts_category != '0') {
global $post;
$featured_posts = get_posts("numberposts=5&&category=$featured_posts _category");
$i = 0;
foreach($featured_posts as $post) {
setup_postdata($post);
if ( version_compare( $wp_version, '2.9', '>=' ) ) {
$slide_image_full = get_the_post_thumbnail($post->ID,'large', array('class' => 'full'));
$slide_image_thumbnail = get_the_post_thumbnail($post->ID,'large', array('class' => 'thumbnail'));
} else {
$get_slide_image = get_post_meta($post->ID, 'featured', true);
$slide_image_full = "
";
$slide_image_thumbnail = "
";
}
?>
<?php }
} else {
for($i = 1; $i <=5; $i++) {
?>
<?php
}
}
<?php the_title(); ?>
<?php the_excerpt(); ?> <?php echo $slide_image_full; ?> <?php echo $slide_image_thumbnail; ?>This is featured post <?php echo $i; ?>Title
To set your featured posts, please go to your theme options page in wp-admin. You can also disable featured posts slideshow if you don't wish to display them.
?>