Title: Programatically set shortcode argument
Last modified: August 30, 2016

---

# Programatically set shortcode argument

 *  [Dovberman](https://wordpress.org/support/users/dovberman/)
 * (@dovberman)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/programatically-set-shortcode-argument/)
 * I am using gravity forms to add and edit a product post from the frontend.
 * The shortcode parameter to edit a post is:
    [gravityform id=”1″ update=”451″]
 * Where 451 is the product post id.
 * Currently the admin needs to find the id and manually insert it as the argument.
 * I need a front end plugin that lists product posted by the logged in user who
   is in the Author role.
 * The user should be able to select a product on the list that they would like 
   to edit.
    Then the shortcode should be reset to allow the user to update the 
   product post.
 * ie.
    [gravityform id=”1″ update=”465″] where 465 is the id of the selected post.
 * Any reference would be appreciated.
    Thanks,
 * Dovberman

The topic ‘Programatically set shortcode argument’ is closed to new replies.

## Tags

 * [gravityform](https://wordpress.org/support/topic-tag/gravityform/)
 * [product](https://wordpress.org/support/topic-tag/product/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)
 * [update post](https://wordpress.org/support/topic-tag/update-post/)

 * 0 replies
 * 1 participant
 * Last reply from: [Dovberman](https://wordpress.org/support/users/dovberman/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/programatically-set-shortcode-argument/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
