• Hi Kreg,
    Thanks for your great plugin. I added some fields to it and now it’s completely compatible with my needs.
    But I have a problem with displaying sign box in my page.
    I created a page showing petitions’ title. I want to users be redirected to a page and view sign box that is related to the clicked title! I could pass petition id to the destination page but I couldn’t display sign box.
    I used the bellow code but it didn’t work.
    <?php echo '[emailpetition id="'.$id.'"]'; ?>
    It just shows [emailpetition id=”2″].

    I would be grateful if you could help me.

    https://wordpress.org/plugins/speakup-email-petitions/

Viewing 1 replies (of 1 total)
  • <?php echo do_shortcode( '[emailpetition id="'.$id.'"]' ); ?>

    Make sure $id is a number before you try to use it this way, or else it’s a potential security vulnerability.

Viewing 1 replies (of 1 total)
  • The topic ‘Showing sign box by clicking on a specific petition’ is closed to new replies.