Title: Query, parameters and permalink
Last modified: August 19, 2016

---

# Query, parameters and permalink

 *  [skipstorm](https://wordpress.org/support/users/skipstorm/)
 * (@skipstorm)
 * [17 years ago](https://wordpress.org/support/topic/query-parameters-and-permalink/)
 * Hi, don’t know if this is the right category, anyway
 * i couldn’t find these informations, hope someone can help.
 * 1. Where is the documentation for the query functions? I’d like to use wordpress
   funcs instead of mysql_query but the only info i’ve found are about ordering 
   a query.
    I need to use JOIN and IN or equivalent.
 * Is there an object i need to use to perform queryes?
    How do i get the table 
   prefix in case i have to make the queryes my self?
 * 2. the add_query_arg function doesn’t work with permalink
    what’s the function
   i need to use to create relative links to the same site in a plugin so that they’ll
   work as when using permalink as when don’t
 * Thanks for your help

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

 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [17 years ago](https://wordpress.org/support/topic/query-parameters-and-permalink/#post-1099420)
 * 1. Could you use the [template tag](http://codex.wordpress.org/Template_Tags),
   [get_posts()](http://codex.wordpress.org/Template_Tags/get_posts)? If not see
   [wpdb](http://codex.wordpress.org/wpdb).
 * 2. I’m just guessing here, that you might need set_query_var, but look at a plugin
   such as [http://wordpress.org/extend/plugins/tdo-tag-fixes/](http://wordpress.org/extend/plugins/tdo-tag-fixes/)
   for some better ideas.
 *  Thread Starter [skipstorm](https://wordpress.org/support/users/skipstorm/)
 * (@skipstorm)
 * [17 years ago](https://wordpress.org/support/topic/query-parameters-and-permalink/#post-1099458)
 * that’s great!
    thank you very much

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

The topic ‘Query, parameters and permalink’ is closed to new replies.

 * 2 replies
 * 2 participants
 * Last reply from: [skipstorm](https://wordpress.org/support/users/skipstorm/)
 * Last activity: [17 years ago](https://wordpress.org/support/topic/query-parameters-and-permalink/#post-1099458)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
