Query, parameters and permalink (3 posts)

  1. skipstorm
    Posted 7 years ago #

    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

  2. MichaelH
    Posted 7 years ago #

    1. Could you use the template tag, get_posts()? If not see 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/ for some better ideas.

  3. skipstorm
    Posted 7 years ago #

    that's great!
    thank you very much

Topic Closed

This topic has been closed to new replies.

About this Topic