what is not working with your existing code?
try to use:
<div class="alignleft"><?php previous_posts_link('Previous',$loop->max_num_pages) ?></div>
<div class="alignright"><?php next_posts_link('More',$loop->max_num_pages) ?></div>
and add <?php wp_reset_postdata(); ?>
at the end of your code.
Related Posts:
- Can the Next/Prev Post links be ordered by menu order or by a meta key?
- Filter next_post_link() and previous_post_link() by meta_key?
- How can I get next/ previous post links to order by a filter (by the last word of the title)?
- How can I get next post id after current post id for custom post type
- Problem excluding category from get_next_post
- 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
- Custom Taxonomies: Multiple Hierarchical Permailnks For A Single Post + Prev/Next Links
- Working with Next and Prev links in Single Taxonomy Templates
- next_post_link and previous_post_link in custom post type single page, in same non-custom category
- Next and Previous Posts of Same Parent
- next/previous links on custom post single a little screwy
- Modify previous and next post links to current Authors Other posts
- Why are previous_post_link/next_post_link skipping some posts?
- Add Previous/Next Buttons to CPT Single Pages Only
- Custom Posts and Posts – next_post_link and previous_post_link not working together
- Display next 3 posts based on custom taxonomy
- Include “Scheduled” (“Future”) Posts in WordPress Post Navigation ( previous_post_link, next_post_link ) for a Specific Custom Post Type
- How to get next post link of child custom post type from parent post and get next post link of parent post from the last child post?
- CPT : Next or Previous term link when has not adjacent post
- Prev/Next Navigation on Single Post Disappeared for Custom Post Type
- Back, Next, and Previous links for the REFERRING term archive
- get_previous_post_link and get_next_post_link of custom post type that share custom field value
- Previous/Next custom post links within custom taxonomy
- Next/Previous Post Links in single-[custom-post-type].php file
- show previous/next post orderer by title in custom post types
- previous_posts_link returns null when querying custom post type
- How to change permalink structure for custom post type and it’s taxonomies?
- Custom Post Type and Taxonomy URL rewrite
- Add Content to Page without shortcodes
- Custom post status and preview
- rewrite get parameter with custom post type
- modify all posts of a category to “no comments allowed”
- How to get_queried_object on multiple objects?
- How to not allow custom roles to edit published custom post types?
- Count number of posts which exist in 2 taxonomies?
- How can I add columns to custom post tables
- List Posts of a Custom Post Types Ordered by Terms of a Custom Taxonomy?
- Removing Duplicate Custom Taxonomy Terms from within a Dropdown Select?
- Help splitting a custom post type archive into “past” and “upcoming”
- Make slug as ID Number for custom post types
- Remove duplicated values from a loop
- Count all comments of a custom post type
- Conditional tags don’t work
- How can I create a custom meta box to add an mp4 video to a page?
- Pull a post based on a meta value in a custom post type
- Dynamic page outside WordPress
- Custom post type permalinks
- Exclude Post Type from Jetpack Infinite Scroll
- Search Custom Post Type & Taxonomies
- Help need making decision. Ads rotating site on wordpress
- Categories of custom taxonomy don’t show any posts
- Is it possible to have dedicated page for parent/child taxonomy?
- Can a Custom Taxonomy be named “category” like normal Posts?
- Able to edit custom post, but unable to create new custom post when within submenu. What capability is missing?
- How to import a custom MySQL DB table into a WordPress custom post type
- Custom post type permalink returns 404
- Add custom post type drafts to RSS feed
- Deleting taxonomy terms and relationships on a custom post_type when a user is deleted
- cutsom posts 404ing
- Save Multiple Metabox values
- Why does accessing url by category cause issues with post types?
- Why does my taxonomy have a category style div id?
- Sorting posts by custom field value in array
- Custom post types problem
- How to get postname in custom page?
- Display a post from custom post type only if all the selected taxonomies and custom field value matches the record
- How to populate a Gravity Forms Custom Post Field (dropdown type) with custom taxonomy terms? [closed]
- Render a Post or Page using the correct file
- WordPress Count posts within a custom post type
- Send email messages after comment was submitted
- Different column width in 2 rows with bootstrap and custom post types-different classes needed
- Twitter Product Cards
- Custom Post Type Root Template
- comments hooks on custom post type
- Correct way of adding taxonomy to a custom post type
- custom post template ignored after altering permalinks
- Custom Post Type Implementation
- Why will comments not remain open on custom post types?
- Visualize info in just custom post_type in theme
- Cannot get to work tax_query array for terms
- Using Orderby and meta_value to order natural/alphanumerical
- CPT UI: Connect a custom post type to a custom post type
- exclude admin archive edit screen
- get comments for custom post type
- Using post title in an array
- What’s the most efficient way to get two queries based on an if statement?
- Custom Post Type rewrite url to /category/pagetitle [duplicate]
- Custom post type URL – filter by taxonomy
- How do populate a column when listing custom posts?
- Archive page for a custom post type using WPML
- How to customize admin edit page – custom type
- fetch meta fields inside a widget
- Adding/Changing Functionality of Custom Post Type Main Admin Page
- Inserting two categories
- Use a Variable in update_post_meta as the $meta_key
- How to manage a bookstore
- How to set up a echo? [closed]
- Tracking Total Pageviews By Post Type In Google Analytics
- Why custom search engine only searches in post titles of custom posts?