perhaps i am blind or something but i searched alot, here and also wordpress codex and similar.
In example i wrote a plugin that reads something from database and print someting. But how can i archive that i dont output in the plugin itself? The idea was put the variables to the theme and do the rest in the theme. Is this only possible with do_shortcode when you dont wanna use global variables? When i have 8 variables in example, how can i do that with a single shortcode? As i said, perhaps i am blind and didnt find the right thing. Or what is the best practice to do that simple thing? Perhaps someone have a small code example?
Regards and thanks
Read more here:: Plugin. Html code in Template