Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Center area post/pages (http://forum.bytesforall.com/forumdisplay.php?f=32)
-   -   [SOLVED] 'Older Entries' link not working (http://forum.bytesforall.com/showthread.php?t=12711)

wilbrimley Feb 9, 2011 07:56 AM

[SOLVED] 'Older Entries' link not working
 
1 Attachment(s)
When I click on "Older Entries" at the bottom of my blog page, the content of the center column stays the same:
http://www.davidlamotte.com/blog/

In other words, http://www.davidlamotte.com/blog/page/2/ shows the same posts as http://www.davidlamotte.com/blog/. I have no idea why this is happening.

I did change some of the code under ATO -> Style and Edit Center Column:

Quote:

<?php if( is_category('15') ) { ?>
<h1>Press</h1><p/>
This is a page of media articles <em>about</em> David LaMotte.<p/>

If you are with the media, and are looking for resources such as a press kit and press photos, please click on <a href="http://www.davidlamotte.com/booking/" target="_self">booking</a>.<br/>
If you are looking for writing <em>by</em> David, please go to his <a href="http://www.davidlamotte.com/blog/" target="_self">blog</a>.<br/>
If you would like to contact David, please go to <a href="http://www.davidlamotte.com/contact/" target="_self">contact</a>.
<?php } ?>

<?php if( is_home() ) { ?>
<h1>Blog</h1><p/>
Musings and updates from David...
<?php } ?>

<?php /* For MULTI post pages if activated at ATO -> Next/Previous Navigation: */
bfa_next_previous_page_links('Top'); ?>

<?php /* For the plugin Page2Cat http://wordpress.org/extend/plugins/page2cat/ */
if( is_category() AND function_exists('page2cat_output')) { page2cat_output($cat); } ?>

<?php
if (is_home()) {
query_posts("cat=-15");
}
?>
Any ideas? Thanks.

juggledad Feb 9, 2011 12:10 PM

??? you put HTML and PHP in the 'Style and Edit Center Column:' option?? that is for CSS

If you put the code in "The LOOP', then the last lines
HTML Code:

<?php
if (is_home()) {
query_posts("cat=-15");
}
?>

will always be run on ANY blog page and it will reset the query and start over
try moving it to 'Above The LOOP'

wilbrimley Feb 9, 2011 05:33 PM

Thanks for the quick reply, Juggledad. I wasn't clear in my initial post, this code is currently in ATO --> Style and Edit Center Column --> Content ABOVE the Loop:

Quote:

<?php if( is_category('15') ) { ?>
<h1>Press</h1><p/>
This is a page of media articles <em>about</em> David LaMotte.<p/>

If you are with the media, and are looking for resources such as a press kit and press photos, please click on <a href="http://www.davidlamotte.com/booking/" target="_self">booking</a>.<br/>
If you are looking for writing <em>by</em> David, please go to his <a href="http://www.davidlamotte.com/blog/" target="_self">blog</a>.<br/>
If you would like to contact David, please go to <a href="http://www.davidlamotte.com/contact/" target="_self">contact</a>.
<?php } ?>

<?php if( is_home() ) { ?>
<h1>Blog</h1><p/>
Musings and updates from David...
<?php } ?>

<?php /* For MULTI post pages if activated at ATO -> Next/Previous Navigation: */
bfa_next_previous_page_links('Top'); ?>

<?php /* For the plugin Page2Cat http://wordpress.org/extend/plugins/page2cat/ */
if( is_category() AND function_exists('page2cat_output')) { page2cat_output($cat); } ?>

<?php
if (is_home()) {
query_posts("cat=-15");
}
?>
The problem I'm getting is that when I'm on my "Blog" page, the links to "Older Entries" do not work. Thanks.

juggledad Feb 9, 2011 06:37 PM

use
HTML Code:

<?php
if (is_home() and !(is_paged()) ) {
query_posts("cat=-15");
}
?>


wilbrimley Feb 9, 2011 06:53 PM

As always, Juggledad, your help is invaluable. It worked - thank you!


All times are GMT -6. The time now is 10:11 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.