2

Does anyone know how to display on a WordPress site the CiviCRM Personal Campaign Pages, with the amount raised, number of donations and the supporter who run the PcP?

I have managed to display the amount raised and the number of donations with the Shortcode [ux_campaign_info_thermometer], but would need to link this info with the PcP supporter.

Thank you!

1
  • Not sure if there is an existing built in shortcode for all PCPs but you could create a SearchKit with a display and use the shortcode for that one ? Commented Oct 16 at 11:11

1 Answer 1

3

I think it's all in SK, just checked on dmaster and the below search would allow you to create the relevant displays

pcp-search

I can't set the display to bypass permissions on dmaster but with that enabled you should be able to display it publicly

enter image description here

2
  • Many thanks for your helpful response. I managed to create the Search Kit query and the FormBuilder (a Search Form) with "Accessible on front-end of website" enabled, but when introducing the shortcode: [civicrm component="afform" name="x"] on a WordPress page the form is not displayed. Any idea what I am missing? Thank you! Commented Oct 22 at 14:12
  • Great! Do try on the search display to toggle the bit at the top from 'Enforce permissions' to 'Bypass permissions' Commented Oct 22 at 14:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.