[ad_1]
Hey guys, was hoping someone could point me in the right direction to be able to display data from my SQL tables on a page? I am looking to display the sum of a column, currently using a custom plugin and short code but that is not going so well.
Any insight would be greatly appreciated. Trying to utilise LLMs but they seem to be pointing me in the wrong direction (none of their code works)
[ad_2]
You say you’re using a custom plugin, which is pretty vague. What does your custom plugin actually do, other than expose a shortcode?
If you post some code snippets or logic from your plugin, we’d be able to offer more in the way of help. What you’re trying to do doesn’t sound difficult;
– Execute some SQL to retrieve data
– If not using `SUM`, perform calculations on that data
– Echo to page at shortcode location
You’re going to need to be specific eg show us the code, screenshots, etc.