![]() |
|
||||||
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Hi!
I set up my blog page to show only 3 posts per page. But when I click on the "Next Page" link at the bottom to get to the second page of the blog and read 3 next posts, I get a "Sorry, no entries found for what you're looking for". How can I fix this? Thanks!! Blog page: http://www.elpoderdelaprincesa.com/blog Marco |
|
#2
|
||||
|
||||
|
Quote:
When you set up the blog page, did you follow these instructions? If you did, can you show us the page_blog.php file? HTH,
__________________
Charles "Rubeus Hagrid" Clarkson StudioPress on Facebook I'm not really a smart person. I just play one on the Internet. Please use the HTML
or PHP tags for pasting code.Please make your links click-able: this_is_annoying.com http://this_is_not_annoying.com. |
|
#3
|
|||
|
|||
|
Hi Charles, Thanks for the reply.
The number of posts was set up at the LifeStyle Them Options panel. I had set up the blog page but not configured it to show all categories, so what I did was create subcategories of a main category named "blog". Then, I had installed the Category Base plugin to remove "category" from permalinks, so I ended up with a category and a page named "Blog", that's why it didn't work. I changed the page_blog.php file to show all posts from all categories, removed the plugin, removed the main category blog, and the "Next Page" link worked. Now I have another problem. The first page of the blog doesn't show/load the background and border of the content area (wrap), but when you click to go to the second page of the blog (which now works), there, it loads w/o a problem. What am I doing wrong? This is the code of my page_blog.php file... Code:
<?php
/*
Template Name: Blog
*/
?>
<?php get_header(); ?>
<div id="content">
<div id="contentleft">
<div class="postarea">
<?php include(TEMPLATEPATH."/breadcrumb.php");?>
<?php global $more; $more = 0; ?>
<?php $blog_cat_1 = get_option('lifestyle_blog_cat_1'); $blog_cat_1_num = get_option('lifestyle_blog_cat_1_num'); if(!$blog_cat_1) $blog_cat_1 = 1; //setting a default ?>
<?php $page = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("showposts=".$blog_cat_1_num."&paged=$page"); while ( have_posts() ) : the_post() ?>
<h1><?php the_title(); ?></h1>
<div class="date">
<div class="dateleft">
<span class="time"><?php the_time('F j, Y'); ?></span> por <?php the_author_posts_link(); ?> <?php edit_post_link('(Edit)', '', ''); ?>
Guardado en <?php the_category(', ') ?></p>
</div>
<div class="dateright">
<span class="icomment"><?php comments_number('Haz un comentario', '1 Comentario', '% Comentarios'); ?></span></p>
</div>
</div>
<?php the_content(__('[Read more]'));?><div style="clear:both;"></div>
<div class="postmeta2">
Guardado en: <?php the_category(', ') ?>
Etiquetas: <?php the_tags('') ?>
</div>
<?php endwhile; ?>
<?php posts_nav_link(); ?></p>
</div> </div>
</div>
<?php include(TEMPLATEPATH."/sidebar.php");?>
</div>
<?php get_footer(); ?>
Marco |
|
#4
|
||||
|
||||
|
Quote:
HTH,
__________________
Charles "Rubeus Hagrid" Clarkson StudioPress on Facebook I'm not really a smart person. I just play one on the Internet. Please use the HTML
or PHP tags for pasting code.Please make your links click-able: this_is_annoying.com http://this_is_not_annoying.com. |
|
#5
|
|||
|
|||
|
Thanks! that helped only in the first page of the blog. When you click to go to the second, then the sidebar appears at the bottom, right after the content. The code that I think is causing this is a code I put to make the "Read More" tag work in pages, because whenever I remove that code, the page works perfectly, but I really want to have the Read More function. Any idea how I can do this?
The code I added is this: Code:
<?php global $more; $more = 0; ?> Code:
</div>
<?php global $more; $more = 0; ?>
<?php the_content(__('[Read more]'));?><div style="clear:both;"></div>
Marco |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| I wan't delete some words: "advertisement" "comments" "subscribe".... in Home | Francois Laurent | General Discussion | 2 | 01-06-2010 11:11 AM |
| "Page Not Found" error on posts marked at "Featured" | thadhajcc | General Discussion | 7 | 08-19-2009 04:53 AM |
© Copyright 2012 Copyblogger Media LLC · StudioPress™ is a trademark of Copyblogger Media LLC
Privacy Policy | Refund Policy | Terms of Service | Affiliate Program | Contact Us