use custom post_type for product plugin
-
I’m building on a wordpress plugin especially for travel products. All travel products will have their own page in which the product information is shown.
In order to be able to use ‘permalinks'(www.website.com/itinirary-1/), I’m trying to find the best way to build this plugin and use the wordpress database.
What I’ve tried is to add a record for each product in wp_posts with the custom post_type=’product’ and connect it with my plugin-table. Unfortunately that doesn’t seem to work. If I try to open the page it gives me a 404. In fact if I try to change the post_type of a working page to ‘product’, it won’t work anymore either.
I hope you guys and girls can help me with a solution for this. Also if you believe there is a more appropriate way of dealing with this issue, I would be happy to hear from you. Thanks.
The topic ‘use custom post_type for product plugin’ is closed to new replies.