keith0__0
Forum Replies Created
-
Forum: Plugins
In reply to: [Post Types Order] Post Type Order Stops Random Header Image ShowingHi resw,
You missed a comma off the end of the statement 🙂
$args = array( 'category_name' => 'portfolio', 'post_type' => 'post', 'posts_per_page' => 21, 'orderby' => 'menu_order', // <-- add the comma on the end 'paged' => ( get_query_var('paged') ? get_query_var('paged') : 1), ); query_posts($args);You don’t have to replace any code, just add ‘orderby’ => ‘menu_order’, to the array like you did in your example.
The query could be in a number of the theme php files. The reason i suggested Dreamweaver is because it has a search tool, you don’t need to use it though. Any search tool will do (i think even windows file explorer can search source code in a specified folder?)
Good luck…
Forum: Plugins
In reply to: [Post Types Order] Post Type Order Stops Random Header Image ShowingHi Tronic,
I’m afraid their isn’t a simple answer to this. Every theme will call the queries in different places throughout the theme files. To add to that, a query can be called using two methods (that i know of). In my theme (portfolium) the author used query_posts, whereas i know the default wordpress template uses wp_query.
The steps i used to update my theme (this will require a basic understanding of how themes work):
1. Make a copy of the theme (just in case something goes horribly wrong).
2. Use Dreamweavers search and replace function (cmd+F), and search the copied theme folder for all instances of query_posts and / or wp_query.
3. Select every instance, and modify the array, adding ‘orderby’ => ‘menu_order’, ‘order’ => ‘ASC’
4. Test the changed theme files. I.e if you changed an occurrence in the single.php file test a single post.Hope thats some help…
Forum: Plugins
In reply to: [Post Types Order] Post Type Order Stops Random Header Image ShowingYep that did it.
I included ‘orderby’ => ‘menu_order’, ‘order’ => ‘ASC’ to my query_posts array, unticked auto sort and now its all working.
Many Thanks for your quick reply.