admin管理员组文章数量:1130349
I have been struggling with this, please correct me if I am wrong
- Posts are used for time sensitive information - like blog posts
- Pages are used for non transitive information - like about us and other pages that dont change too frequently
- Custom post type is used to create posts type that are different from the usual post structure and need more than usual data that could be handled via default post.
I am building a site that will have this structure
Level ->Course->Lesson->Quiz
The quiz is being created using WP-PRO-QUIZ - so the last point is clear. How do I build the rest of structure? Do I create Lesson onward as Pages? or Posts? or a mixture thereof. At each Level ->Course->Lesson->Quiz there will be an image a description and a downloadable pdf file.
I have been struggling with this, please correct me if I am wrong
- Posts are used for time sensitive information - like blog posts
- Pages are used for non transitive information - like about us and other pages that dont change too frequently
- Custom post type is used to create posts type that are different from the usual post structure and need more than usual data that could be handled via default post.
I am building a site that will have this structure
Level ->Course->Lesson->Quiz
The quiz is being created using WP-PRO-QUIZ - so the last point is clear. How do I build the rest of structure? Do I create Lesson onward as Pages? or Posts? or a mixture thereof. At each Level ->Course->Lesson->Quiz there will be an image a description and a downloadable pdf file.
Share Improve this question edited Nov 16, 2018 at 9:58 Jacob Peattie 44.3k10 gold badges50 silver badges64 bronze badges asked Nov 16, 2018 at 9:31 Bipin GaurBipin Gaur 11 Answer
Reset to default 0There are many ways of achieving the same or similar outcomes when it comes to WordPress. It is difficult to answer Question:3 without a full overview or gaining more detail into your project.
You are correct in your assumptions for question 1 and 2 for the purposes of this context. I'm sure there are many here who could write a book on the matter. But for all intended purposes, your understanding of post and pages is correct.
From what you explained in question 3.
Glossary *CPT = Custom Post Type
You could use CPT for Lessons and Quizes and creating courses as a taxonomy that is simply used to categorise lessons into a course. Lesson & Quizes would have a parent and child relationship so pulling lessons, would pull related quizes
You could even create Course and Lessons and Quizes as CPTs with Parent, Child and Grandchild relationships. So pulling a Course, would pull related Lessons and related Quizes
The possibilities are numerous.
It boils down to personal opinion. Which I believe is not what these forms are used for. (I thought I'd answer anyway to let you know you're doing ok and there really isn't a right or a wrong way) (....this is where I get shot down by the clean code police)
My suggestion is: Map it out on paper and think about what each section will do and how each section will relate to the other sections.
Once you've chosen your approach start building. If you get stuck come back here with your issues and be specific in what the technical issue is and what you are trying to achieve. (give as much detail as possible, as briefly as possible)
We can help you with technical issues, but we can't choose how you structure your build for you, that's for you to decide.
I have been struggling with this, please correct me if I am wrong
- Posts are used for time sensitive information - like blog posts
- Pages are used for non transitive information - like about us and other pages that dont change too frequently
- Custom post type is used to create posts type that are different from the usual post structure and need more than usual data that could be handled via default post.
I am building a site that will have this structure
Level ->Course->Lesson->Quiz
The quiz is being created using WP-PRO-QUIZ - so the last point is clear. How do I build the rest of structure? Do I create Lesson onward as Pages? or Posts? or a mixture thereof. At each Level ->Course->Lesson->Quiz there will be an image a description and a downloadable pdf file.
I have been struggling with this, please correct me if I am wrong
- Posts are used for time sensitive information - like blog posts
- Pages are used for non transitive information - like about us and other pages that dont change too frequently
- Custom post type is used to create posts type that are different from the usual post structure and need more than usual data that could be handled via default post.
I am building a site that will have this structure
Level ->Course->Lesson->Quiz
The quiz is being created using WP-PRO-QUIZ - so the last point is clear. How do I build the rest of structure? Do I create Lesson onward as Pages? or Posts? or a mixture thereof. At each Level ->Course->Lesson->Quiz there will be an image a description and a downloadable pdf file.
Share Improve this question edited Nov 16, 2018 at 9:58 Jacob Peattie 44.3k10 gold badges50 silver badges64 bronze badges asked Nov 16, 2018 at 9:31 Bipin GaurBipin Gaur 11 Answer
Reset to default 0There are many ways of achieving the same or similar outcomes when it comes to WordPress. It is difficult to answer Question:3 without a full overview or gaining more detail into your project.
You are correct in your assumptions for question 1 and 2 for the purposes of this context. I'm sure there are many here who could write a book on the matter. But for all intended purposes, your understanding of post and pages is correct.
From what you explained in question 3.
Glossary *CPT = Custom Post Type
You could use CPT for Lessons and Quizes and creating courses as a taxonomy that is simply used to categorise lessons into a course. Lesson & Quizes would have a parent and child relationship so pulling lessons, would pull related quizes
You could even create Course and Lessons and Quizes as CPTs with Parent, Child and Grandchild relationships. So pulling a Course, would pull related Lessons and related Quizes
The possibilities are numerous.
It boils down to personal opinion. Which I believe is not what these forms are used for. (I thought I'd answer anyway to let you know you're doing ok and there really isn't a right or a wrong way) (....this is where I get shot down by the clean code police)
My suggestion is: Map it out on paper and think about what each section will do and how each section will relate to the other sections.
Once you've chosen your approach start building. If you get stuck come back here with your issues and be specific in what the technical issue is and what you are trying to achieve. (give as much detail as possible, as briefly as possible)
We can help you with technical issues, but we can't choose how you structure your build for you, that's for you to decide.
本文标签: customizationpost and page and custom post type
版权声明:本文标题:customization - post and page and custom post type 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749175486a2327723.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论