• Resolved tcbct

    (@tcbct)


    I have a page using the shortcode from the Plugin page:

    [yop_poll_archive sort=”date_added” sort_dir=”desc”]

    However, it doesn’t seem to sort by newest first. I can’t figure it out. Any help is appreciated.

    Additionally, is there a way to have the archive page/shortcode not show drafts? Currently the shortcode is displaying all polls, including the drafts, looking to have it just show published ones.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author YOP

    (@yourownprogrammer)

    @tcbct

    it looks like there is an error on the docs page.
    The correct shortcode looks like this

    [yop_poll_archive sort=”date_added” sortdir=”desc”]

    As for not displaying drafts in poll archive, it looks like it’s a bug as it should only display published polls.

    Both these issues will be fixed with the next release.

    Thread Starter tcbct

    (@tcbct)

    That short code worked, and noted on the patch for the next release. Thank you for the response and help! Much appreciated!

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

The topic ‘Sorting the Archive Shortcode’ is closed to new replies.