Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

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

[SOLVED] removing next and previous links from post display


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Jul 31, 2012, 02:23 PM
SD_MI
 
4 posts · Jun 2012
How do I remove the next/previous links at the top of each post? I tried removing the section below from bfa_next_previous_links.php and that did remove the next/previous links but also resulted in the post itself not being displayed!

PHP Code:
/* Next/Previous POST Links (on single post pages)
   in next_post_link "next" means newer posts
   Available parameters for $location: Top, Middle, Bottom. Default: Top  */
function bfa_next_previous_post_links($location "Top") {

global 
$bfa_ata$homeURL;

    if ( 
is_single() AND strpos($bfa_ata['location_single_next_prev'],$location) !== FALSE AND
    
    
// don't display on WP Email pages
    
intval(get_query_var('email')) != )  {

        echo 
'<div class="clearfix navigation-'.strtolower($location).'">
        <div class="older' 
. ($bfa_ata['home_single_next_prev'] != '' ?
        
'-home' '') . '">';

        if (
$bfa_ata['next_prev_orientation'] == 'Older Left, Newer Right') {
            if(
$bfa_ata['single_next_prev_same_cat'] == "Yes") {
                
previous_post_link($bfa_ata['single_next_prev_older'], '%title'TRUE);
            } else { 
                
previous_post_link($bfa_ata['single_next_prev_older']);
            }
        } else {
            if(
$bfa_ata['single_next_prev_same_cat'] == "Yes") {
                
next_post_link($bfa_ata['single_next_prev_newer'], '%title'TRUE);
            } else { 
                
next_post_link($bfa_ata['single_next_prev_newer']);
            }
        }
        
        echo 
' &nbsp;</div>';
        if (
$bfa_ata['home_single_next_prev'] != '') { 
            echo 
'<div class="home"><a href="' $homeURL '/">' .
            
$bfa_ata['home_single_next_prev'] . '</a></div>';
        }
        echo 
'<div class="newer';
        if (
$bfa_ata['home_single_next_prev'] != '') {
            echo 
'-home';
        }
        echo 
'">&nbsp; ';

        if (
$bfa_ata['next_prev_orientation'] == 'Older Left, Newer Right') {
            if(
$bfa_ata['single_next_prev_same_cat'] == "Yes") {
                
next_post_link($bfa_ata['single_next_prev_newer'], '%title'TRUE);
            } else { 
                
next_post_link($bfa_ata['single_next_prev_newer']);
            }
        } else {
            if(
$bfa_ata['single_next_prev_same_cat'] == "Yes") {
                
previous_post_link($bfa_ata['single_next_prev_older'], '%title'TRUE);
            } else { 
                
previous_post_link($bfa_ata['single_next_prev_older']);
            }
        }

        echo 
'</div></div>';
    }

  #2  
Old Jul 31, 2012, 02:24 PM
juggledad's Avatar
juggledad
 
20,001 posts · Mar 2009
OSX 10.6.8/10.7.3 WP 2.8.x/2.9.x/3.x Atahualpa 3.5.x/3.7.x Safari 5.x Firefox 11 XP
did you think to look at the theme options?
  #3  
Old Jul 31, 2012, 02:28 PM
SD_MI
 
4 posts · Jun 2012
I'm not at all good with PHP, as you can tell.
  #4  
Old Jul 31, 2012, 02:29 PM
SD_MI
 
4 posts · Jun 2012
Quote:
Originally Posted by juggledad
did you think to look at the theme options?
I did, but I can't find it. Point a gal in the right direction?

ETA: Nevermind I see it! I was looking under the heading "Posts & Pages" and not under "Center Column".

Last edited by SD_MI; Jul 31, 2012 at 02:31 PM.
  #5  
Old Jul 31, 2012, 02:29 PM
juggledad's Avatar
juggledad
 
20,001 posts · Mar 2009
OSX 10.6.8/10.7.3 WP 2.8.x/2.9.x/3.x Atahualpa 3.5.x/3.7.x Safari 5.x Firefox 11 XP
once again I will ask you 'Did you look at the theme options?
  #6  
Old Jul 31, 2012, 02:42 PM
SD_MI
 
4 posts · Jun 2012
Quote:
Originally Posted by juggledad
once again I will ask you 'Did you look at the theme options?
Blonde moment, sorry. *blush*

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
My nav links (next/previous) are dead. :-( Jeff G Post-Kicker, -Byline & -Footer 8 Oct 6, 2010 07:52 AM
Display Previous/Next links on gallery attachments johnp Excerpts, Read more, Pagination 5 Aug 5, 2010 07:34 AM
[SOLVED] Swap next/previous post links? sasajakov Post-Kicker, -Byline & -Footer 2 Oct 4, 2009 07:22 PM
[SOLVED] How to style the Previous/Next Navigation links Fux Header configuration & styling 6 Aug 16, 2009 08:41 AM
[SOLVED] Next post and previous post links on top of single post page error susieswe Atahualpa 3 Wordpress theme 2 Jul 15, 2009 02:58 PM


All times are GMT -6. The time now is 01:14 AM.


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