rayden
Dseda
Programador
Verificación en dos pasos activada
🔒 Este tema está cerrado para nuevas respuestas.
⏰ Solo el creador del tema puede solicitar la reapertura de sus propios temas, pero únicamente dentro de los 60 días previos a la última actualización.
Hola rayden, una pregunta, como puedo eliminar el banner de spiderman que aparece arriba??
Y además en el "menú" naranja que aparece tambien arriba antes me ponía un botón que llevaba a la home y ahora no aparece, sabes que podrá ser??
Gracias por el theme rayden, consulta.. donde estan ubicadas las opciones para regular la separacion y tamaño de las imagenes del carrousel?
Y estas mismas opciones pero para el body?
Gracias 😉
En el archivo style.css---.
Exacto gracias, de esa manera se regula el tamaño, pero la separacion entre cada poster, por un lado los del carrousely por otro los del body? Saludos.
carrusel
#estrenos ul > li {position: relative; float: left;list-style: none;margin: 0 20px 20px 0;font-size: 10px;z-index: 1;}
Post en el home
.pelicula {color:#555;width: 140px;height:250px;margin:5px !important;float:left;position:relative;}
La parte de importante, es por internet explorer.
Impecable solucionado, lo que no pude cambiar es los post relacionados de tags a categorias siguiendo el enlace que dejaste, como seria la modificacion?
Muéstrame que código estas colocando
<div id="relacion">
<?php
$original_post = $post;
$tags = wp_get_post_tags($post->ID);
if ($tags) {
echo '<div class="trela">Quizás también te interese...</div>';
$first_tag = $tags[0]->term_id;
$args=array(
'tag__in' => array($first_tag),
'post__not_in' => array($post->ID),
'showposts'=>4,
'caller_get_posts'=>1
);
$my_query = new WP_Query($args);
if( $my_query->have_posts() ) {
echo "";
while ($my_query->have_posts()) : $my_query->the_post(); ?>
<div class='tpost'>
<a href="<?php the_permalink() ?>">
<img width="130" height="200" src="<?php getImage('1'); ?>" alt="<?php the_title(); ?>" />
</a>
<h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
</div>
<?php endwhile;
echo "";
}
}
$post = $original_post;
wp_reset_query();
?>
</div>
PHP:<div id="relacion"> <?php $original_post = $post; $tags = wp_get_post_tags($post->ID); if ($tags) { echo '<div class="trela">Quizás también te interese...</div>'; $first_tag = $tags[0]->term_id; $args=array( 'tag__in' => array($first_tag), 'post__not_in' => array($post->ID), 'showposts'=>4, 'caller_get_posts'=>1 ); $my_query = new WP_Query($args); if( $my_query->have_posts() ) { echo ""; while ($my_query->have_posts()) : $my_query->the_post(); ?> <div class='tpost'> <a rel="nofollow" href="<?php the_permalink() ?>"> <img width="130" height="200" src="<?php getImage('1'); ?>" alt="<?php the_title(); ?>" /> </a> <h2><a rel="nofollow" href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2> </div> <?php endwhile; echo ""; } } $post = $original_post; wp_reset_query(); ?> </div>
<div id="relacion">
<?php
$original_post = $post;
global $post;
$categories = get_the_category($post->ID);
if ($categories)
{
$category_ids = array();
foreach ($categories as $individual_category)
$category_ids[] = $individual_category->term_id;
$args = array(
'category__in' => $category_ids,
'post__not_in' => array(
$post->ID
 ,
'posts_per_page' => 4,
'caller_get_posts' => 1
$my_query = new wp_query($args);
if ($my_query->have_posts())
{
echo '<div class="trela">Peliculas relacionadas</div>';
while ($my_query->have_posts())
{
$my_query->the_post(); ?>
<?php $values = get_post_custom_values("COD_posters"); if (isset($values[0])) { ?>
<div class='tpost'>
<a href="<?php the_permalink() ?>">
<img width="130" height="200" src="<?php $values= get_post_custom_values("COD_posters"); echo $values[0]; ?>" alt="<?php the_title(); ?>" />
</a>
<h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
</div>
<?php } else { ?>
<div class='tpost'>
<a href="<?php the_permalink() ?>">
<img width="130" height="200" src="<?php bloginfo('template_directory'); ?>/images/no.png" alt="" />
</a>
<h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
</div>
<?php } ?>
<?php
}
echo '';
}
}
$post = $original_post;
wp_reset_query();
?>
</div>
cuando deja que instale el theme y modifico el codigo . te aviso
Puede ser que tenga un error?, por que me marca
HTML:Parse error: syntax error, unexpected ';', expecting ')' in /home/u260282928/public_html/wp-content/themes/dimensionpeliculas/single.php on line 34
Serie esta simple linea:
Parse error: syntax error, unexpected ';', expecting ')' in /home/u260282928/public_html/wp-content/themes/dimensionpeliculas/single.php on line 34
Gustar me gusta pero ¿No os tarda un poco en cargar?
Enviado desde mi Nexus 4 mediante Tapatalk
Al parecer el codigo se colo algún smile 🙂
XD exacto gracias ahora si, solo que no carga las imagenes, los titulos todo bien pero nada de las portadas ¿?
<div id="relacion">
<?php
$original_post = $post;
global $post;
$categories = get_the_category($post->ID);
if ($categories)
{
$category_ids = array();
foreach ($categories as $individual_category)
$category_ids[] = $individual_category->term_id;
$args = array(
'category__in' => $category_ids,
'post__not_in' => array(
$post->ID
),
'posts_per_page' => 4,
'caller_get_posts' => 1
);
$my_query = new wp_query($args);
if ($my_query->have_posts())
{
echo '<div class="trela">Peliculas relacionadas</div>';
while ($my_query->have_posts())
{
$my_query->the_post(); ?>
<div class='tpost'>
<a href="<?php the_permalink() ?>">
<img width="130" height="200" src="<?php getImage('1'); ?>" alt="<?php the_title(); ?>" />
</a>
<h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
</div>
<?php
}
echo '';
}
}
$post = $original_post;
wp_reset_query();
?>
</div>
Sorry, ese codigo era de un theme con otra edicion lol.
ahora si impecable, gracias :encouragement:
---------- Post agregado el 21-mar-2014 hora: 04:49 ----------
ah una cosa rayden, para mostrar el carrusel en todas las paginas? leei algo de la propiedad "if"
<script type="text/javascript">jQuery(document).ready(function() { jQuery('#portadas').jcarousel({ animation: 2500, auto: 3, wrap: 'circular' });});</script><div id="estrenos"><div class="marco-filas"><?php $kteg = get_option('ray_kteg'); ?><?php $numk = get_option('ray_numk');?><ul id="portadas" class="marco-cinta"> <?php $my_query = new WP_Query('category_name='.$kteg.'&showposts='.$numk.''); while ($my_query->have_posts()) : $my_query->the_post();$do_not_duplicate = $post->ID; ?> <li><a title="<?php the_title(); ?>" href="<?php the_permalink() ?>"><img class="panel" src="<?php getImage('1'); ?>" alt="<?php the_title(); ?>" width="130" height="200" /></a> </li> <?php endwhile; ?></ul></div></div>
🔒 Este tema está cerrado para nuevas respuestas.
⏰ Solo el creador del tema puede solicitar la reapertura de sus propios temas, pero únicamente dentro de los 60 días previos a la última actualización.
Utilizamos cookies y tecnologías similares para los siguientes fines:
¿Aceptas las cookies y estas tecnologías?
Utilizamos cookies y tecnologías similares para los siguientes fines:
¿Aceptas las cookies y estas tecnologías?