I am in my early stage on learning wp development and tried something "simple".
To manage some custom entities in my back-end and try to display them in front-end. So what i did was:
- Created custom post type , custom taxonomies
- Created custom fields for all the stuff i need to keep
- Created page template for showing an index of my stuff
- Created a single template that displays one entity.
But i would like NOT to be dependent from the current template i use. What are the ways to achieve this? Should i create a plugin with shortcodes that output what i need? or something else?
For example lets say that i need to display a paginated list of custom post types. One way to do it is to create a page with a custom page template and do the work there. This is coupled with template. Another approach would be to create a plugin and in there to create a shortcode. Then i can create a page template based on whatever template i have installed and use the short code in there to get the table.
What i ask is what wordpress development paradigm dictates in order to separate the concerns..