
joelandy14
VIP
Iota
Verificado
Verificación en dos pasos activada
Suscripción a IA
Hola, tengo una plantilla que consegui por hay
y no se como cambiar la categoria a mostrarte en este slider o carrusel, quiero poner la categoria de ESTRENOS .
Logre ubicar el codigo del carrusel y otros pero nose como cambiarlo, alguien me puede ayudar?
y no se como cambiar la categoria a mostrarte en este slider o carrusel, quiero poner la categoria de ESTRENOS .

Logre ubicar el codigo del carrusel y otros pero nose como cambiarlo, alguien me puede ayudar?
PHP:
<!-- modulo -->
<div id="car_top">
<div class="capa_a">
<i class="a"></i>
</div>
<div class="capa_b">
<i class="b"></i>
</div>
<div id="carrutop">
<ul>
<?php $rand_posts = get_posts('numberposts=5&orderby=rand'); foreach( $rand_posts as $post ) : ?>
<?php if (has_post_thumbnail()) {
$imgsrc = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID),'medium');
$imgsrc = $imgsrc[0];
} elseif ($postimages = get_children("post_parent=$post->ID&post_type=attachment&post_mime_type=image&numberposts=0")) {
foreach($postimages as $postimage) {
$imgsrc = wp_get_attachment_image_src($postimage->ID, 'medium');
$imgsrc = $imgsrc[0];
}
} elseif (preg_match('/<img [^>]*src=["|\']([^"|\']+)/i', get_the_content(), $match) != FALSE) {
$imgsrc = $match[1];
} else {
$filmaffinity = get_post_custom_values("Poster");
$imgsrc = $filmaffinity[0];
} ?>
<li>
<a href="<?php the_permalink() ?>"><i></i>
<div class="img"><img src="<?php echo $imgsrc; $imgsrc = ''; ?>" alt="<?php the_title(); ?> - <?php echo $terms = strip_tags( $terms = get_the_term_list( $post->ID, 'fecha-estreno' )); ?>" />
<span class="year"><?php echo $terms = strip_tags( $terms = get_the_term_list( $post->ID, 'fecha-estreno' )); ?></span>
<?php if($coo = $terms = strip_tags( $terms = get_the_term_list( $post->ID, 'calidad' ))) { ?>
<span class="calidad"><?php echo $coo; ?></span>
<?php } else { ?>
<span class="calidad">SD</span>
<?php } ?>
</div>
</a>
</li>
<?php endforeach; ?>
</ul>
</div>
</div>
<!-- fin modulo -->