I want to view the details of a product in single.php. The product is inserted in a newly added table "products" in the wordpress database and it has no post_type or post_id.
amith_ami
0
Junior Poster in Training
Recommended Answers
Jump to PostFor a wordpress site, please do not add the table manually, normally what we done is use a custom post type by nested the code into functions.php
//add "product" custom post add_action( 'init', 'create_product_post_types' ); function create_product_post_types() { register_post_type( 'product', array( 'labels' => array( 'name' => __( …
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.