Please or Register to create posts and topics.

Extend shortcode to show specific content only

PreviousPage 5 of 6Next

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"]

 

 

 

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.

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

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?

 

 

Hey @alwin

I added a note to the first post. Thanks!

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

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

Hello @florencb

Please ensure that there is no space for the shortcode-parameters: [forum forum=”6″]

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

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.

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 7, 2021, 11:04 pm

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?

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

 

 

 

 

Hi @collandi,

Let no space after the comma of the subsequent ids

 

 

PreviousPage 5 of 6Next