Hi @fcteam
Can you please provide me the full shortcode which you are using? so I can take a look at it.
Thread Starter
fcteam
(@fcteam)
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.
Hi @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
(@fcteam)
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.
Hi @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
(@fcteam)
Adding the ‘rand’ shortcode worked. I’m not sure why the ‘none’ code didn’t but it looks like they provide similar functions.
Thanks.
Hi @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
I hope it will be useful to you.