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

    (@xnau)

    Check the “other notes” page for details on using filters…you can use a filter in the shortcode like “age>18&age<30”

    Thread Starter philonbass

    (@philonbass)

    Hi xnau,

    Yes, thanks, but this would mean that I need to manually change the age field everytime someone has birthday. It would be nice if the age could be calculated from the birthdate field. Any suggestions?

    Phil

    Plugin Author xnau webdesign

    (@xnau)

    Phil, well in that case, you’ll need to use a custom template to filter the results. Basically, inside of the “$this->the_record()” loop, you’d check the birthday value in the record against the current date, then skip the record if it falls outside the desired range.

    I’ve got a page that gives you the basics on creating custom templates here: http://xnau.com/work-2/wordpress-plugins/participants-database/pdb-templates/

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

The topic ‘Filter by Age’ is closed to new replies.