n00b question: Best method for outputting plugin data on specific places on page
-
Hi! I have developed my own template, and now I’m trying to write a multi-step form plugin, which I will insert in a specific spot on the front page. I have spent some time reading the plugin development docs now, but I’m not really getting what would be the best approach for a plugin like that.
For example, if I wanted this (link) in a plugin, and then to show it in a specific spot on the frontpage.
https://www.w3schools.com/howto/howto_js_form_steps.aspI have an activated working plugin that I can get to output text through a custom shortcode. But I am not sure if shortcode is the right way to do it, because it seems like I have to return everything in a variable, which seems to eliminate code tidyness and also the small fact that I need to use both ” and ‘ in my value there.
I tried fetching the code from a separate file and then returning it to the shortcode, but that throws an error. So now I’m lost.
Can somebody guide me into the right direction?
- The topic ‘n00b question: Best method for outputting plugin data on specific places on page’ is closed to new replies.