Tagged: x
-
AuthorPosts
-
November 3, 2016 at 9:11 am #1242366
jm139ParticipantHi,
I created a new post and see this message at the bottom of the post:
Catchable fatal error: Object of class WP_Error could not be converted to string in /home/aamus395/public_html/labs/wp-content/themes/x/framework/views/renew/_content-post-footer.php on line 13
Normally the comment box would appear around that area. It is not happening on other posts.
URL: http://labs.aam-us.org/blog/moving-to-accessible-digital-video/
Wordpress Version: 4.6.1
X Version: 4.6.2
Cornerstone Version: 1.3.2Josh
November 3, 2016 at 9:38 am #1242433
RahulModeratorHey There,
Thanks for writing in!
Kindly update your current X-theme version to the latest version i.e. X version: 4.6.4 first.
Hope this helps!
Thank you.
November 3, 2016 at 10:59 am #1242570
jm139ParticipantOk. Updated to 4.6.4. The error is still there. Any ideas?
Josh
November 3, 2016 at 11:03 am #1242575
jm139ParticipantOk I figured a part of this out. It doesn’t like when we add tags. I removed the tags and published and did not get the error. As soon as I add a single tag I see the error. We need to be able to have tags on our posts. Any ideas?
Josh
November 3, 2016 at 2:12 pm #1242774
JadeModeratorHi Josh,
Please try to add this in the functions.php code of the child theme:
add_action('x_after_view_global__content', 'add_post_tags'); function add_post_tags() { if( is_singular('post') ) { if ( has_tag() ) : ?> <footer class="entry-footer cf"> <?php echo get_the_tag_list( '<p><i class="x-icon-tags"></i> Tags: ', ', ', '</p>' ); ?> </footer> <?php endif; } }Then add this in the custom CSS:
.entry-footer { margin-top: 1.5em; padding: 1em 1.25em; line-height: 1.4; background-color: #f9f9f9; display:block; } .cf:before, .cf:after { display: table; content: ""; } .cf:after { clear: both; }Hope this helps.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1242366 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
