HomeĐời Sống2911913

2911913

14:18, 12/04/2021
I am trying lớn create a Custom Premium aiesec-unwe.net theme for a Travel Agency. I am thinking of finishing the theme & submitting it for đánh giá.

Bạn đang xem: 2911913

I want this theme to be really useful so I ended up creating some Custom Post Types (CPT) lượt thích :

Organized Trip : with custom fields(CF) like : Hotel name, Trip Duration,Type of reservation,... .

I honestly agree with those who say for a better code these CPT & CF belong inlớn a Plugin something like **Organized Trip Plugin **.

So should I :

Or

Which one vì chưng you think is the Best Way to lớn bởi vì this?


custom-post-types theme-development custom-field themes
Share
Improve sầu this question
Follow
edited Oct 11 "19 at 8:37
*

cjbj
13.2k1616 gold badges3535 silver badges7878 bronze badges
asked Oct 10 "19 at 23:57
*

AnessAness
10333 bronze badges
Add a comment |

1 Answer 1


Active Oldest Votes
1
You will be rejected from the aiesec-unwe.net.org theme direcotry if you include these post types in the theme. The guidelines, which are available here, state:

Non-kiến thiết related functionality is not allowed. (See: Plugin territory examples)

And one of the examples is:

Custom Post Types và Shortcodes

Regarding TGM, the guidelines have sầu this to lớn say:

Themes cannot include plugins Themes cannot require plugins lớn work Themes may recommend plugins from aiesec-unwe.net.org

So you will not be rejected if you use TGM, as long as your plugin is recommended, & not required.

Xem thêm: Phân Tích Rủi Ro Phi Tài Chính Là Gì, Rủi Ro Tài Chính Là Gì

This is best practice regardless of the directory rules though. If post types are included in the theme, then if the user switches themes they will lose access khổng lồ their content, because the post types are no longer registered. This should not happen from switching themes. The content may not display correctly in the new theme, but the user will at least still have access to lớn it.


Share
Improve this answer
Follow
answered Oct 11 "19 at 0:08
*

Jacob PeattieJacob Peattie
31.9k1010 gold badges3737 silver badges5050 bronze badges
4
Add a phản hồi |

Your Answer


Thanks for contributing an answer to lớn aiesec-unwe.net Development Stachồng Exchange!

Please be sure lớn answer the question. Provide details và giới thiệu your research!

But avoid

Asking for help, clarification, or responding lớn other answers.Making statements based on opinion; baông chồng them up with references or personal experience.

To learn more, see our tips on writing great answers.

Xem thêm: Vợ Btv Quang Minh Và Vợ - Quang Minh (Biên Tập Viên)


Draft saved
Draft discarded

Sign up or log in


Sign up using Google
Sign up using Facebook
Sign up using Thư điện tử & Password
Submit

Post as a guest


Name
Thư điện tử Required, but never shown


Post as a guest


Name
Thư điện tử

Required, but never shown


Post Your Answer Discard

By clicking “Post Your Answer”, you agree khổng lồ our terms of service, privacy policy & cookie policy


Not the answer you're looking for? Browse other questions tagged custom-post-types theme-development custom-field themes or ask your own question.


The Overflow Blog
Featured on Meta
Related
0
Custom post type's extra fields - how lớn handle?
3
Using custom post types in submenu + custom title
0
Creating themes using the one Plugin (Toolkit)
0
Custom Post Type Fields
0
Theme changing issues for Portfolio Custom Post Types
1
Creating a custom post type using a object oriented approach?
0
Where lớn put code for coding Custom Post Types?
Hot Network Questions more hot questions

Question feed
Subscribe to lớn RSS
Question feed To subscribe khổng lồ this RSS feed, copy và paste this URL into your RSS reader.


*

lang-php
aiesec-unwe.net Development
Company
Stack Exchange Network
site kiến thiết / logo sản phẩm © 2021 Staông chồng Exchange Inc; user contributions licensed under cc by-sa. rev2021.4.9.39043


aiesec-unwe.net is a trademark of the aiesec-unwe.net Foundation, registered in the US & other countries. This site is not affiliated with the aiesec-unwe.net Foundation in any way.
aiesec-unwe.net Development Staông xã Exchange works best with JavaScript enabled
*

Your privacy

By clicking “Accept all cookies”, you agree Stachồng Exchange can store cookies on your device và discthua information in accordance with our Cookie Policy.


Chuyên mục: Đời Sống