• Resolved rhiannonmorris

    (@rhiannonmorris)


    Hi,
    I was just wondering, is there a way that I could use your plug-in to set custom sort rules in my template file. If so, how would it be done? If not, can you suggest another of doing this?

    To be clear, I have a number of categories some I want the archive page to display the way WordPress intended (date) but others I want alphabetical.

    Thanks in advance.
    Love the plug-in by the way, it taught me alot about shortcodes that I never knew.

    https://ww.wp.xz.cn/plugins/custom-content-shortcode/

Viewing 1 replies (of 1 total)
  • Plugin Author Eliot Akira

    (@miyarakira)

    Hello, sorry for the late reply.

    At the moment, there’s no way to add custom sort rules. However, from what you described, it may be possible using the loop shortcode.

    To display a category of posts sorted by date:

    [loop type="post" category="cat-1" orderby="date"]

    To display a category of posts sorted by title (alphabetical):

    [loop type="post" category="cat-1" orderby="title" order="ASC"]

    For details, please see in your admin panel, under Settings -> Custom Content -> Loop, in the Sorting and Series section.

Viewing 1 replies (of 1 total)

The topic ‘Sort Category Template’ is closed to new replies.