WordPress.org

Support

Support » Plugins and Hacks » Order list by custom field

Order list by custom field

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Fernando Briano
    Participant

    @fernandobt

    It would be possible. From what I read in the documentation it would be possible. I’ll check it out and see if I can add it to the next version.

    danicasati
    Participant

    @danicasati

    Thnak you very much.
    Many users will search for this feature.

    Plugin Author Fernando Briano
    Participant

    @fernandobt

    A first implementation was done for version 0.35:

    customfield_orderby – You can order the posts by a custom field. For example: [catlist numberposts=-1 customfield_orderby=Mood order=desc] will list all the posts with a “Mood” custom field. Remember the default order is descending, more on order:

    Please test and let me know what you think 🙂

    danicasati
    Participant

    @danicasati

    It seems it works…
    You rock!

    danicasati
    Participant

    @danicasati

    I’m testing this function, doesn’t work if “post_status=draft”.

    Plugin Author Fernando Briano
    Participant

    @fernandobt

    That’s weird, what other parameters are you using?

    I tried it with this on my dev blog:
    [catlist numberposts=-1 customfield_orderby=Mood post_status=draft order=desc]
    And it does work (also altering between “desc” and “asc” order changes).

    danicasati
    Participant

    @danicasati

    I’m using two shortcodes in the same post, it works in one, but adding post_status=draft it doesn’t work for me.
    Can I send URL in PM?

    Plugin Author Fernando Briano
    Participant

    @fernandobt

    Yes, or contact me here:
    http://picandocodigo.net/contact

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Order list by custom field’ is closed to new replies.