Respuesta a: Problema paginacion en Index.2.7

Inicio Foros WordPress Plugins Problema paginacion en Index.2.7 Respuesta a: Problema paginacion en Index.2.7

#25593

Vale,si perdona, si estan…jeje..
Este es el blog.php :
[code]&lt;div class=&quot;box&quot;&gt;</p>
<p> &lt;?php<br />
include(TEMPLATEPATH . ‘/includes/version.php’);</p>
<p> $the_query = new WP_Query(‘cat=-‘. $ex_feat . ‘,-‘ . $ex_vid . ‘&amp;showposts=’ . $showposts . ‘&amp;orderby=post_date&amp;order=desc’);</p>
<p> $counter = 0;</p>
<p> while ($the_query-&gt;have_posts()) : $the_query-&gt;the_post(); $do_not_duplicate = $post-&gt;ID;<br />
?&gt;</p>
<p> &lt;?php $counter++; ?&gt;</p>
<p> &lt;div class=&quot;post-alt blog&quot; &lt;?php if ( ($counter == 4) ) { echo ‘style=&quot;background:none !important;margin-bottom:0 !important;&quot;’; ?&gt;&lt;?php } ?&gt;&gt;</p>
<p> &lt;?php if ( get_post_meta($post-&gt;ID, ‘image’, true) ) { ?&gt; &lt;!– DISPLAYS THE IMAGE URL SPECIFIED IN THE CUSTOM FIELD –&gt;</p>
<p> <img src="&quot;&lt;?php" />/thumb.php?src=&lt;?php echo get_post_meta($post-&gt;ID, &quot;image&quot;, $single = true); ?&gt;&amp;h=57&amp;w=100&amp;zc=1&amp;q=95&quot; alt=&quot;&quot; class=&quot;th&quot; /&gt; </p>
<p> &lt;?php } else { ?&gt; &lt;!– DISPLAY THE DEFAULT IMAGE, IF CUSTOM FIELD HAS NOT BEEN COMPLETED –&gt;</p>
<p> <img src="&quot;&lt;?php" />/images/no-img-thumb.jpg&quot; alt=&quot;&quot; class=&quot;th&quot; /&gt;</p>
<p> &lt;?php } ?&gt; </p>
<p> &lt;h2&gt;&lt;?php the_category(‘, ‘) ?&gt;&lt;/h2&gt;<br />
&lt;h3&gt;<a title="&quot;Permanent">&quot; href=&quot;&lt;?php the_permalink() ?&gt;&quot; rel=&quot;bookmark&quot;&gt;&lt;?php the_title(); ?&gt;</a>&lt;/h3&gt;<br />
&lt;p class=&quot;posted&quot;&gt;Posted on &lt;?php the_time(‘d F Y’); ?&gt;&lt;/p&gt;</p>
<p> &lt;div class=&quot;entry&quot;&gt;<br />
&lt;?php the_content(‘&lt;span class=&quot;continue&quot;&gt;Continue Reading&lt;/span&gt;’); ?&gt;<br />
&lt;/div&gt;</p>
<p> &lt;p class=&quot;comments&quot;&gt;&lt;?php comments_popup_link(‘Comments (0)’, ‘Comments (1)’, ‘Comments (%)’); ?&gt;&lt;/p&gt;</p>
<p> &lt;/div&gt;&lt;!–/post–&gt; </p>
<p> &lt;?php endwhile; ?&gt; </p>
<p> &lt;div class=&quot;fix&quot;&gt;&lt;/div&gt;</p>
<p> &lt;?php $archives_page = get_option(‘woo_archives_page’) . ‘/’; ?&gt;</p>
<p> &lt;p class=&quot;ar hl3&quot;&gt;<a href="&quot;&lt;?php">&quot; class=&quot;more&quot;&gt;SEE MORE ARTICLES IN THE ARCHIVE</a>&lt;/p&gt;</p>
<p>&lt;/div&gt;[/code]
ý este el default.php:
<div class="box">

<?php
include(TEMPLATEPATH . ‘/includes/version.php’);

$the_query = new WP_Query(‘cat=-‘. $ex_feat . ‘,-‘ . $ex_vid . ‘&showposts=’ . $showposts . ‘&orderby=post_date&order=desc’);

$counter = 0; $counter2 = 0;

while ($the_query->have_posts()) : $the_query->the_post(); $do_not_duplicate = $post->ID;
?>

<?php $counter++; $counter2++; ?>

<div class="post <?php if ($counter == 1) { echo ‘fl’; } else { echo ‘fr’; $counter = 0; } ?>">

<?php if ( get_post_meta($post->ID, ‘image’, true) ) { ?> <!– DISPLAYS THE IMAGE URL SPECIFIED IN THE CUSTOM FIELD –>

/thumb.php?src=<?php echo get_post_meta($post->ID, "image", $single = true); ?>&h=57&w=100&zc=1&q=95" alt="" class="th" />

<?php } else { ?> <!– DISPLAY THE DEFAULT IMAGE, IF CUSTOM FIELD HAS NOT BEEN COMPLETED –>

/images/no-img-thumb.jpg" alt="" class="th" />

<?php } ?>

<h2><?php the_category(‘, ‘) ?></h2>
<h3>" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></h3>
<p class="posted">Posted on <?php the_time(‘d F Y’); ?></p>
<p><?php echo strip_tags(get_the_excerpt(), ‘‘); ?> <span class="continue">" href="<?php the_permalink() ?>">Continue Reading</span></p>
<p class="comments"><?php comments_popup_link(‘Comments (0)’, ‘Comments (1)’, ‘Comments (%)’); ?></p>

</div><!–/post–>

<?php if ( !($counter2 == $showposts) && ($counter == 0) ) { echo ‘<div class="hl-full"></div>’; ?> <div style="clear:both;"></div> <?php } ?>

<?php endwhile; ?>

<div class="fix" style="height:20px"></div>

<p class="ar hl3">" class="more">SEE MORE ARTICLES IN THE ARCHIVE</p>

</div><!–/box–>[code][/code]

Pin It on Pinterest

Ir al contenido