• Resolved jjdualan

    (@jjdualan)


    I’m trying to use the plugin to display a total from a donation page that filtered based on a Charity. Each charity has their own page and I’m trying to create a archive template using Divi. I have it working correctly except I had to hardcode the filter value (name of Charity) into the shortcode. Would it be possible to have it filter based on the current page title? So if I have the page titled the name of the charity it would filter by that charity?

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

    (@gravitywp)

    Hello,

    This is not possible with only GravityWP Count. However, it is possible to use mergetags within shortcodes. You will need the {current_post:post_title} mergetag from GravityView and the Post content mergetags plugin from Gravity Perks. Then you can probably do it like this:

    [gravitywp_count formid='1' filter_field='1'  filter_value='{current_post:post_title}']
    Thread Starter jjdualan

    (@jjdualan)

    Trying to get this working using those two plugins. Do you know if it’s possible to activate the {current_post:post_title} mergetag without having to choose the page from the Gravity Form confirmation settings page?

    There’s a checkbox to Enable Merge Tags in Page Content but I think it’s only enabling the mergetag on whatever page you set as the confirmation page.

    Plugin Author GravityWP

    (@gravitywp)

    Did you try to activate ‘Enable Merge Tags in Page Content’? As far as I know it will activate merge tags on all pages.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Filter Based on Title’ is closed to new replies.