$args = array('post_type'=>$post_type,'posts_per_page'=>-1, 'orderby' => 'number', 'order' => 'ASC',);

I posted a question here but think I made it too confusing.
How can I order by a variable in this PHP code?

Thanks for your help!

Read more here: How can I sort this array by Standard Sorting and not Natural Sorting?


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: