axew3.com

WordPress Shortcode: last phpBB topics/posts into WP post

by

Vers. 1.0

check all others shortcodes listed under the “common how” to section

WordPress phpBB Latest phpBB Topics shortcode how to

To add a WP_w3all shortcode, and display a list of Latest updated phpBB Topics into a WordPress post/page, the WordPress shortcode to use is like this:

[w3allastopics topics_number="5"]

change the topics_number value 5 with the number of Last phpBB topics/posts you need to retrieve and display.

To display with post text, use the shortcode in this way:

[w3allastopics topics_number="5" post_text="1" text_words="30"]

change the text_words value 30 based on how many words you want to display for listed posts.

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: in case you want to add custom style the output of Last Topics/post shortcode, the file used by the Last Topics/post shortcode you need to look for, may to add custom modifications is:

wp-content/plugins/wp-w3all-phpbb-integration/views/phpbb_last_topics_output_shortcode.php

that is not the same used to output phpBB Last Topics on widgets, which is instead the file phpbb_last_topics.php  (as you’ll see on same folder).

Note: that same activated options (like the “Exclude phpBB forums from listing on Last Topics Posts“) in plugin admin, affect this shortcode.

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: