Title: Poll Shortcode edit
Last modified: August 21, 2016

---

# Poll Shortcode edit

 *  Resolved [envision_beats](https://wordpress.org/support/users/envision_beats/)
 * (@envision_beats)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/poll-shortcode-edit/)
 * Thank you again for such an amazing plugin! Is it possible to customize the shortcode
   for each poll? I am trying to match the poll shortcode id with a post shortcode
   id. Let me know if this makes sense. Thank you in advance!
 * [https://wordpress.org/plugins/yop-poll/](https://wordpress.org/plugins/yop-poll/)

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

 *  Plugin Author [YOP](https://wordpress.org/support/users/yourownprogrammer/)
 * (@yourownprogrammer)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/poll-shortcode-edit/#post-4754635)
 * Hi envision_beats,
 * We’re happy you like our plugin!
    Can you please give us more details regarding
   your request?
 * YOP Team
 *  Thread Starter [envision_beats](https://wordpress.org/support/users/envision_beats/)
 * (@envision_beats)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/poll-shortcode-edit/#post-4754637)
 * Just wondering if it is possible to edit the shortcode that is attached to each
   poll. As of now it just outputs a number for the id [yop_poll id=”3″], for example.
   I would like to be able to customize the id number. So I could make it [yop_poll
   id=”custom-name”]. Does that help?
 *  Plugin Author [YOP](https://wordpress.org/support/users/yourownprogrammer/)
 * (@yourownprogrammer)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/poll-shortcode-edit/#post-4754642)
 * Hey envision_beats,
 * You can do that but you’ll have to send the poll’s ID to the function that processes
   the poll.
 * Edit inc/public-admin.php and on line 195 you will find the yop_poll_shortcode_function,
   that processes the ID. The parameters will then be sent to return_yop_poll.
 * You can extract the parameters you want to add from the shortcode message, located
   in yop_poll_shortcode_function
 * extract( shortcode_atts( array(
    ‘id’ => -1, ‘tr_id’ => ”, ‘offset’ => 0, ), 
   $atts ) );
 * and in the array that contains id, tr_id and offset you can add any other parameter
   you want.
 * Best wishes,
 * YOP Team
 *  Thread Starter [envision_beats](https://wordpress.org/support/users/envision_beats/)
 * (@envision_beats)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/poll-shortcode-edit/#post-4754647)
 * wow! perfect! Thank you so much. We really appreciate your time and effort. Going
   above an beyond. Thanks again, have a wonderful weekend!

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

The topic ‘Poll Shortcode edit’ is closed to new replies.

 * ![](https://ps.w.org/yop-poll/assets/icon-256x256.png?rev=3524390)
 * [YOP Poll](https://wordpress.org/plugins/yop-poll/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yop-poll/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yop-poll/)
 * [Active Topics](https://wordpress.org/support/plugin/yop-poll/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yop-poll/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yop-poll/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [envision_beats](https://wordpress.org/support/users/envision_beats/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/poll-shortcode-edit/#post-4754647)
 * Status: resolved