Hello!
I am having a very boring problem. I don't know how to solve it.
When I click "next" on the first page, the URL shows me page/2/ but the content is the same of the page 1.
Here is the URL to you see it: http://www.thaismarostica.com.br/site
I have seen many problems like this and people were saying about query_posts. The only archive I found with this was the "index.php".
People found many solutions, but I coudn't. Here is my code:
<?php get_header(); ?>
<?php dynamic_sidebar("slider"); ?>
<?php if(get_option("ocmx_home_page_layout") == "widget") :
if (function_exists('dynamic_sidebar') && is_active_sidebar("widget1")) : ?>
<div id="widget-block" class="clearfix">
<ul class="widget-list clearfix">
<?php dynamic_sidebar("widget1"); ?>
</ul>
</div>
<?php endif;
else :
if(get_option("ocmx_home_page_categories") && get_option("ocmx_home_page_categories") !== 0):
$use_catid = get_option("ocmx_home_page_categories");
$fetch_category = get_category_by_slug($use_catid);
$use_category = "cat=".$fetch_category->term_id."&";
else :
$use_category = "";
endif;
if (is_paged()) :
query_posts($use_category ."showposts=".get_option("ocmx_home_page_posts")."&paged=".get_query_var('paged'));
elseif (is_home()) :
query_posts($use_category."showposts=".get_option("ocmx_home_page_posts"));
endif; ?>
<ul class="double-cloumn clearfix">
<li id="left-column">
<ul class="blog-main-post-container">
<?php
query_posts('cat=-3');
if (have_posts()) : while (have_posts()) : the_post();
setup_postdata($post);
$link = get_permalink($post->ID);
$image = get_obox_image(528, '240', '', 'div', 'post-image', true); ?>
<li class="post">
<?php echo $image; ?>
<h2 class="post-title"><a href="<?php echo $link; ?>"><?php the_title(); ?></a></h2>
<div class="dater">
<span class="month"><?php echo date_i18n('M', strtotime($post->post_date)); ?></span>
<span class="day"><?php echo date_i18n('jS', strtotime($post->post_date)); ?></span>
</div>
<div class="copy clearfix">
<?php if($post->post_excerpt !== "") :
the_excerpt();
else :
the_content("");
endif; ?>
<?php if(get_option("ocmx_meta_reading") != "false"): ?>
<p><a href="<?php echo $link; ?>" class="action-link"><?php _e("Continue lendo. →", "ocmx"); ?></a></p>
<?php endif; ?>
</div>
</li>
<?php endwhile; ?>
<?php else: ?>
<div class="no-posts clearfix">
<h1><?php _e("No post found"); ?></h1>
<p><?php _e("Sorry, no posts matched your criteria."); ?></p>
</div>
<?php endif; ?>
</ul>
<?php motionpic_pagination("clearfix", "pagination clearfix"); ?>
</li>
<?php get_sidebar(); ?>
</ul>
<?php endif; ?>
<?php get_footer(); ?>
Any ideas?