Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages »

[SOLVED] 'Older Entries' link not working


  #1  
Old Feb 9, 2011, 07:56 AM
wilbrimley
 
21 posts · Jun 2010
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.
Attached Files
File Type: txt ata-wwwdavidlamottecom-20110209.txt (24.1 KB, 918 views)
  #2  
Old Feb 9, 2011, 12:10 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
??? 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'
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Feb 9, 2011, 05:33 PM
wilbrimley
 
21 posts · Jun 2010
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.
  #4  
Old Feb 9, 2011, 06:37 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
use
HTML Code:
<?php
if (is_home() and !(is_paged()) ) {
query_posts("cat=-15");
}
?>
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Feb 9, 2011, 06:53 PM
wilbrimley
 
21 posts · Jun 2010
As always, Juggledad, your help is invaluable. It worked - thank you!

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Older Newer entries tags raddy59 Center area post/pages 1 Jan 16, 2011 11:22 AM
[SOLVED] Older Entries Pages not showing properly in FireFox vintario Atahualpa 3 Wordpress theme 2 Dec 3, 2010 08:36 AM
Pagination link on home page ("Older Entries") is broken aking10 Excerpts, Read more, Pagination 5 Sep 13, 2010 02:14 PM
Changing Font size for NEWER/OLDER ENTRIES steven72dragon Page & Category Menu Bars 3 Jul 29, 2010 05:52 PM


All times are GMT -6. The time now is 03:21 AM.


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