Title: Adding A Custom Variable to URL String
Last modified: August 20, 2016

---

# Adding A Custom Variable to URL String

 *  Resolved [tempestamedia](https://wordpress.org/support/users/tempestamedia/)
 * (@tempestamedia)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/adding-a-custom-variable-to-url-string/)
 * We are using the latest version of Postie. It’s a great tool. However, we’re 
   having a challenge with article titles vs. URL strings.
 * We want to post our articles, via email (through Postie) to our website. We need
   the URL of the post to include an article ID. The article ID is currently being
   passed, as part of the article title, through the subject line of the email. 
   For example.
 * “Postie is Great **23847**“
 * We need to be able to strip the article ID from the title, when it gets published,
   but maintain the article ID in the URL. For example:
 * “[http://www.mysite.com/posts/postie-is-great-](http://www.mysite.com/posts/postie-is-great-)**
   23847**“
 * But the Post Title:
 * “Postie is Great”
 * What approach should we take to make this effectively work with Postie? Is there
   a specific tag or configuration we should use? Should we use the body of the 
   email for the title and leave the article ID in the subject line? We could really
   use some help on this.
 * Thank you.
 * [http://wordpress.org/extend/plugins/postie/](http://wordpress.org/extend/plugins/postie/)

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

 *  Plugin Author [Wayne Allen](https://wordpress.org/support/users/wayneallen-1/)
 * (@wayneallen-1)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/adding-a-custom-variable-to-url-string/#post-3379992)
 * One approach is to use the postie_post filter as described in filterPostie.php.
   sample
 * In your filter create a ‘post_name’ entry in the array and update the ‘post_title’
   to remove the ID.
 *  Thread Starter [tempestamedia](https://wordpress.org/support/users/tempestamedia/)
 * (@tempestamedia)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/adding-a-custom-variable-to-url-string/#post-3380026)
 * Thank you Wayne. I’m going to have my developer try this tomorrow morning. I’ll
   let you know what happens.

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

The topic ‘Adding A Custom Variable to URL String’ is closed to new replies.

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

## Tags

 * [subject line](https://wordpress.org/support/topic-tag/subject-line/)
 * [title](https://wordpress.org/support/topic-tag/title/)
 * [url string](https://wordpress.org/support/topic-tag/url-string/)

 * 2 replies
 * 2 participants
 * Last reply from: [tempestamedia](https://wordpress.org/support/users/tempestamedia/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/adding-a-custom-variable-to-url-string/#post-3380026)
 * Status: resolved