• 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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • I might look into this further but I suppose you need to combine the wordpress rewrite api and the template_redirect action hook to get this working.

    I am needing to do something like this, only for post type “books” instead of travel products. I am not new to web dev, but I am new to both PHP and WP. Any help will be deeply appreciated!

    I should mention I am working in WP 2.9

    At the moment you can use these plug-ins for custom post-type:

    Flutter, Magic Fields, More Fields

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

The topic ‘use custom post_type for product plugin’ is closed to new replies.