wpDiscuz [Shortcode]
-
Hi there,
I really enjoy your pluging. I’d like to know if there’s a shortcode I can use to show wpDiscuz on a specific page. Or, what php code I could use to do so.
Thank you very much!
-
Hi Magellan456,
You can enable/disable wpDiscuz comments on every page/post from dashboard. Juts click on edit post/page and find in the “Edit Post” admin page this settings: http://www.gvectors.com/questions/wpdiscuz-comment-form-is-missing/Thank you for your fast reply. The thing is I’m not using the WordPress native pages management system but a page builder where I can integrate shortcodes or html of some sort. This is why I’m looking towards a shortcode.
I’m sorry but there isn’t any shortcode yet. The main reason why we don’t create shortcode for wpDiscuz is explained in this screenshot: http://www.gvectors.com/wp-content/uploads/2015/03/2015-03-31_0909.png
Thanks again for getting back to me. I understand that for a common page, there’s no need to place the comment form elsewhere, but when using landing pages or opt-in pages, this becomes handy.
Anyhow, that was only a question and I appreciate you took the time answering it. Right now, I can achieve placing the native comment system elsewhere, but I would have loved to do it with your plugin. 🙂
Take care
I would love a shortcake as well, just for the reasons Magellan456 has outlined.
I would love too a shortcode!
Or an other custom way to show wpDiscuz comments on custom post page!WordPress comment system has dozens of settings to manage it for each content type and even for certain entry. There is no any reason to have a shrdcode.
Simple steps:
1. Make sure the custom content type supports comments
The custom content type creator solution should have such an option to enable/disable. If it doesn’t read this topic:
https://wordpress.org/support/topic/enable-comments-on-custom-post-types?replies=162. Enable wpDiscuz for certain type in wpDiscuz Settings page. wpDiscuz checks and returns all available content types and lists here:
http://screencast.com/t/ogIZAvbnxs8wAfter this step wpDiscuz will be loaded automatically.
3. If you still don’t see comments you should find the template file and put
<?php comments_template(); ?>function.Hi,
I am using a plgunin (jreviews ) that overrides wp posts. (it using core wp posts and categories)
When I add the <?php comments_template(); ?> in template file it load the wordpress core comments system
When i disable my plugin (jreviews), wpDiscuz works perfect!
So if you have a shortcode it will be perfect!
Regards,
SWhen I add the <?php comments_template(); ?> in template file it load the wordpress core comments system
If wpDiscuz is allowed for Posts and for “jreviews” it should be there. make sure you’ve those are enabled in Comments > wpDiscuz Settings > General Tab
If wpDiscuz is allowed for Posts and for “jreviews” it should be there. make sure you’ve those are enabled in Comments > wpDiscuz Settings > General Tab
If i disable jreviews plugin (so clear post ) i can see wpDiscuz, but not with jreviews plugin enable
Finally works with
if( file_exists(ABSPATH .’wp-content/plugins/wpdiscuz/templates/comment/comment-form.php’) )
include_once(ABSPATH.’wp-content/plugins/wpdiscuz/templates/comment/comment-form.php’);Thanks a lot for your time!
Regards
SAlso, you can create wpDiscuz shordcode. Put this code in active theme
functions.phpfile:function my_wpdiscuz_shordcode() { if(file_exists(ABSPATH . 'wp-content/plugins/wpdiscuz/templates/comment/comment-form.php')){ include_once ABSPATH . 'wp-content/plugins/wpdiscuz/templates/comment/comment-form.php'; } } add_shortcode( 'wpdiscuz_comments', 'my_wpdiscuz_shordcode' );and try to use this shordcode: [wpdiscuz_comments]
Please note: WordPress Comment system is designed to be loaded on single post/page, it’s not designed for archive pages like Categories, Tags, Author, Search, etc… So make sure you don’t load widget with this shordcode on non-single (archive) pages.
The topic ‘wpDiscuz [Shortcode]’ is closed to new replies.