check all others shortcodes listed under the “common how” to section
WordPress phpBB Latest phpBB Topics FOR SPECIFIC FORUMS IDS – shortcode how to
To add a WP_w3all shortcode, and display a list of Latest updated phpBB Topics from specified Forums ID/IDS into a WordPress post/page, the WordPress shortcode to use is like this:
[w3allastopicforumsids topics_number="5" forums_id="3,9"]
change the topics_number value 5 with the number of Last phpBB topics/posts you need to retrieve and display , AND forums_id value 3,9
based on forum’s ids you like to retrieve posts from. In the above shortcode example it retrieve posts from forums with ID 3 and 9 (substantially, add forum’s IDS separated by comma).
To retrieve posts by a single forum, just add the single ID (like on next example).
If you want display Latest Posts with post text, you’ll use the shortcode in this way:
[w3allastopicforumsids topics_number="5" forums_id="6" post_text="1" text_words="30"]
change the text_words value 30 based on how many words you want to display for listed posts. Here we retrieve forum’s posts from an unique forum with ID 6
This feature use the same avatar’s settings choose in WP_w3all config page. Since 2.5.5> you can suppress/remove avatars on each shortcode using this param:
no_avatars="1"
Note: if you want to add custom style to Last Topics/post shortcode output, the file used by the Last Topics/post shortcode you need to look for, may to add custom modifications in, is:
wp-content/plugins/wp-w3all-phpbb-integration/views/phpbb_last_topics_forums_ids_shortcode.php
From 1.9.7 > (vers. 2)
From Wp_w3all 1.9.7 it is possible to use 3 attributes more on this shortcode which are:
w3_ul_class, w3_li_class, w3_inline_style
NOTE: if w3_ul_class attribute used, then all these three attributes are processed to be used on the shortcode output. If not present this attribute, the old shortcode way apply.
w3_ul_class=”myClassXUL” will assign myClassXUL class to the UL element wrapper.
w3_li_class=”myClassXLI” will assign myClassXLI class to LI elements inside the UL.
w3_inline_style=”list-style=none;” will output the inline style style=”
list-style=none;”
if going to use w3_inline_style note that special characters inside this attribute, may require to be escaped.
Example: