ElSebas
Forum Replies Created
Viewing 8 replies - 1 through 8 (of 8 total)
-
Forum: Fixing WordPress
In reply to: Header appearing in body tagFixed
Forum: Fixing WordPress
In reply to: Header appearing in body tagForum: Fixing WordPress
In reply to: Header appearing in body tagAlso don’t know why but after the body tag and before the content I see some space in firebug and in Chrome show me some quotes like:
<html> <head> </head> <body> " " meta tags and stylesheets the content </body> </hmtl>
Forum: Fixing WordPress
In reply to: Header appearing in body tagSorry didn’t know that here is the url:
Forum: Fixing WordPress
In reply to: Problem with imagesProblem solved thanks!!
Forum: Fixing WordPress
In reply to: Problem with html markup!!Ok problem solved, just need it to change the div main outside the featured haha I can’t believe that I missed that. Anyways thank you randinicole ??
Forum: Fixing WordPress
In reply to: Problem with html markup!!I dont upload the site yet, but here is the full code:
Index:<?php get_header(); ?> <?php if(is_home() && !is_paged()): ?> <?php include (TEMPLATEPATH .'/featured.php'); ?> <?php endif; ?> <div id="wrap_minipost"> <?php $limit = get_option('post_per_page'); query_posts('showposts='.$limit.'&paged='.$paged.'&cat=-7'); ?> <?php if(have_posts()) :?> <?php while(have_posts()) : the_post(); ?> <!--haz lo que tengas q hacer aqui--> <div id="pst"> <div class="img_minipost"> <img src="<?php echo get_post_meta($post->ID, 'thumbnail', true) ?>" alt="Post Image" class="postimg" /> <section class="border"></section> <h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1> <div class="fecha"> <span class="dia"><?php the_time('j') ?></span> <span class="mes"><?php the_time('M') ?></span> </div><!--Termina fecha--> </div><!--Termina img_minipost--> <?php the_content(''); ?><!--El Contenido--> <p><a href="<?php the_permalink(); ?>" rel="leer">Leer mas</a></p> </div><!--Se cierra pst--> <!--haz lo que tengas q hacer aqui--> <?php endwhile; ?> <?php else: ?> <h2>No hay nada</h2> <p>Lo siento, pero lo que buscas no esta aqui</p> <p><a href="<?php echo get_option('home'); ?>">Regresar al inicio</a></p> <?php endif; ?> <div id="pagination"> <ul> <li class="anteriores"><?php next_posts_link('Articulos anteriores') ?></li> <li class="nuevos"><?php previous_posts_link('Articulos nuevos') ?></li> </ul> </div><!--Termina pagination--> </div><!--Termina wrap_minipost--> </div><!--Termina main--> <?php get_sidebar(); ?> <div id="footer"> </div><!--Termina footer--> <?php get_footer(); ?>
Featured:
<div id="main"> <div id="wrap_featured"> <?php $my_query = new WP_Query('category_name=Featured&showposts=2'); while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate = $post->ID; ?> <div id="featured_post"> <img src="<?php echo get_post_meta($post->ID, 'imagen_principal', true) ?>" alt="Post Image" class="postimg" /> <div id="info_post"> <h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1> <?php the_content(''); ?> </div><!--Termina info_post--> </div><!--Termina featured_post--> <?php endwhile; ?> </div><!--Termina wrap_featured-->
Page:
<?php get_header(); ?> <?php if(is_home() && !is_paged()): ?> <?php include (TEMPLATEPATH .'/featured.php'); ?> <?php endif; ?> <div id="main"> <div id="wrap_minipost"> <?php $limit = get_option('post_per_page'); query_posts('showposts='.$limit.'&paged='.$paged.'&cat=-7'); ?> <?php if(have_posts()) :?> <?php while(have_posts()) : the_post(); ?> <!--haz lo que tengas q hacer aqui--> <div id="pst"> <div class="img_minipost"> <img src="<?php echo get_post_meta($post->ID, 'thumbnail', true) ?>" alt="Post Image" class="postimg" /> <section class="border"></section> <h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1> <div class="fecha"> <span class="dia"><?php the_time('j') ?></span> <span class="mes"><?php the_time('M') ?></span> </div><!--Termina fecha--> </div><!--Termina img_minipost--> <?php the_content(''); ?><!--El Contenido--> <p><a href="<?php the_permalink(); ?>" rel="leer">Leer mas</a></p> </div><!--Se cierra pst--> <!--haz lo que tengas q hacer aqui--> <?php endwhile; ?> <?php else: ?> <h2>No hay nada</h2> <p>Lo siento, pero lo que buscas no esta aqui</p> <p><a href="<?php echo get_option('home'); ?>">Regresar al inicio</a></p> <?php endif; ?> <div id="pagination"> <ul> <li class="anteriores"><?php next_posts_link('Articulos anteriores') ?></li> <li class="nuevos"><?php previous_posts_link('Articulos nuevos') ?></li> </ul> </div><!--Termina pagination--> </div><!--Termina wrap_minipost--> </div><!--Termina main--> <?php get_sidebar(); ?> <div id="footer"> </div><!--Termina footer--> <?php get_footer(); ?>
Forum: Fixing WordPress
In reply to: Problem with imagesOk I dont get it sorry :(, where do I put that,
<img src="<?php echo get_post_meta($post->ID, 'thumbnail', true) ?>" alt="Post Image" class="img_catfeat" />
I do what?
<img src="<?php echo get_post_meta($post->ID, array(Featured,thumbnail), true) ?>" alt="Post Image" class="img_catfeat" />
Sorry could you be more specific
Viewing 8 replies - 1 through 8 (of 8 total)