• Hi there,

    I’d like to know if it is possible to sort the loop by the last time a post was updated.

    Ex:

    [loop type="post" count="3" orderby="date" order="DESC"]
                <a href="[content field='url']">
                    [content field="title"]
                </a>
        [/loop]

    But, instead of date, the last time the post was updated

    [loop type="post" count="3" orderby="UPDATED" order="DESC"]
                <a href="[content field='url']">
                    [content field="title"]
                </a>
     [/loop]

    Thank you.

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

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

The topic ‘Order by update’ is closed to new replies.