Title: Order By Shortcode
Last modified: May 8, 2020

---

# Order By Shortcode

 *  Resolved [fcteam](https://wordpress.org/support/users/fcteam/)
 * (@fcteam)
 * [6 years ago](https://wordpress.org/support/topic/order-by-shortcode/)
 * I’m not clear from the documentation how to not have any order to the posts? 
   I tried using the value “none” but the posts were still ordered by “post_date”.
   Can you clarify the shortcode for date and the syntax for no order for the posts?
 * Regards.

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [pluginandplay](https://wordpress.org/support/users/pluginandplay/)
 * (@pluginandplay)
 * [6 years ago](https://wordpress.org/support/topic/order-by-shortcode/#post-12800748)
 * Hi [@fcteam](https://wordpress.org/support/users/fcteam/)
 * Can you please provide me the full shortcode which you are using? so I can take
   a look at it.
 *  Thread Starter [fcteam](https://wordpress.org/support/users/fcteam/)
 * (@fcteam)
 * [6 years ago](https://wordpress.org/support/topic/order-by-shortcode/#post-12803537)
 * This is the shortcode I’m using:
 * [psac_post_slider limit=”-1″ category=”42,9,43,15,18,30,47″ design=”design-1″
   show_author=”false” show_category=”true” show_date=”true” show_content=”true”
   content_words_limit=”15″ media_size=”medium” show_read_more=”true” show_tags=”
   false” show_comment=”false” order=”ASC” orderby=”none” dots=”false” arrows=”true”
   autoplay=”true” autoplay_interval=”4000″ speed=”5000″ loop=”true” sliderheight
   =”400″]
 * Regards.
 *  Plugin Author [pluginandplay](https://wordpress.org/support/users/pluginandplay/)
 * (@pluginandplay)
 * [6 years ago](https://wordpress.org/support/topic/order-by-shortcode/#post-12806491)
 * Hi [@fcteam](https://wordpress.org/support/users/fcteam/)
 * Thanks for the shortcode. Have you checked the double quote issue?
 * I have checked on my site and parameter are working properly. I have checked 
   with orderby date, random (rand), none and etc. They are working properly.
 * Do you have any plugin installed or code written which can interact with WP Query?
 *  Thread Starter [fcteam](https://wordpress.org/support/users/fcteam/)
 * (@fcteam)
 * [6 years ago](https://wordpress.org/support/topic/order-by-shortcode/#post-12806988)
 * Can you explain what you mean about checking the double quote issue? I’m not 
   sure what you mean. I did type the code in manually.
 * Also, can you clarify where you add the ‘random’ code?
 * I’m not sure about other plugins that would impact the WP Query. The rest of 
   the shortcode is working properly.
 * Regards.
 *  Plugin Author [pluginandplay](https://wordpress.org/support/users/pluginandplay/)
 * (@pluginandplay)
 * [6 years ago](https://wordpress.org/support/topic/order-by-shortcode/#post-12809614)
 * Hi [@fcteam](https://wordpress.org/support/users/fcteam/)
 * For your query,
 * 1) Also, can you clarify where you add the ‘random’ code?
 * Ans – I have tried below shortcode which is working fine. Random order is coming
   perfectly. Can you please try it at your end?
    `[psac_post_slider limit="-1" 
   orderby="rand"]`
 * 2) Can you explain what you mean about checking the double quote issue?
 * Ans – Sometime what happen when we copy the shortcode and paste it in WordPress
   editor then double quote (“) are converted to special character (”) and the because
   of that shortcode parameter will not work.
 * So please confirm that there are no special character in shortcode.
 *  Thread Starter [fcteam](https://wordpress.org/support/users/fcteam/)
 * (@fcteam)
 * [6 years ago](https://wordpress.org/support/topic/order-by-shortcode/#post-12810218)
 * Adding the ‘rand’ shortcode worked. I’m not sure why the ‘none’ code didn’t but
   it looks like they provide similar functions.
 * Thanks.
 *  Plugin Author [pluginandplay](https://wordpress.org/support/users/pluginandplay/)
 * (@pluginandplay)
 * [6 years ago](https://wordpress.org/support/topic/order-by-shortcode/#post-12818995)
 * Hi [@fcteam](https://wordpress.org/support/users/fcteam/)
 * Glad to know that 🙂
 * I am sure the none parameter also works but I am not sure how they orderby based
   on none.
 * You can find various parameter from below documentation link
    [https://developer.wordpress.org/reference/classes/wp_query/#order-orderby-parameters](https://developer.wordpress.org/reference/classes/wp_query/#order-orderby-parameters)
 * I hope it will be useful to you.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Order By Shortcode’ is closed to new replies.

 * ![](https://ps.w.org/post-slider-and-carousel/assets/icon-128x128.png?rev=2143555)
 * [Post Slider and Post Carousel with Post Vertical Scrolling Widget - A Responsive Post Slider](https://wordpress.org/plugins/post-slider-and-carousel/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-slider-and-carousel/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-slider-and-carousel/)
 * [Active Topics](https://wordpress.org/support/plugin/post-slider-and-carousel/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-slider-and-carousel/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-slider-and-carousel/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [pluginandplay](https://wordpress.org/support/users/pluginandplay/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/order-by-shortcode/#post-12818995)
 * Status: resolved