Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Feb 2010
    Posts
    130
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Adding an sql query to a wordpress permalink?

    Ok....so I created a new wordpress theme and I still can't get my custom code to work.

    I want to be able to have a list of items, each item will have this URL format:

    www.site.com/category/subcategory/?id=XX

    The ?id=XX query should be at the end of the URL and will direct the user from the category page to the subcategory page showing specific data about the item with the XX id.

    This page shows something about it but I'm still confused.

    Each item in the list is wrapped in an <a href> tag in the category template page and the subcategory page uses $_GET. I've got one wordpress theme that works but on my other site, I use a different theme and it doesn't work. If a user clicks on an item in the list, the user gets directed to the subcategory page without the sql string attached. I'm not sure what to put in the functions.php file in wordpress (or whatever the file is called that handles functions) or in the htaccess. Any help is appreciated.

  • #2
    Regular Coder
    Join Date
    Feb 2010
    Posts
    130
    Thanks
    4
    Thanked 0 Times in 0 Posts
    *bump* anyone?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •