View Single Post
Old 06-29-2013, 01:07 PM  
Tittytweaker
Confirmed User
 
Tittytweaker's Avatar
 
Industry Role:
Join Date: Dec 2012
Posts: 184
I manged to fix it by combining the two custom taxonomy chunks into one chunk of php code, I think. Basically took out the closing tags of the first one, and the opening tags of the second. Corresponded to the line error, so I guess that was it.

Now I'm getting an error when I try to use get_the_term_list to display the taxonomy on a page. :

Catchable fatal error: Object of class WP_Error could not be converted to string in /home/content/42/10173742/html/wp-content/themes/adultphoto-01-pink/single.php on line 45

The code is:

Code:
<div class="image-site"><?php

$site_list = get_the_term_list( $post->ID, 'site', 'Site: ', ', ', '' );

// Output taxonomy information if there was any

if ( '' != $site_list ) {
echo $site_list;
} // endif

?>
</div>
Line 45 is echo $site_list;. This is the same code I'm using to display the other taxonomy on the page as well, just a different term. Each are in a separate div so I don't think I can fix it the same way I did with the other. Ideas?

Thanks for being patient with me, this php stuff is just way over my head, difficult to grasp.
__________________
www.tittytweaker.com
Tittytweaker is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook