Custom Post Type or Shortcode, What to choose?
While developing a multipupose theme for mass audience, i’m facing an issue.
I’m going to code staff listing section. Now i was wondering, what should i do?
1: Create dedicated Custom Post Type for staff; or
2: Create Shortcode for it.
Now each decision has some pros and cons.
a) Custom Post Type:
- Centralization, can call same group of listing on mutiple places without defining each time.
- Better staff order managerment
- No need to enter detail page link specifically
- Taxonomy support, so better hierarchy
- cons: dedicated CPT for it might be an overkill
b) Shortcode Approach:
- cons: cannot do anything with current shortcode generator which are described above and there would be too many fields in shortcode generator.
- pro: less messy WordPress sidemenu
Now is the best approach in this context?
Topic comparison shortcode custom-post-types Wordpress
Category Web