Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I've created a plug in that displays a list of items from the database. I need to link from an item to the item description page, however instead of the link looking like:

item_description.php?item_id=2

I'd like it to look like:

products/this-is-the-product-name

How do I create the page I'm linking to and set it to be directed there? How can I read the slug? Thank you for any ideas!

share|improve this question
    
what are products exactly? a custom post type? –  Milo Aug 12 '13 at 16:01
    
Have you seen this? –  toscho Aug 12 '13 at 16:01
    
I've created a page that with a shortcode lists all the, for example, cars in a database. I want to be able to click on a car and go to cars/ford-mustang which will then show me specific info on the selected car –  penpen Aug 12 '13 at 16:04
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.