PODS + WP Theme
- by Sharath
So I managed to setup pods and create my custom tables. Now I want to revamp my theme so that it pulls data from the POD table.
Doesn't seem to be working... This is what I did..
I have a Pod called 'project_type' with a name (string) and a code (string) field.
Have also added 3 entries via the admin system.
I made a copy of the default wordpress plugin and renamed it to myTheme and activated it.
Inside index.php of myTheme, I removed all the default code.. and have just the POD specific code as shown below.
<?php
echo "Hello World";
$p = new Pod('project_type');
echo $p->getTotalRows();
?>
However, when I reload my page, only Hello World shows up? A bit new to Wordpress so kindly advice.