Comment Load Options on a Single Post

Posted in: Newspaper
Post count: 52

Is there a way to add a tab on single posts. So that by default only 10 comments would load. But a tab would show to load the remaining comments.

Thanks in advance.

Post count: 23312

Hello firetoss,

If you want to add the tab on single posts, you can do it if you are using the do_shortcode method. First of all, you have to create the code from Visual Composer, like this -> http://screencast.com/t/nZBNCZx9Y and then you have to create this code ->
<?php echo do_shortcode('[vc_tta_tabs][vc_tta_section title="Tab 1" tab_id="1461047600033-9a2e045c-8d40"][/vc_tta_section][vc_tta_section title="Tab 2" tab_id="1461047600063-077fb1e5-cf44"][/vc_tta_section][/vc_tta_tabs]');?>
For example , if you are using the post template style 1, you have to add this snippet of the code in loop-single-1.php, like this -> http://screencast.com/t/J9hVGp0iAIVd and the result you should see here -> http://screencast.com/t/HVY46AsrhEsE
Please notice that you have to customize your tab as you wish, depending on what you want to show in this tab. These change would be made from Visual Composer.

Hope this helps!

Thank you for your understanding!

Post count: 52

Thanks that is a good starting point.

Post count: 52

Okay so in this case, I just want a expander to show on comments. So by default the last ten comments would show.

Looked in both the comments.php inside of the theme folder and the comments.php within /includes/wp_booster

So 10 of the most recent comments would display by default then the remaining comments would load from click on More Comments button.

Thanks in advance.

Post count: 52

So to follow up my question I am guessing the load more comments would just use Ajax.

https://www.tipsandtricks-hq.com/ajax-comment-loading-plugin-fixed-6096

So it would add Ajax comments pagination.

Post count: 52

So trying to use WP Ajaxify Comments. I enabled the setting pagination for comments in the discussion settings. Then inspected the comment page element and it showed as .comment-pagination.

But the older comments does not seem to load by Ajax.
http://2c6.950.myftpupload.com/sharon-mcdowell-may-3-1957-july-15-2014/
http://2c6.950.myftpupload.com/sharon-mcdowell-may-3-1957-july-15-2014/comment-page-10/#comments

Post count: 23312

Hello firetoss,

Please notice that our theme uses the comments from WordPress and all the settings about these you can find in the Panel, like this -> http://screencast.com/t/ItrP2TnfzOB7 Also, please notice that WP Ajaxify Comments is not a tested plugins and we have no idea about the theme’s behaviour with this kind of plugin, sorry! I suggest you contact the author’s plugin because he could be able to guide you to the right direction because we cannot provide support for untested plugins, sorry! Also, if you want to display more levels in our theme and you need to do some additional customization through the code and you are not aware of the steps in this regard, please consider hiring a freelancer/developer to help you because we cannot provide customization services at the moment, sorry!

Thank you for your understanding!

Viewing 7 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic.