Related Posts (Nimble Builder and Hueman-Pro)
I initially started this blog to remind myself of stuff I keep forgetting. The related posts “you might be also interested in…” feature of Nimble Builder v3.3.2 + Hueman-pro theme v1.4.25 was really driving me crazy. It was broken on some posts, sometimes it was not loading and occasionally was working, unexpectedly. I tried to disable it from the GUI with no success. The options were all greyed out as you can see in the picture here below
No doubts better ways of fixing this probably exists. Instead I went for the quick and dirty, so I will have to apply the fix every time they update the theme (worst case really). The good news is that they do not release updates so often and that the edited file might or might not change
I went into \wp\wp-content\themes\hueman-pro\addons\pro\related\front\tmpl and edited a file called related-posts-content.php
Change
//RELATED POSTS ENABLED ?
$rel_posts_enabled = esc_attr( hu_booleanize_checkbox_val( $db_opts['enable'] ) );if ( $rel_posts_enabled ) {
With
//RELATED POSTS ENABLED ?
$rel_posts_enabled = esc_attr( hu_booleanize_checkbox_val( $db_opts['enable'] ) );
$rel_posts_enabled = false;if ( $rel_posts_enabled ) {
Install a different plugin and pray it works