You could do this like so:
<?php
$next_post_link = get_next_post_link( '%link', 'Article Précédent', TRUE );
$previous_post_link = get_previous_post_link( '%link', 'Article Suivant', TRUE );
?>
<?php if ( $next_post_link || $previous_post_link ) : ?>
<div class="article_single_prev_next">
<div class="article_prev">
<?php echo $next_post_link; ?>
</div>
<div class="article_next">
<?php echo $previous_post_link; ?>
</div>
</div>
<?php endif; ?>
Related Posts:
- When to use is_home() vs is_front_page()?
- Using classes instead of global functions in functions.php
- What are the ADVANTAGES of ORIGINAL wordpress template structure?
- Change admin bar to default:off
- How to change admin bar color scheme in MP6 / WP 3.8 front end?
- Template for individual post designs
- When to use esc_url, esc_html, esc_attr, and friends?
- Best practices – Should I create a child theme vs. customizing a framework theme? (such as HTML5 reset)
- How can you develop on a live WordPress installation that is using W3 Total Cache? [closed]
- How to disable 3.1 “Admin Bar” via script for the admin user?
- What is the best practice for customizing a plugin’s JavaScript/jQuery?
- Front End Post Submit Form
- Feature Survey – What would you want in a resume theme?
- How the WordPress sidebar works
- Pagination & get_pages?
- Should we localize custom-made themes / plugins?
- Change loop order via form or link (jquery, not URL)
- Extend walker – navigation, adding data attribute to a tag
- How can I remove the Static Front Page option from the Customizer
- Set front page as static page [closed]
- How to programmatically bring back “excerpts” field in post editor in WP 3.1+
- How can i customize the comment list
- How to add custom template tag in wordpress theme?
- How should I store global information such as a phone number so that it is editable through the CMS?
- When developing a distributable Theme, does it HAVE to be “inheritable”?
- How to handle theme customization and sass variables
- wp_enqueue_scripts not called on search page?
- wp_head() not inserting the default stylesheet style.css
- Upgrading a custom theme through the Dashboard
- First completely customized theme, where should I start?
- WordPress how to override function adjacent_posts_rel_link_wp_head() in link-template.php the correct way
- Theme Customizer not loading
- Responsive Images – Generating multiple images from Theme Customizer control upload?
- How to retrieve an image from a post and display it before excerpt of a post? [duplicate]
- Modify Javascript Configuration Options for Theme Customizer Colour Picker
- Best practices: Custom theme sidebar menu – hardcode or widget?
- Any tag pagination page (except the 1st page) loads index.php template instead of tag.php
- Best approach to create sites with Modular Content? [closed]
- Modify the Additional CSS section (adding a disclaimer)
- What’s the best action to use when you want to do something only once per theme setup?
- How WordPress converts URL to $query_string
- Version control for both Vagrant config and themes being developed [closed]
- Adding default pagination to wordpress loop
- Customizer API and add_panel(). Panel doesn’t show
- How to correctly add JQuery in a WP theme?
- Creating multiple hooks for theme
- What is the best way to handle multiple calls to get_template_directory_uri() and similar functions?
- Why is the Links Manager visible?
- Best way to start becoming a wordpress developer
- How to add a second stylesheet to the editor
- Removing non native customizer settings from a child theme
- How to reorganize the items returned by wp_list_comments()?
- WordPress with broken paging page 3
- which is the best way to customize nav-menu-template.php?
- Where should I update_options in a theme?
- WP 3.1 upgrade breaks AutoFocus+ theme
- paged > max_num_pages won’t throw 404
- Displaying recent post excerpts on static front page
- Customizer: Unique identifier that distinguishes which image upload control is uploading an image
- How to make theme elements customizable in wordpress?
- How to create a custom template to admin dashboard
- How do I Add images uploaded in the post to a default custom field
- How to add a button which saves the post then executes a function
- Limitations when modifying wp_title with a filter
- How to make animated intro?
- How to edit theme functions file to modify pagination?
- How to display all subpages and short by year
- Getting custom posts by post id from cutomizer text input
- Disabling Customizer Selective Refresh shortcut icons for selected controls
- JavaScript stops working on selectively refreshed sections one inside the other
- StoreFront product pages: Turn the Short Description section into a kindred tab section [closed]
- “Add A Widget” button in the Customizer
- Zoom on custom theme without child
- Customizer: save setting/control content to post/page
- Q: How to pull data from custom table to populate zustomizer setting/control select options
- Move default page templates to sub directory
- Changing a slider to a grid [closed]
- Custom Navigation build using wp_nav_menu and walker
- Using My Own Classes On Wp Unit Tests
- Is it possible to visually group items on the theme customizer?
- Custom Blocks as part of a theme
- Customize how a WordPress theme looks like in the Theme Selector
- WooCommerce: multiple input field for multiple product variations
- Customizer – loading settings/controls/sections/panels based on a id/page id
- Integrate WooCommerce theme with a WordPress theme [closed]
- Widget Option is Missing
- How do you use WordPress for a website that’s not in a blog format?
- Default Text not showing from customizer
- Child Theme header1.php file not overwriting parent theme’s header1.php file
- How to have content scroll over background
- WordPress Template Part in iFrame
- Replace site title with logo when logo is uploaded in customizer using
- How to transfer one domain to another domain without losing theme options (customizer)?
- pagination for a custom loop with multiple post types
- Is there a WordPress boolean for “theme_customizer_active()”?
- How can I use the WordPress Loop and Pagination in multiple instances but different scenarios throughout my site?
- How to make theme configurable
- Extending Twenty Eleven Theme
- What template file is used for homepage pagination?
- Trying to create a cutom query with pagination and page 2 breaking. Any help?