pods-framework / pods

The Pods Framework is a Content Development Framework for WordPress - It lets you create and extend content types that can be used for any project. Add fields of various types we've built in, or add your own with custom inputs, you have total control.
https://pods.io/
GNU General Public License v2.0
1.06k stars 265 forks source link

Cant sorting pods block #7313

Open wireinet opened 2 weeks ago

wireinet commented 2 weeks ago

Description

t.post_modified DESC (for example) in not work in my case in pods. Even the suggested option (under input field) does not work. I can't figure out what he needs. I just need sorting options.

Version

3.1

Testing Instructions

1) Add gutenberg block "Pods Item List" 2) Select pod name employee (for example) this custom post type created by pods 3) Select template "emploee" in my case this is simple

  • item with fields:

    [if post_thumbnail]
    {@post_title}
    [/if]

    {@post_title}

    {@employee__post}

    {@employee__phone}

    [if employee__fax]

    {@employee__fax}

    [/if] [if employee__skype]

    {@employee__skype}

    [/if]

    4) i get list of items with some sorting (cant understand whats is default options) 5) set suggested options like t.post_title ASC and get error: "Pods Embed Error: ORDER BY contains SQL that is not allowed."

    Screenshots / Screencast

    2024-06-20_11-58-27

    Possible Workaround

    No response

    Site Health Information

    No response

    Pods Package

    No response