Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I use these following codes to delete older posts and newer posts links in functions.php but it still shows them.

 function remove_post_navigation() {
    remove_action('thematic_navigation_below', 'thematic_nav_below', 2);
        remove_action('thematic_navigation_above', 'thematic_nav_above', 2);
}
add_action('init', 'remove_post_navigation');

How to remove them?

share|improve this question
add comment

closed as too localized by Michael, Brian Fegter, Wyck, toscho Sep 22 '12 at 14:36

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer

Are you adding this in a child theme's functions.php file? From what I read, you can use these empty functions to accomplish what you want.

function childtheme_override_nav_above() { }
function childtheme_override_nav_below() { }

http://themeshaper.com/forums/topic/how-to-remove-nav-from-single-post#post-17191

share|improve this answer
    
I add to function.php. Should I add to child theme's function.php? where is that? –  aliboy38 Sep 21 '12 at 13:12
    
Ok, sounds like you're not using a child theme so the functions I suggested won't do anything for you. I downloaded Thematic and pasted in the same code you used above (into wp-content/themes/thematic/functions.php) and the "older posts" and "newer posts" links were gone. Sure you pasted in the same spot? You should also disable any plugins while testing. –  chicoman98 Sep 21 '12 at 13:28
    
Any luck with this aliboy38? –  chicoman98 Sep 22 '12 at 1:48
    
no it didn't work –  aliboy38 Sep 22 '12 at 13:11
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.