Struggling

[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]
2 Comments
  1. 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

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer