• Resolved cyberjon

    (@cyberjon)


    I am trying to filter list by States. I am trying to get the filter value using shortcode. Here is the code :

    [pdb_list filter=”state=[129]”]

    Where [129] is the state value from Formidable form. [129] outputs the value when used outside the filter. Is it possible to get this value in the filter?

    https://ww.wp.xz.cn/plugins/participants-database/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Roland Barker

    (@xnau)

    To do this, you have to use PHP so the shortcode will be interpreted. You can do this in a WP template or use a PHP plugin to include the PHP in your content:

    <?php echo do_shortcode( '[pdn_list filter="state=' . do_shortcode('[129]') . '" ]' ); ?>

    Thread Starter cyberjon

    (@cyberjon)

    Thank you Very Much! Used with Insert PHP and works like a charm!

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

The topic ‘Shortcode in Filter’ is closed to new replies.