• Resolved giuseppepavia

    (@giuseppepavia)


    hello I have a list of numbers 1000,2000,3000 you can filter and display only the last entered?
    I thought of using [pdb_list fields = “field name” ………]

    thanks

Viewing 1 replies (of 1 total)
  • Plugin Author xnau webdesign

    (@xnau)

    If you mean by “last entered” the highest number, the way to do this is to sort the list, then only show one result. If your number field is named ‘number’ do it like this:

    [pdb_list orderby=number order=desc list_limit=1]

    If you don’t want the pagination control to show up, you can either hide it with CSS, or use a custom template for the list shortcode that only shows a single record. Check this article for some ideas on that:

    Showing a Search Result as a Single Record

    If by “last entered” you mean the last by date, you do the same thing, only sort the list by the “date_recorded” field.

Viewing 1 replies (of 1 total)
  • The topic ‘filters’ is closed to new replies.