Title: shortcode and rewrites
Last modified: August 19, 2016

---

# shortcode and rewrites

 *  Resolved [Justin Givens](https://wordpress.org/support/users/justindgivens/)
 * (@justindgivens)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/shortcode-and-rewrites/)
 * Good Day All,
 * I’m trying to update my plugin (current-location) to allow shortcode within the
   post. So I’ve got this so far working. In a new post I can add `[current-location
   options="coords, static" /]` and it works great. Well I want it to write the 
   return data to the table instead of on the “fly”. Meaning if someone post a new
   entry and using the shortcode, I want the shortcode to write the outputs (ex:
   34.665268, -86.76947) instead of [current-location options=”coords, static” /]
   to the database.
 * Basic when a users location is update, I don’t want the old post to update with
   the new location.
 * Any ideas?

Viewing 1 replies (of 1 total)

 *  Thread Starter [Justin Givens](https://wordpress.org/support/users/justindgivens/)
 * (@justindgivens)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/shortcode-and-rewrites/#post-1937253)
 * I used the post meta options to store information to the DB.

Viewing 1 replies (of 1 total)

The topic ‘shortcode and rewrites’ is closed to new replies.

## Tags

 * [posts](https://wordpress.org/support/topic-tag/posts/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 1 reply
 * 1 participant
 * Last reply from: [Justin Givens](https://wordpress.org/support/users/justindgivens/)
 * Last activity: [15 years, 3 months ago](https://wordpress.org/support/topic/shortcode-and-rewrites/#post-1937253)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
