• Resolved fcteam

    (@fcteam)


    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

    (@pluginandplay)

    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.

    Plugin Author pluginandplay

    (@pluginandplay)

    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.

    Plugin Author pluginandplay

    (@pluginandplay)

    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.

    Plugin Author pluginandplay

    (@pluginandplay)

    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.www.ads-software.com/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.