$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>custom post types - How to manage a bookstore|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

custom post types - How to manage a bookstore

matteradmin9PV0评论

I am planning to make a bookstore website with Wordpress.

Can you give me some advice to manage my store?

I'm not sure whether to choose Custom Post Type or Custom Taxonomy to manage the authors of the book. Because a book can be written by many authors and an author will write many different books.

I would like to have a separate page for each author and when the user clicks on each author's link, he / she will have information about that author and the books he wrote, and also in the product page I want Add suggestions to customers about books with the author.

So I should create a custom Custom Post Type to manage the author and link to Woocommerce or I should create 1 Woocommerce Taxanomy (like the Catalog) to manage and display authors and books as I want above.

Thanks for your help! :)

I am planning to make a bookstore website with Wordpress.

Can you give me some advice to manage my store?

I'm not sure whether to choose Custom Post Type or Custom Taxonomy to manage the authors of the book. Because a book can be written by many authors and an author will write many different books.

I would like to have a separate page for each author and when the user clicks on each author's link, he / she will have information about that author and the books he wrote, and also in the product page I want Add suggestions to customers about books with the author.

So I should create a custom Custom Post Type to manage the author and link to Woocommerce or I should create 1 Woocommerce Taxanomy (like the Catalog) to manage and display authors and books as I want above.

Thanks for your help! :)

Share Improve this question asked Feb 3, 2019 at 8:10 Minh ChungMinh Chung 212 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

Sounds like the author should be a taxonomy to me. You can have multiple authors to one book and multiple books to one or multiple authors, just like you can do with tags.

Articles related to this article

Post a comment

comment list (0)

  1. No comments so far