Now that I have a better understanding of the issue, I would recommend using custom fields to sort your posts. You can have a custom field (e.g., “order”) and use it to indicate the order of your posts. You then need to use a custom query to order these posts when they are displayed. You can use a custom query like the following:
$args = array(
'meta_key' => 'order',
'orderby' => 'meta_value',
'order' => 'ASC'
);
$custom_query = new WP_Query();
$custom_query->query($args);
if($custom_query->have_posts())
{
while($custom_query->have_posts())
{
$custom_query->the_post();
// Do the loop stuff
}
}
Please see the WP_Query class page for more information about all of the arguments that you can use to create custom queries.
Related Posts:
- Different post sort order within different categories
- How to sort posts by last name (2nd word) on ONE category only?
- How to change the layout and styling of posts according to their category in WordPress?
- Add default content to post (for specific category)
- Show One Category on Post
- How to choose a sort order (for posts) per category? (ideally when creating a new category)
- Add custom field to category of custom post type
- Do I use custom post type or something else?
- Custom Theme Want To Remove One Category From All Displays
- Edit custom post type admin menu link
- Deleted category by mistake, all posts now have categorized category. Can i revert that?
- How can i limit the number of posts created per category?
- WordPress custom Query for Posts in Category display posts multiple times
- WordPress Multisite – Create Default Post and New Category On New Site Install
- Set Default Category to Username
- if in category but only with post meta
- Sort by last word in title
- How to call posts under a specific category on static front page?
- Static pages not working
- How to display only one category in a custom post type?
- How to list post as buch of category, and all of them
- Can I style single post that are in multiple catergories?
- Custom post styling per category?
- Show custom post category for single post
- Add Categories To Custom Post
- Static text above category page
- Show a Category Specific Info Box
- Add default content to post (for specific category)
- Display ONLY Latest Post From Several Categories
- Taxonomy Category category.php not working
- Post’s arent displaying
- Only show posts belonging to multiple cateogries at same time
- Sort Posts Alphabetically Based on Specific Category (Divi)
- I have a website issue I am trying to resolve
- How to sort posts alphabetically based on a specific parent category
- How to Change Order of Posts in Admin?
- Custom Post Types, slug, archive and SEO plugins
- Using single.php from plugin folder instead of default template folder
- How to add metabox for post of specific category
- blog posts sorting doesnt work while using get_query_var
- Post from front-end only by logged in users, form posts as “posted by:
- Exclude category on blog list page
- Possible to create a permalink to sort with meta_key?
- WordPress Child Category Display All Posts
- Why does `url_to_postid` return 0 when testing `page_for_posts` Page?
- How to display sorted posts in the ‘All Posts’ page
- Sorting posts according to the term they belong to
- Sorting posts according to view counts not working
- Display posts in alphabetical order for a particular category
- Archive Page for Custom Post Type is not Working
- How to automatically apply a category based on the post title?
- Direct link to “New post” in specific category?
- Using permalinks, category slugs, and tag slugs
- How do I retrieve then print the currently viewed sub categories?
- Show posts by a custom post author
- Search results posts_orderby and ID
- Related posts by category not working right
- custom post template file not shown, instead all the time 404.php
- Listing Specific Categories from Current Post with Depth
- Custom Post Type Rewrite To Include Parent Page(s)
- Redirect to another page using contact form 7? [closed]
- get_the_category listing in hierarchial order
- Custom Post Type archive
- How to add convenient buttons for new custom post statuses
- Display value of custom field at the beginning of a post
- Show posts on front page only
- Post is in descendant category not working in home.php
- How to get posts ordered by using their categories?
- SQL Bulk Move old posts by one author to another category
- load more posts by category
- Display Related Posts by Category in Random
- How to show beneath posts the full category path?
- Hook save_post_cpt not triggered when custom fields are modified
- Display Current Posts Category (with the most posts)?
- Only the most recent post is showing on my category page (working on localhost, not live site)
- Get category slug of the Parent category of a Product
- WordPress Pods Custom Post Type – separate Media Upload folder for each custom Post Types
- Put page on Archived statut after end of publication date
- How to make a page show posts only from specific categories without editing php files
- My posts page is missing the page title
- Display new posts categories in separated divs
- How do I set content in my pages so that it remains permanent while blog posts are added below?
- how to redirect page after delete post inside a post page?
- Permalink base only for posts
- Display Posts by Categories
- issue in wordpress auto delete post and redirect to another 1
- Edit Posts Page but not category specific pages?
- Custom Single Post Type not referring to single-post-type.php File
- “Current” class on a singular page menu item with custom post types?
- Displaying different posts Via wp_list_categories()
- Choose options via url
- Custom Post Type Pagination 404 Error (if paged>=2) [duplicate]
- Show all posts in category
- custom post type single page template not working
- Display post structure in function
- Polylang – display one post into 3 categories with different lang [closed]
- Changes done in admin panel are taking time to reflect in the REST api responses
- I have a blog and want to prompt the user to select a category they like and have that select a random blog post
- How to remove category and other tags from posts page
- Get the category of post from which category page it have been clicked