I have a problem: I’m trying to pull some pods data into a sidebar widget. I have set up a plugin which creates and registers the widget in WordPress, but when I add the following code to initiate my pods data, I get the following error message:
Fatal error: Call to a member function findRecords() on a non-object in C:webserverpublic_htmlaelwp-contentpluginssidebar-plugin.php on line 39
Here is an excerpt of the code I’m using to get the data:
$portfolio->findRecords($orderby);//order by here
...data goes here...
It seems that the Pod() method is not registering when I call it from within my plugin – can anyone offer any help on this?