Some helpd, please: Problems with ENFOLD theme
-
Hello
CPT-onomies is a great concept and solves one of wordpress big issues to be used as a CMS.
I’m having a problem in trying to use it with the ENFOLD theme (a themeforest theme that has a layout builder that works nicely with taxonomies and custom post types)
I need to build a somewhat big site, where I have a CPT called “services”, and two other CPT’s “industry” and “lab” that act as taxonomies for “services”
I register custom post types using cpt-onomies and attach “industry” and “lab” as cpt-onomies for services, and they are editabel on the backed, but when I try to display “services” in the frontend (both single and archive), the site breaks when parsing the post metadata.
On apache I get the error:
‘mod_fcgid: stderr: PHP Catchable fatal error: Object of class WP_Error could not be converted to string in /home/(…)/wp-content/themes/enfold/includes/loop-index.php on line 166, referer: https://(…)/enfold/wp-admin/edit.php?post_type=servicos&orderby=setores&order=asc&mode=list’
As to loop-index.php, the code generating the error is the following:
‘ echo apply_filters(‘avf_loop_index_blog_meta’, $blog_meta_output);echo “</div>”;
echo “<div class=’entry-content-wrapper clearfix {$post_format}-content’>”;
echo ‘<header class=”entry-content-header”>’;$content_output = ‘<div class=”entry-content” ‘.zapp_markup_helper(array(‘context’ => ‘entry_content’,’echo’=>false)).’>’;
$content_output .= $content;
$content_output .= ‘</div>’;$taxonomies = get_object_taxonomies(get_post_type($the_id));
$cats = ”;
$excluded_taxonomies = array_merge( get_taxonomies( array( ‘public’ => false ) ), array(‘post_tag’,’post_format’) );
$excluded_taxonomies = apply_filters(‘avf_exclude_taxonomies’, $excluded_taxonomies, get_post_type($the_id), $the_id);if(!empty($taxonomies))
{
foreach($taxonomies as $taxonomy)
{
if(!in_array($taxonomy, $excluded_taxonomies))
{
$cats .= get_the_term_list($the_id, $taxonomy, ”, ‘, ‘,”).’ ‘;
}
}
}‘
I’ve tried changing the code, even deleting it, but can’t get the cpt-onomies to work.
Any help will be much appreciated.
thanks in advance
- The topic ‘Some helpd, please: Problems with ENFOLD theme’ is closed to new replies.