[fr]
Pour supprimer les "pages" de vos archives WordPress, utilisez le code ci-dessous dans le fichier functions.php du thème que vous utilisez.
[en]
Thanks a lot to Matt for giving me the code which allows me to remove paging from the archives on this blog. I’ve been wanting to do that for a long time, but didn’t know where to start.
Just add the following code to the functions.php file of your theme.
function yay_nopaging($query) {
if ( !is_home() && !is_feed() && '' === $query->get('nopaging') )
$query->set('nopaging', 1);
}
add_action('parse_query', 'yay_nopaging');
Unfortunately, this breaks the Recent Posts widget, which starts displaying… all the posts (that’s a lot of them, here). I removed the widget, but if you have a solution, I’d be happy to hear it.
Similar Posts:
- Ridding WordPress Plugins of Template Tags
- Events in WordPress
- Requirements for a Multilingual WordPress Plugin
- The hAtomisation of CTTS
- Facebook Page Like Buttons: Quick and Dirty
- I Need to Blog!
- Mystery WordPress/Markdown Problem: Troubleshooting
- Fixing Newline Abuse in WordPress
- WordPress Deaf to Pings
- WPML to Make Your WordPress Site Multilingual






