Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter ElSebas

    (@elsebas)

    Fixed

    Thread Starter ElSebas

    (@elsebas)

    No didn’t make a difference. Here is are some screenshots of the code

    codigo3

    Thread Starter ElSebas

    (@elsebas)

    Also 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>
    Thread Starter ElSebas

    (@elsebas)

    Sorry didn’t know that here is the url:

    https://wordpress.pastebin.com/JGtnBtw3

    Thread Starter ElSebas

    (@elsebas)

    Problem solved thanks!!

    Thread Starter ElSebas

    (@elsebas)

    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 ??

    Thread Starter ElSebas

    (@elsebas)

    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(); ?>

    Thread Starter ElSebas

    (@elsebas)

    Ok 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)