• Resolved flodi

    (@flodi)


    I want to get the post with the highest number in a custom field (non every post has that custom field), and I thought about doing that with a loop

    [loop type=”post” count=”1″ orderby field=”_vote_like” key=”_vote_like” order desc]

    but this is not woring. Hints? Thanks!

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

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

    (@miyarakira)

    I believe it should work with something like this:

    [loop type="post" count="1" orderby="field" key="_vote_like" order="desc"]

    You can also check to make sure the field name is correct, under Dashboard -> Content Overview.

    Thread Starter flodi

    (@flodi)

    Thank you!

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

The topic ‘Loop on custom field’ is closed to new replies.