Como inserto las entradas personalizadas en mi index
-
Hola a todos, acabo de crear una entrada personalizada, mediante este codigo en fuction.php
add_action('init', 'crear_tipo_videojuegos'); function crear_tipo_videojuegos() { register_post_type( 'videojuegos', array( 'labels' => array( 'name' => __('Videojuegos'), 'singular_name' => __('Videojuego') ), 'public' => true, 'show_ui' => true, 'rewrite' => array( 'slug' => 'videojuegos', 'with_front' => false ), 'supports' => array('title','editor','author','comments'), 'has_archive' => true ) ); }
Y todo funciona correctamente, pero me doy con la sorpera que no aparece los temas en mi index.php cuyo codigo es el siguiente:
<?php get_header(); include "opciones/options.php"; ?> <div id="global"> <?php if(!empty($options['admail'])) { ?> <div id="adsense-home"><?php echo $options['admail']; ?></div> <?php } ?> <div id="contenido"> <?php if(isset($options['option3']) && !empty($options['option3'])) { include "opciones/loop-completo.php"; } elseif(!empty($options['cat_des'])) { $categ_com = $options['cat_des']; include"opciones/loop-resumen.php"; } else { $categ_com = false; include"opciones/loop-resumen.php"; } ?> </div> <?php get_sidebar(); ?> <?php get_footer(); ?>
Segun e investigado y estudiado el codigo, tiene algo que ver con el lop-resumen.php que se muestra en mi index cuyo codigo es el siguiente:
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="post"> <div class="fecha_cal"><div class="fecha1"><?php the_time('j') ?></div><div class="fecha2"><?php the_time('M') ?></div><div class="fecha3"><?php the_time('Y') ?></div></div><h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2> <div class="clear"></div> <div class="fech"> <?php $author_email = get_the_author_email(); ?> <?php echo get_avatar($author_email, '32');?> Artículo escrito por <b><?php the_author(); ?></b>, guardado en <?php the_category(', '); ?><br /><p><?php comments_popup_link('Sin comentarios', '1 comentario', '% comentarios'); ?></p> </div> <div class="entrada"> <?php if (!in_category($categ_com)) { ?> <img src="<?php echo get_bloginfo('template_url')?>/thumb/timthumb.php?src=<?php echo catch_that_image() ?>&w=227&h=136" class="first_img"/> <div class="resu"><?php the_excerpt (); ?></div> <p style="margin-top: -7px;"><a href="<?php the_permalink() ?>">Seguir leyendo »</a></p> <?php } else { the_content (); } ?> </div> <div class="clear"></div> </div> <?php endwhile; ?> <div class="navigation"> <?php if(function_exists('pagenavi')) { pagenavi(); } ?> </div> <?php else : ?> <h2>Sin articulos..</h2> <?php endif; ?>
Que estoy haciendo mal? o que tengo que agregar adicional?
Gracias por la ayuda que me puedan brindar.
Saludos!
- El debate ‘Como inserto las entradas personalizadas en mi index’ está cerrado a nuevas respuestas.