Title: Passing values through url
Last modified: August 21, 2016

---

# Passing values through url

 *  [lara400](https://wordpress.org/support/users/lara400/)
 * (@lara400)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/passing-values-through-url/)
 * Hi,
 * My site url is like
    [http://localhost/sitename/machines-detail/?class_id=406&cat_id=461](http://localhost/sitename/machines-detail/?class_id=406&cat_id=461)
   and i get the class and cat id using get function.
 * Is there any way that I can make the url
    [http://localhost/sitename/machines-detail/406/461](http://localhost/sitename/machines-detail/406/461)
 * and get the first value as class_id and second as cat_id
 * Please Help!
 * Many Thanks in advance

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

 *  [shamratdewan](https://wordpress.org/support/users/shamratdewan/)
 * (@shamratdewan)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/passing-values-through-url/#post-5008422)
 * are you not using [Permalink](http://codex.wordpress.org/Using_Permalinks)
 *  Thread Starter [lara400](https://wordpress.org/support/users/lara400/)
 * (@lara400)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/passing-values-through-url/#post-5008423)
 * Yes I am using permalink,but i need to pass these two values through url.
    iam
   storing products in a table outside wp db. I am using using these values in the
   url to fetch data from this table
 *  Thread Starter [lara400](https://wordpress.org/support/users/lara400/)
 * (@lara400)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/passing-values-through-url/#post-5008491)
 * Need Help! 🙁
 *  [shamratdewan](https://wordpress.org/support/users/shamratdewan/)
 * (@shamratdewan)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/passing-values-through-url/#post-5008498)
 * Sorry but I have not yet come across any alternative for the thing you are trying
   to achieve. However, suggestion: try to use session!! for the two veriable class_id&
   cat_id , may be put an onclick event that you update the value…

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

The topic ‘Passing values through url’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [shamratdewan](https://wordpress.org/support/users/shamratdewan/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/passing-values-through-url/#post-5008498)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
