Extend shortcode to show specific content only
Quote from Asgaros on February 4, 2017, 6:39 pmVersion 1.4 of the Asgaros Forum plugin allows you to extend the forum-shortcode with additional parameters. When this parameters are used, only specific content will be shown on a page. This is especially interesting for websites where different categories/forums should be shown for different usergroups or languages. Here are a few examples on how to use it.
Show a specific post:
[forum post="POSTID"]Show a specific topic:
[forum topic="TOPICID"]Show a specific forum/sub-forum:
[forum forum="FORUMID"]Show a specific category:
[forum category="CATEGORYID"]Show multiple specific categories:
[forum category="CATEGORYID1,CATEGORYID2"]Dont forget to replace the IDs with the corresponding IDs of the elements which should be shown on your page.
Important: Please use a forum-shortcode only once on a single page.
Version 1.4 of the Asgaros Forum plugin allows you to extend the forum-shortcode with additional parameters. When this parameters are used, only specific content will be shown on a page. This is especially interesting for websites where different categories/forums should be shown for different usergroups or languages. Here are a few examples on how to use it.
Show a specific post:
[forum post="POSTID"]
Show a specific topic:
[forum topic="TOPICID"]
Show a specific forum/sub-forum:
[forum forum="FORUMID"]
Show a specific category:
[forum category="CATEGORYID"]
Show multiple specific categories:
[forum category="CATEGORYID1,CATEGORYID2"]
Dont forget to replace the IDs with the corresponding IDs of the elements which should be shown on your page.
Important: Please use a forum-shortcode only once on a single page.
Quote from Wilfred on March 7, 2017, 11:34 amIs it possible to show the shortcode for the forum on multiple pages?
Right now you have to select one page where the shortcode of the forum will be showed, but when I can show it on multiple pages I can easily add restrictions with my woocommerce memberships by show a category A when they have a “share” membership and show category B when they have a “support” membership.
I did try the shortcodes from woocommerce membership, because with these shortcodes you can also restrict content on a page, but the forum shortcode in another shortcode won’t work…
Greets Wilfred
Is it possible to show the shortcode for the forum on multiple pages?
Right now you have to select one page where the shortcode of the forum will be showed, but when I can show it on multiple pages I can easily add restrictions with my woocommerce memberships by show a category A when they have a “share” membership and show category B when they have a “support” membership.
I did try the shortcodes from woocommerce membership, because with these shortcodes you can also restrict content on a page, but the forum shortcode in another shortcode won’t work…
Greets Wilfred
Quote from Asgaros on March 8, 2017, 12:06 pmHello Wilfred,
yes it should work. Your problem sounds like a bug in the woocommerce-restrictions shortcode. You have to ensure that it allows you to run additional shortcodes inside the restriction-shortcode. I think the best way is to contact the plugin-author, maybe he can find a way to help you with this.
Hello Wilfred,
yes it should work. Your problem sounds like a bug in the woocommerce-restrictions shortcode. You have to ensure that it allows you to run additional shortcodes inside the restriction-shortcode. I think the best way is to contact the plugin-author, maybe he can find a way to help you with this.
Quote from livebold on March 17, 2017, 11:08 pmI’m using Wishlist Member. So, If I’m reading this correct – I can create a page with the shortcode (forum forum=“FORUMID”) and protect that page. Would the forum navigation when loaded include other forums topics or categories?
I’m using Wishlist Member. So, If I’m reading this correct – I can create a page with the shortcode (forum forum=“FORUMID”) and protect that page. Would the forum navigation when loaded include other forums topics or categories?
Quote from Asgaros on March 22, 2017, 5:27 amHello livebold,
when you select the content via shortcode-parameters, no other content is shown. Only elements which are inside the selected content.
Hello livebold,
when you select the content via shortcode-parameters, no other content is shown. Only elements which are inside the selected content.
Quote from Wilfred on April 19, 2017, 12:24 pmWhen I use de shortcode on a different page then the page I did set in the options panel I see the forum, but without css style.
Greets Wilfred
When I use de shortcode on a different page then the page I did set in the options panel I see the forum, but without css style.
Greets Wilfred
Quote from Asgaros on April 19, 2017, 3:18 pmHello Wilfred,
it is all working fine on my test-installations. Which theme are you using?
Hello Wilfred,
it is all working fine on my test-installations. Which theme are you using?
Quote from collandi on June 16, 2017, 1:47 pmHello,
it’s possible to insert more then one forum in a shortcode?
I tried
[forum forum="5,6"]but it doesnt, works.
Thank you very much.
Hello,
it’s possible to insert more then one forum in a shortcode?
I tried
[forum forum="5,6"]
but it doesnt, works.
Thank you very much.