Shortcodes

There are multiple shortcodes in both core plugin and pro addon.

1. Full petition display using Shortcode: [cbxpetition]

Param Name Default Value Possible Values
petition_id any petition post id
sections Sections names by comma. If empty shows all sections. Available sections:

  • cbxpetition_banner
  • cbxpetition_stat
  • cbxpetition_video
  • cbxpetition_photos
  • cbxpetition_letter
  • cbxpetition_signform
  • cbxpetition_signature

2. Petition Summary display Shortcode: [cbxpetition_summary]

Param Name Default Value Possible Values
petition_id any petition post id
sections Sections names by comma. If empty shows all sections. Available sections:

  • title
  • content
  • stat
  • expire_date
  • cbxpetition_letter

3. Petition Sign form Shortcode: [cbxpetition_signform]

Param Name Default Value Possible Values
petition_id any petition post id
title Sign this Petition Any title

The follow shortcodes are for Single section display for petition with params

4. Petition Video section form Shortcode: [cbxpetition_video]

Param Name Default Value Possible Values
petition_id any petition post id

5. Petition Photos display section form Shortcode: [cbxpetition_photos]

Param Name Default Value Possible Values
petition_id any petition post id

6. Petition Letter display section form Shortcode: [cbxpetition_letter]

Param Name Default Value Possible Values
petition_id any petition post id

7. Petition Banner display section form Shortcode: [cbxpetition_banner]

Param Name Default Value Possible Values
petition_id any petition post id

8. Petition Signature display section form Shortcode: [cbxpetition_signatures]

Param Name Default Value Possible Values
petition_id any petition post id

9. Petition Signature display section form Shortcode: [cbxpetition_signatures]

Param Name Default Value Possible Values
petition_id Any petition post id
perpage 20 (Set from plugin setting) Any numeric value greater than 0
order DESC DESC, ASC
orderby id id, petition_id, f_name, l_name, email, state

10. Petition Stat display section form Shortcode: [cbxpetition_stat]

Param Name Default Value Possible Values
petition_id Any petition post id
show_count 1 1, 0
show_progress 1 1,0

Miscelleaneous Shortcodes

11. Petition Stat display section form Shortcode: [cbxpetition_latest]

Param Name Default Value Possible Values
limit 10 Any numeric value
order DESC DESC, ASC
orderby ID ID or we used get_posts() function so any orderby params used for wp_query can be used except the meta order by param
post_status publish publish, pending, draft, auto-draft, future, private, inherit, trash, any

Last modified: March 18, 2025