One solution is to add a custom field to the posts. Call it index_position or something similar. Create a nice meta_box if you want the client to be happy.
Then, when you query for posts in your template, ask for posts sorted by your custom field in a meta_query:
$song_query = new WP_Query(
array(
'post_type' => 'songs',
'orderby' => 'meta_value_num',
'order' => 'ASC',
'meta_key' => 'index_position',
)
);
Related Posts:
- How to get post content by calling ajax?
- Get the ID of the latest post
- Quickest way to get last or oldest post date – WP Query
- Shortcode for display posts on home page show only one post
- Reworking function for counting custom post type posts count
- How to Make infinite loop of post
- Get_post_custom not fetching value from array wordpress
- Limiting the Number of User Posts to Their Own Posts
- Get post from Category by Priority
- Popup panel is only displaying 1 entry ignoring all others
- How to create content automatically when a post is published?
- Custom Post Type children and grand-children in one list
- Display posts from another page on home page in wp-editor
- How to get permalink of post based on post name?
- Restrict custom post type to only site administrator role
- How to force one column layout on custom post type edit page?
- Setting a custom sub-path for blog without using pages?
- Getting the Intersection of Two Custom Taxonomy Terms for a Custom Post Type?
- WordPress REST Create Post of Custom Type
- Limit the post for differents custom post type in the same wp_query
- Assigning a role to a specific custom post type (and ignoring other post types)
- Display posts in random post types
- Multiple Content Block
- Display Custom Post Type in Recent Posts
- IF statement in a do_shortcode
- Slug for standard post post_type
- Make `previous_post_link()` Function Show The Post After Next i.e. Jump A Post
- How do I create an archive page for standard posts?
- Remove parent from custom post type
- Remove All, Published and Trashed Post Views in Custom Post Type
- Blog page showing same content as homepage
- How to add post_type=value when editing that post type in the WordPress admin?
- Open Custom Post Type as PDF
- Show custom post type filtered by category
- Allow non-logged in users to see a future post after clicking on a list of future posts
- Update Post Meta for a logged in user
- Query Multiple Custom Posts by Custom Fields
- Get the category from custom post type
- Is it possible to store Custom Post Type data in separate set of tables and still have wp_post class functionality?
- Prioritize posts in query by meta keys?
- Homepage’s content is dependent on the custom field values (set automatically), how do I get homepage to update without manually updating page?
- Load Next Posts With AJAX not working with custom post type
- Permalink misbehaving in Custom Post Types
- Is it a good idea to add a column to the posts table?
- Can I change my post type to anything and my site still work?
- Display Only Certain Category In a Custom Page Template
- Creating separate feeds for custom post types
- wordpress lists similar type of posts in a custom post type
- Auto post creation
- Easy reading or transfer of data from posts?
- Different structure/content for posts from a custom post type
- Why the_excerpt() function returns excerpt on the Home page and trimmed content in sidebar?
- list posts of two post types in a single template
- The loop does not show users
- Front-end Image Upload to Custom Meta Box
- Getting the list of the latests posts and custom type posts in the homepage
- Create a custom post type based on ‘Post’
- redirect after submiting post for review
- Invalid content when I try to import custom post type from the old template wordpress
- Why is my custom post content only viewable when signed into WordPress?
- i need to have a tab with gategory post
- Add a form in every post and save data in post meta
- How to set post date in post_type so that it’s same as latest post in category
- Custom post type data not displaying If I select the category from the dropdonw
- Right way to store a large set of similar information on website? [duplicate]
- Create a post automatically if search result has zero results
- Correct way adding External classes to Custom Post type and output their methods to template
- Assign a Post to a User
- Cannot save pages after migration
- Bulk trashing post ‘fails’
- News post with multiple permalinks? When opened from different page
- Rest Api not working with Iframe in form data
- Limit posts per page depending on the size of a div?
- Display title of all custom posts from same taxonomy term on a custom post template
- Use WP pagination functions on a custom page template
- Event Manager: Events Deleted are still in DB as published but hidden in admin
- Rewrite url post_tag for custom post type
- Error get_posts with Custom Taxonomy and OR relation
- Single Post (CPT) in two pages – Normal and Extended
- Limit or filter edit view in the dashboard to a specific ID only?
- How to add New Post On clicking a button?
- Certain number of posts with certain excerpt length
- Featured image in custom post is being disabled
- How to set class to “current-page” on the currently viewed single post within a CPT
- Why isn’t my custom post type using the corresponding custom post template?
- WordPress Author Posts Review After Every Change In The Same WordPress Post
- Linking custom taxonomies and posts
- Query posts by a type and another type only if post is in specific category
- Search page for custom post type
- Query Only Show Text on Posts With Certain Taxonomy Tag
- how to remove user name and date in post page
- shortcode for recent custom type post
- How to make a template for a specific post of a custom post type?
- How to hide home title on pages and posts?
- How do I hide single category post on my post page
- show custom post’s post in two different divs [duplicate]
- Front end post or photo or both
- Can WordPress show posts based on a button that the user clicked 2 pages back?
- How to automate the creation of advanced layout article/post
- Sort ACF by custom taxonomy