I am a novice and want to show two tabs under every wordpress post. Under the first tab there would be related posts and under the second tab there would be wp comments. So The default comment area should be disabled. I have also managed to create tabs using this plugin: https://wordpress.org/plugins/tabby-responsive-tabs/ and adding the following code to my child theme's functions.php.
function add_post_content($content) {
if(!is_feed() && !is_home()) {
$above = '<p></p>';
$below = '[tabby title="First Tab"]
code needed to show related posts here...
[tabby title="Second Tab"]
<?php comments_template(); ?>
[tabbyending]';
$content = "$above $content $below";
}
return $content;
}
add_filter('the_content', 'add_post_content');
But is it the correct way? And of course, the comments are not showing by this code. So please provide a working code for the related posts (no thumbnail) and the comments to show up in the respective tabs.