Hmmmm, the solution to this problem was to read the details of the plugin. It has the capability of returning values other than a link to the next post – this includes the ID of the Next and Previous Post.
In case anyone else reads this in the future and wants to see how to get the ID all you have to do is something like:
<?php $link=next_post_link_plus( array('order_by' => 'custom', 'meta_key' => 'Sort Number','return'=>'id') );?>
Then you can recover any information that you need from the post.
Related Posts:
- Query to sort a list by meta key first (if it exists), and show remaining posts without meta key ordered by title
- Orderby meta_value only returns posts that have existing meta_key
- ORDER BY custom field value
- Auto sort the wp-admin post list by a meta key
- get_pages sort alphabetically by meta value
- Archive sorting functions by custom fields (front-end)
- Order by custom field date?
- get_post_meta fields don’t show up on posts page
- How can I sort get_users() by any value (last_name, user defined fields and more)
- Is it possible to order posts by two meta values?
- Get a post_id where meta_value equals something in a serialized meta_value field
- Sorting posts by multiple values, combined
- Sort by posts that have a featured image?
- sort search results by custom fields using dropdown
- Sorting posts ordered by custom field value
- Sorting WordPress Posts via Custom Field Values?
- Getting the ID of any image for use in functions.php
- Advanced search by two criteria – sort by location and date (ascending or descending)
- Change the sort order for posts to include custom field
- Sort custom post type by multiple custom fields
- Sort alphabetically by custom field
- Trying to sort and display categories(not posts) by custom field: ‘order’
- Sort WP_Query with numeric custom field
- ORDER BY custom field value out of where clause
- wordpress custom loop ascending descending posts by custom field
- Select custom posts by meta_value and sort by a different meta value
- change order of images attached to post
- Sort posts by clicks on download button
- Save attachment ID instead of URL in custom field
- How to get custom image field of specific post id
- Listing the most popular 8 city (custom fields) as used in posts
- How to sort by custom field value?
- Custom Query Fields – Altering Meta Value
- How to order posts by number of Vimeo Likes
- Filter or order based on custom field
- Compare ACF date field (if exists) and post date and order DESC
- Query to sort a list by meta key first (if it exists), and show remaining posts without meta key ordered by title
- Sort posts by custom fields with empty values
- Sort custom fields in admin by last field added
- list pages by custom_field?
- Get custom field from page, in a post?
- Sort posts after filtering them through multiple taxonomies
- Can’t sort custom column on user.php by number / meta_value_num?
- Order by a meta field in query loop
- Custom per-page sidebar widgets .. possible?
- Multiple meta values for same meta_key adding on “Preview Changes” hit but not on saving or updating post
- How to add new custom page or post blocks?
- Transients vs CRON +Custom Fields: Caching Data Per Post
- How to update serialized data in the user meta data
- Unable to save datetime custom meta field using update_post_meta() function
- Guest Author – How can I use custom fields to create guest author link?
- enabling custom fields in admin?
- Using WP Query to search by multiple meta fields
- Get aggregate list of all custom fields for entire blog
- Can ordering post list by meta_value cause performance issue?
- How to Identify the Source of a Custom Field?
- woocommerce product custom field
- two custom fields question
- How to save multiple options from a dropdown in user profile
- How to display multiple images in custom field
- How to show a gloabl message on a user profile page (in back end)?
- Display the contents of a custom field of a page on their child
- Read / Watch / Listen times – meta
- Login WP – Connect single field to an external api
- WordPress Comments sort by custom meta key
- adding extra wordpress user info from registration form
- Understanding the orderby in WP_Query?
- Custom Meta Box (SELECT) Not Saving
- Turn raw url into clickable links
- Advanced Custom Fields functionality without plugin
- Get post ids sorted by meta_key
- Advanced Custom Fields Plugin – Unable to get URL from post_object
- Plot location on Google map using full address specified in custom field
- Display custom field value as a hyperlink
- Unable to get specific value from post meta
- 3.8 Media Upload and Custom Meta Box
- Displaying Custom Field Array
- Query post by date (stored custom field meta as yyyymmdd) and differentiate across 12 months
- Accessing Custom Fields on Pages
- Display a different image for each page with editor
- Displaying a video on the homepage via a custom field inside a php widget
- how to create meta key name in wp_usermeta table in database
- Display the output from Custom User Fields from a WordPress user profile on a WordPress Custom Page
- get_field values for each post on home page using wp_add_inline_style
- Is there a way to determine which user changed a custom field (and when)?
- Show image depending on the number in the custom fields
- Show echo ready in single.php
- Save, update, get and sanitize post meta as HTML not plain
- Order categories by sum of custom fields
- how to modify a field’s size in a metabox : ROWS height, and scroll control?
- Saving metadata of related post on save_post
- query_posts with sorting on a custom datestamp
- Custom field value link title
- How to Order Posts by Custom Fields?
- Analyze uploaded images to get colour values
- Turn Current Date in Custom Field Ouput Green or Red
- added a meta box to post however when saving menu while debug on throws a warning
- How can i get the actor birthday by date?
- Dynamically update Custom Fields to display new dates
- save all acf options in one meta_value [closed]