See the codex. The first parameter is format, the second is link text.
<?php previous_post_link('<strong>%link</strong>', '«'); ?>
<?php next_post_link('<strong>%link</strong>', '»'); ?>
Related Posts:
- previous next with custom-post-type by order attribute
- prev/next post links with custom query
- Url PrevPost after migration
- Previous and Next Navigation buttons take the user to the wrong posts
- How to get next and previous post links, alphabetically by title, across post types, in a shortcode
- get_adjacent_post alternative on a very large db
- next and previous post link ordered alphabetically
- Thumbnail (featured image) of next and previous post is not being properly displayed!
- Is it possible to remove next-post / previous-post with out creating a custom template?
- How can I limit the length of the previous/next posts in my WordPress Theme?
- How to use next_post_link and previous_post_link on single posts in search results
- Next/Previous Posts Links: Alphabetically and from Same Category
- Problem excluding category from get_next_post
- Why is previous_post_link and next_post_link working outside of the Loop?
- specify meta_key / meta_value condition for prev_post_link and next_post_link
- Using previous_post_link and next_post_link to wrap around post sequence
- Disable “previous link” in first post and “next link” in last post
- previous / next post with thumbnail
- next_posts_link not working in custom loop
- Show prev and next post links for parent post of current image in attachment page?
- Post in Multiple Categories to stay in current category (permalink, next previous post link)
- Showing Thumbnail from Previous and Next Posts
- Next and prev. post link ONLY within category
- How to make my pagination loop continuously?
- How can I make the “Preview Post” button save and preview in the same window?
- WordPress pagination link always leads to home page
- next_post_link and previous_post_link in custom post type single page, in same non-custom category
- Get attachment next and previous by author only
- previous_post_link() next_post_link() arrow position
- Previous_post and Next_post – Custom Post Type
- next_post_link for CPT only working for a few posts? weird!
- Exclude Posts From Specific Category from Next and Previous post links
- Can I use images as anchor tags with
- Is it possible to skip certain specified pages when using < prev and next > links?
- Why do next pages load the same content rather then older articles?
- Next and Previous Posts of Same Parent
- Show category from “Next post” and “Previous post” [edited]
- previous/next_post_link in the same sub-category?
- Previous/next post links displaying wrong category than is desired
- Next Posts Prev Posts for Standard post format only
- next_post_link and previous_post_link order not working properly
- Get Adjacent Post By Tag
- Modify previous and next post links to current Authors Other posts
- Link to the next/prev posts in index loop in same category?
- Single: Prev and next Post in same order as main query, in all categories
- How to exclude or filter password protected posts when using next_post_link() previous_post_link
- How to use next_posts_link/previous_posts_link for custom post types paginate?
- query_posts pagination will always show identical content
- Get next post in same category not working WP 4.7.4
- altering %title
- Get ID for previous/next image link
- Pagination for custom loop on custom page template is not displaying anything
- Include scheduled ( future ) posts in WordPress post navigation ( previous_post_link, next_post_link )
- Fetching All Posts (200+) in a Category – Performance Issues?
- How to edit the ‘
- Custom Posts and Posts – next_post_link and previous_post_link not working together
- using images in next/previous_post_link [closed]
- Display next 3 posts based on custom taxonomy
- navigation among single posts
- Next Prev Post link rendering current post thumbnail
- How do I display a greyed out next_post_link when there is no next post
- grab neighboring content in a query
- WP_Query and pagination AGAIN?
- pagination links not displaying
- Include “Scheduled” (“Future”) Posts in WordPress Post Navigation ( previous_post_link, next_post_link ) for a Specific Custom Post Type
- Order by post_date does not work in Previous and Next post pagination
- Prev/Next Navigation on Single Post Disappeared for Custom Post Type
- Can’t Add Pagination
- Why would one specify multiple arguments when using get_previous_posts_link() which takes only one parameter?
- Change URL of previous posts and next posts link in WordPress
- Dynamic next and previous post links
- next_posts_link not visible on first page
- Back, Next, and Previous links for the REFERRING term archive
- Previous/Next custom post links within custom taxonomy
- How to know if the most recent article
- How to filter get previous post function by meta value DESC and post date DESC?
- previous and next post of same category on singlepost.php
- How do I modify the Previous and Next Page posts on blog pages to include “previous” and “next” before the links?
- How to Navigate within Category? Lot of codes here on stackexchange didn’t work
- Navigate to external link if last page or post in a category
- How do I use the add_query_arg function in a template tag like previous_post_link?
- Need help with get_posts pagination
- Next/Prev category post in same button
- using next-page and previous page inside a wp_query
- show previous/next post orderer by title in custom post types
- previous_posts_link returns null when querying custom post type
- customize urls displayed by previous_post_link and next_post_link
- Multiple next / previous
- Post in multiple categories do not include in previous / next post if one category in excluded
- single post navigation order (NOT chronological)
- Single post navigation Previous post link shows up but Next post link doesn’t
- How to add a class and title attribute to the link generated by next/previous post
- Change next_post and previous_link to navigate throught parent categories only
- Previous and Next posts
- pagination/prev and next page links not showing
- Multiple loops using next_posts_link & previous_posts_link
- Previous / next posts using featured image thumbnail as links
- Next/previous post link to posts only within one or more specific categories
- on attachment.php, how to display previous and next attachment links that follow the same order as a custom WP Query
- How to add thumbnail support to WordPress next / previous post loop?