is there a way to loop through a shortcode data source created in a custom plugin like followed within a 3d party frontend design plugin?
function bs_test_fnc(){
$aData = array(
array('a','b','c'),
array('a','b','c'),
array('a','b','c'),
);
return $aData;
}
add_shortcode('bs_resource_table_datasource_test','bs_test_fnc');
Explaination:
The data tables in my plugin are not custom post types though I was wondering if I could somehow generate a propper dynamic table content with this data using some of the design plugins. But these pro plugin versions all cost a lot of money and they seem not to be able to attach to shortcodes in the way I was thinking this might work.
So how do you do this?
Do you force all your plugin data into custom post types in order to have it accessible to other plugins? Or is there another way?
I have of course created plain HTML tables and displayed my data through shortcodes to test backend functionality but this seems more like a misuse of PHP since I normally use templating engine frameworks (with other CMS). On top of that, this would probably be really hard to design and display properly like this. Especially not quick or repeatable and I am trying out WordPress to be able to do quick and pretty.
I'd appreciate it if you could explain or link to me a proper use case, how one would do this "templating" like in a template engine with custom WordPress plugins either in cooperation with 3d party plugins or use of a templating engine or other WordPress tools.
The taxonomies make this really hard to search for and identify the proper way to do this with WordPress.