Title: Button URL to include post id
Last modified: September 17, 2020

---

# Button URL to include post id

 *  [modemmike](https://wordpress.org/support/users/modemmike/)
 * (@modemmike)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/button-url-to-include-post-id/)
 * I’d like to create a button that links to a custom script that will export the
   post data with ACF data to CSV (or whatever) but I’m not understanding how to
   add data to the link dynamically, I think just the post id will be enough to 
   get what I need in my PHP scripting.
 * Link: /export-csv/?post_id=<posdt_id>
 * Any suggestions?

The topic ‘Button URL to include post id’ is closed to new replies.

 * ![](https://ps.w.org/elementor/assets/icon-256x256.gif?rev=3444228)
 * [Elementor Website Builder - more than just a page builder](https://wordpress.org/plugins/elementor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/elementor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/elementor/)
 * [Active Topics](https://wordpress.org/support/plugin/elementor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/elementor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/elementor/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [modemmike](https://wordpress.org/support/users/modemmike/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/button-url-to-include-post-id/)
 * Status: not resolved