How do I display a custom field from a custom taxonomy in single.php?

Catchable fatal error: Object of class stdClass could not be converted to string in /wp-content/themes/new/single.php on line 22 This is because $wpdb->get_row returns an object by default and you can’t echo an object. Changing echo $toc to echo $toc->meta_value will give you your desired result. Your other problem is that multiple terms can have have … Read more

Single page site + pushState?

I did something similar to this on einsteinworld.com. The way I did it was to use a function in functions.php to get and render the content, then I called the same function from single.php or via ajax depending on the scenario. Like that you can either use the global $post for direct navigation to the … Read more