• Resolved richardhaynes

    (@richardhaynes)


    I’m using the following shortcode to display my posts in a lesson:

    [wpc_list_pages orderby=”ID” order:”DESC” course=”Staff Training”]

    Unfortunately the orderby and/or order options are not working. I can’t seem to get the list order to change no matter what variables I put in these fields.

    WP Version: WordPress 4.8.7
    Theme: ARK
    Plugin Version: PRO Version 2.3.3

    Thanks in advance

    Richard

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @richardhaynes.

    There are a couple things to double check with your shortcode:

    1. Do NOT use smart quotes. ” is not rendered properly and the WordPress shortcode parser will typically just ignore them.
    2. Make sure you use = not : for shortcode attributes. You have order:”DESC”.

    Your code should most likely be: [wpc_list_pages orderby="ID" order="DESC" course="Staff Training"]

    Hope that helps. Let us know if that fixes it for you or if you continue to have issues, make sure to email us: [email protected]

    Thread Starter richardhaynes

    (@richardhaynes)

    Thanks Zack, that sorted it. = not :

    Rich

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘orderby not working’ is closed to new replies.