Extend shortcode to show specific content only
Quote from alwin on May 26, 2020, 5:27 pmHi @asgaros, I have trouble getting specific content to show and I hope you can help me.
Environment: WP 5.4.1 , Asgaros Forum 1.15.4 , other plugins including BuddyPress, Mikado Core, WPBakery Page Builder.
I’ve tried below shortcodes in a blank new page and in a blank new post but it will always show the entire forum index. So it’s not that I keep seeing [forum] in the published page, but it will always show the forum index.
I read your explanation here about the content-area: https://asgaros.com/support/topic/extend-shortcode-to-show-specific-content-only/?part=4#postid-9199
AFAIK I placed these shortcodes in the content-area of the page/post. Not in some special area added by Mikado, or a widget or something. I tried using the visual editor and the text editor (the one that shows raw html). Unfortunately it gives the same result.
I also tried the ‘backend editor’ of WPbakery, same result. Then i added the shortcodes to the WPBakery settings shortcode mapper. The the shortcodes are recognized as elements in the backend editor. But still same result.
In summary, it appears that the [forum] shortcode is recognized, but that the attributes are not picked up. Then it shows the entire forum index view. Do you have an idea how to make this work?
[forum] // Note I also tried with single quotes and no quotes [forum post="23"] 1 topic (1 thread): [forum topic="1"] 1 (sub)forum: [forum forum="25"]
Hi @asgaros, I have trouble getting specific content to show and I hope you can help me.
Environment: WP 5.4.1 , Asgaros Forum 1.15.4 , other plugins including BuddyPress, Mikado Core, WPBakery Page Builder.
I’ve tried below shortcodes in a blank new page and in a blank new post but it will always show the entire forum index. So it’s not that I keep seeing [forum] in the published page, but it will always show the forum index.
I read your explanation here about the content-area: https://asgaros.com/support/topic/extend-shortcode-to-show-specific-content-only/?part=4#postid-9199
AFAIK I placed these shortcodes in the content-area of the page/post. Not in some special area added by Mikado, or a widget or something. I tried using the visual editor and the text editor (the one that shows raw html). Unfortunately it gives the same result.
I also tried the ‘backend editor’ of WPbakery, same result. Then i added the shortcodes to the WPBakery settings shortcode mapper. The the shortcodes are recognized as elements in the backend editor. But still same result.
In summary, it appears that the [forum] shortcode is recognized, but that the attributes are not picked up. Then it shows the entire forum index view. Do you have an idea how to make this work?
[forum] // Note I also tried with single quotes and no quotes [forum post="23"] 1 topic (1 thread): [forum topic="1"] 1 (sub)forum: [forum forum="25"]
Quote from Asgaros on May 29, 2020, 4:04 amHello @alwin
Have you verified that you are really using the correct IDs – for example of the forum you want to show? Also ensure that you are not using the forum-shortcode two times at the same page.
Hello @alwin
Have you verified that you are really using the correct IDs – for example of the forum you want to show? Also ensure that you are not using the forum-shortcode two times at the same page.
Quote from alwin on June 2, 2020, 4:57 pmHi @asgaros Thanks for the quick reply!
“Also ensure that you are not using the forum-shortcode two times at the same page.”
Thanks, this was the cause. Because I was testing I tried all possible shortcodes on 1 page, with a regular [forum] as the first use. That’s why the entire forum index was repeated.
Would it be possible to add this to the start post https://asgaros.com/support/topic/extend-shortcode-to-show-specific-content-only/#postid-190 for future users?
Hi @asgaros Thanks for the quick reply!
“Also ensure that you are not using the forum-shortcode two times at the same page.”
Thanks, this was the cause. Because I was testing I tried all possible shortcodes on 1 page, with a regular [forum] as the first use. That’s why the entire forum index was repeated.
Would it be possible to add this to the start post https://asgaros.com/support/topic/extend-shortcode-to-show-specific-content-only/#postid-190 for future users?
Quote from Asgaros on June 17, 2020, 3:40 amHey @alwin
I added a note to the first post. Thanks!
Hey @alwin
I added a note to the first post. Thanks!
Quote from Florencb on January 18, 2021, 4:29 pmBonjour,
Je met le code [forum forum = “6”] pour qu’il s’affiche sur ma page de leçon (plugin learnpress) et cela ne marche pas, comment faire merci
Bonjour,
Je met le code [forum forum = “6”] pour qu’il s’affiche sur ma page de leçon (plugin learnpress) et cela ne marche pas, comment faire merci
Quote from Asgaros on February 17, 2021, 8:03 amHello @florencb
Please ensure that there is no space for the shortcode-parameters: [forum forum=”6″]
Hello @florencb
Please ensure that there is no space for the shortcode-parameters: [forum forum=”6″]
Quote from wasaporder on March 7, 2021, 10:56 pmHello Asgaros, thank you for the good job you are doing. I really appreciate your time and you will feel it soon.
Please I wish to make a request. I wish for a section on my forum homepage to have a list of featured topics that does not require users to go to the forum before seeing them. The topics will be listed, say 20 topics and probably with pagination if possible as a highlight when users enter the home page. Each topic will be linked to the post that when clicked, opens the post. If it can be in the form of shortcode or plugin, and we can only enter the topic ids and separated with comas.
Please, consider this, a great feature. Thanks as I will reach to you soon.
Hello Asgaros, thank you for the good job you are doing. I really appreciate your time and you will feel it soon.
Please I wish to make a request. I wish for a section on my forum homepage to have a list of featured topics that does not require users to go to the forum before seeing them. The topics will be listed, say 20 topics and probably with pagination if possible as a highlight when users enter the home page. Each topic will be linked to the post that when clicked, opens the post. If it can be in the form of shortcode or plugin, and we can only enter the topic ids and separated with comas.
Please, consider this, a great feature. Thanks as I will reach to you soon.
Quote from wasaporder on March 7, 2021, 11:04 pmOr if possible, modify the [forum topic="topicid"] to this [forum topicid="1,3,4,7,9,12,56] and wherever the code is pasted, will display those listed topics title alone and as links to their various posts. It will be used to feature/highlight topics. Please, could you do this for me?
Or if possible, modify the [forum topic="topicid"] to this [forum topicid="1,3,4,7,9,12,56] and wherever the code is pasted, will display those listed topics title alone and as links to their various posts. It will be used to feature/highlight topics. Please, could you do this for me?
Quote from wasaporder on March 8, 2021, 5:31 pmQuote from wasaporder on March 7, 2021, 11:04 pmOr if possible, modify the [forum topic="topicid"] to this [forum topicid="1,3,4,7,9,12,56] and wherever the code is pasted, will display those listed topics title alone and as links to their various posts. It will be used to feature/highlight topics. Please, could you do this for me?
Although, this not as important to me as a plugin for related topic suggestions below a post page. And how can we add smileys to the forum. Very good for expression of feelings
Quote from wasaporder on March 7, 2021, 11:04 pmOr if possible, modify the [forum topic="topicid"] to this [forum topicid="1,3,4,7,9,12,56] and wherever the code is pasted, will display those listed topics title alone and as links to their various posts. It will be used to feature/highlight topics. Please, could you do this for me?
Although, this not as important to me as a plugin for related topic suggestions below a post page. And how can we add smileys to the forum. Very good for expression of feelings