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] removing next and previous links from post display


  #1  
Old Jul 31, 2012, 03:23 PM
SD_MI
 
13 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, 03:24 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
did you think to look at the theme options?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Jul 31, 2012, 03:28 PM
SD_MI
 
13 posts · Jun 2012
I'm not at all good with PHP, as you can tell.
  #4  
Old Jul 31, 2012, 03:29 PM
SD_MI
 
13 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 03:31 PM.
  #5  
Old Jul 31, 2012, 03:29 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
once again I will ask you 'Did you look at the theme options?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #6  
Old Jul 31, 2012, 03:42 PM
SD_MI
 
13 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



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 08:52 AM
Display Previous/Next links on gallery attachments johnp Excerpts, Read more, Pagination 5 Aug 5, 2010 08:34 AM
[SOLVED] Swap next/previous post links? sasajakov Post-Kicker, -Byline & -Footer 2 Oct 4, 2009 08:22 PM
[SOLVED] How to style the Previous/Next Navigation links Fux Header configuration & styling 6 Aug 16, 2009 09: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 03:58 PM


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


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