{"id":2717,"date":"2018-04-17T14:39:44","date_gmt":"2018-04-17T12:39:44","guid":{"rendered":"https:\/\/www.axew3.com\/w3\/?p=2717"},"modified":"2025-05-15T23:14:34","modified_gmt":"2025-05-15T21:14:34","slug":"latest-phpbb-topics-by-forum-ids-shortcode","status":"publish","type":"post","link":"https:\/\/www.axew3.com\/w3\/2018\/04\/latest-phpbb-topics-by-forum-ids-shortcode\/","title":{"rendered":"WordPress phpBB Latest phpBB Topics shortcode by forums IDS"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>check all others shortcodes listed <\/strong><a href=\"https:\/\/www.axew3.com\/w3\/wordpress-phpbb-integration-install\/#commonHowto\"><strong>under the &#8220;common how&#8221; to section<\/strong><\/a><\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"wordpress-phpbb-latest-phpbb-topics-for-specific-forums-ids-shortcode-how-to\"><span style=\"color: #003366;\"><strong>WordPress phpBB Latest phpBB Topics FOR SPECIFIC FORUMS IDS &#8211; shortcode how to<\/strong><\/span><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">To add a <strong>WP_w3all shortcode<\/strong>, and display a list of <strong>Latest updated phpBB Topics from specified Forums ID\/IDS into a WordPress post\/page<\/strong>, the WordPress shortcode to use is like this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#091;w3allastopicforumsids topics_number=\"5\" forums_id=\"3,9\"]<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>change<\/strong> the <em>topics_number<\/em> value <strong>5<\/strong> with the number of Last phpBB topics\/posts you need to retrieve and display , AND <em>forums_id<\/em> value <strong>3,9<\/strong><br>based on forum&#8217;s ids you like to retrieve posts from. In the above shortcode example it retrieve posts from forums with ID 3 and 9 (substantially, <strong>add forum&#8217;s IDS separated by comma<\/strong>). <strong><span style=\"color: #000080;\"><br>To retrieve posts by a single forum<\/span>, just add the single ID<\/strong> (like on next example).<br><strong>If you want display Latest Posts with post text, you&#8217;ll use the shortcode in this way:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#091;w3allastopicforumsids topics_number=\"5\" forums_id=\"6\" post_text=\"1\" text_words=\"30\"]<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>change<\/strong> the <em>text_words<\/em> value <strong>30<\/strong> based on how many words you want to display for listed posts. Here we retrieve forum&#8217;s posts from an unique&nbsp; forum with ID <strong>6<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This feature use the same avatar&#8217;s settings choose in <em>WP_w3all config page<\/em>. <strong>Since 2.5.5&gt; you can suppress\/remove avatars on each shortcode using this param:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>no_avatars=\"1\"<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> if you want to add custom style to Last Topics\/post shortcode output, the file used by the <em>Last Topics\/post shortcode<\/em> you need to look for, may to add custom modifications in, is:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>wp-content\/plugins\/wp-w3all-phpbb-integration\/views\/<strong>phpbb_last_topics_forums_ids_shortcode.php<\/strong><\/em><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"from-1-9-7-vers-2\">From 1.9.7 &gt; (vers. 2)<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">From Wp_w3all 1.9.7 it is possible to use 3 attributes more on this shortcode which are:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>w3_ul_class, w3_li_class, w3_inline_style<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>NOTE:<\/strong> if <em><strong>w3_ul_class<\/strong><\/em> attribute used, <strong>then all these three attributes are processed to be used on the shortcode output. <\/strong>If not present this attribute, the old shortcode way apply.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>w3_ul_class=&#8221;myClassXUL&#8221;<\/em> will assign <em>myClassXUL<\/em> class to the UL element wrapper.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"> <br><em>w3_li_class=&#8221;myClassXLI&#8221;<\/em> will assign <em>myClassXLI<\/em> class to LI elements inside the UL.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>w3_inline_style=&#8221;list-style=none;&#8221;<\/em> will output the inline style <em>style=&#8221; <br>list-style=none;&#8221;<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">if going to use <em>w3_inline_style<\/em> note that special characters inside this attribute, may require to be escaped.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Example:<\/strong><\/p>\n\n\n<ul class=\"w3all_ul_widgetLastTopics\" style=\"list-style:none;margin:0px\">\n<li class=\"w3all_li_widgetLastTopics\"><table style=\"border-spacing:0;border-collapse:collapse;vertical-align:middle;margin:0;border:0;\"><tr><td style=\"border:0;width:50px;\"><img alt='axew3' src='https:\/\/secure.gravatar.com\/avatar\/edbae6f4ecc16e906fe2d36d58fbe72e2205bc7773d580cfe16f9048720fcd5e?s=96&d=mm&r=g' class='avatar avatar-50 photo' height='50' width='50' \/><\/td><td style=\"border:0;width:auto\"><a href=\"https:\/\/www.axew3.com\/w3\/forums\/viewtopic.php?f=3&amp;t=2162&amp;p=7210#p7210\">Hey guys! The w3mypq plugin has been installed at axew3.com!<\/a> <br \/>by  axew3<br \/>May 23, 2026 6:29 pm<\/td><\/tr><\/table><\/li>\n<li class=\"w3all_li_widgetLastTopics\"><table style=\"border-spacing:0;border-collapse:collapse;vertical-align:middle;margin:0;border:0;\"><tr><td style=\"border:0;width:50px;\"><img alt='axew3' src='https:\/\/secure.gravatar.com\/avatar\/edbae6f4ecc16e906fe2d36d58fbe72e2205bc7773d580cfe16f9048720fcd5e?s=96&d=mm&r=g' class='avatar avatar-50 photo' height='50' width='50' \/><\/td><td style=\"border:0;width:auto\"><a href=\"https:\/\/www.axew3.com\/w3\/forums\/viewtopic.php?f=3&amp;t=2151&amp;p=7187#p7187\">Encrypt\/Decrypt secret files<\/a> <br \/>by  axew3<br \/>January 25, 2026 11:59 am<\/td><\/tr><\/table><\/li>\n<li class=\"w3all_li_widgetLastTopics\"><table style=\"border-spacing:0;border-collapse:collapse;vertical-align:middle;margin:0;border:0;\"><tr><td style=\"border:0;width:50px;\"><img alt='axew3' src='https:\/\/secure.gravatar.com\/avatar\/edbae6f4ecc16e906fe2d36d58fbe72e2205bc7773d580cfe16f9048720fcd5e?s=96&d=mm&r=g' class='avatar avatar-50 photo' height='50' width='50' \/><\/td><td style=\"border:0;width:auto\"><a href=\"https:\/\/www.axew3.com\/w3\/forums\/viewtopic.php?f=3&amp;t=1879&amp;p=6342#p6342\">Site under re-construction!<\/a> <br \/>by  axew3<br \/>June 23, 2024 11:40 am<\/td><\/tr><\/table><\/li>\n<li class=\"w3all_li_widgetLastTopics\"><table style=\"border-spacing:0;border-collapse:collapse;vertical-align:middle;margin:0;border:0;\"><tr><td style=\"border:0;width:50px;\"><img alt='axew3' src='https:\/\/secure.gravatar.com\/avatar\/edbae6f4ecc16e906fe2d36d58fbe72e2205bc7773d580cfe16f9048720fcd5e?s=96&d=mm&r=g' class='avatar avatar-50 photo' height='50' width='50' \/><\/td><td style=\"border:0;width:auto\"><a href=\"https:\/\/www.axew3.com\/w3\/forums\/viewtopic.php?f=3&amp;t=1742&amp;p=6174#p6174\">axew3.com 15 years!<\/a> <br \/>by  axew3<br \/>February 21, 2024 1:18 am<\/td><\/tr><\/table><\/li>\n<li class=\"w3all_li_widgetLastTopics\"><table style=\"border-spacing:0;border-collapse:collapse;vertical-align:middle;margin:0;border:0;\"><tr><td style=\"border:0;width:50px;\"><img alt='DjPorkchop73' src='https:\/\/www.axew3.com\/w3\/forums\/download\/file.php?avatar=2357.gif' class='avatar avatar-50 photo' height='50' width='50' \/><\/td><td style=\"border:0;width:auto\"><a href=\"https:\/\/www.axew3.com\/w3\/forums\/viewtopic.php?f=3&amp;t=1656&amp;p=5298#p5298\">I'll back soon!<\/a> <br \/>by  DjPorkchop73<br \/>August 14, 2021 6:03 am<\/td><\/tr><\/table><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>check all others shortcodes listed under the &#8220;common how&#8221; to section WordPress phpBB Latest phpBB Topics FOR SPECIFIC FORUMS IDS &#8211; 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: change [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,234],"tags":[168,167,169,101,142],"class_list":["post-2717","post","type-post","status-publish","format-standard","hentry","category-wordpress-phpbb-integration","category-wordpress-phpbb-shortcodes","tag-last","tag-latest","tag-phpbb-wordpress","tag-posts","tag-shortcode"],"_links":{"self":[{"href":"https:\/\/www.axew3.com\/w3\/wp-json\/wp\/v2\/posts\/2717","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.axew3.com\/w3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.axew3.com\/w3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.axew3.com\/w3\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.axew3.com\/w3\/wp-json\/wp\/v2\/comments?post=2717"}],"version-history":[{"count":3,"href":"https:\/\/www.axew3.com\/w3\/wp-json\/wp\/v2\/posts\/2717\/revisions"}],"predecessor-version":[{"id":7804,"href":"https:\/\/www.axew3.com\/w3\/wp-json\/wp\/v2\/posts\/2717\/revisions\/7804"}],"wp:attachment":[{"href":"https:\/\/www.axew3.com\/w3\/wp-json\/wp\/v2\/media?parent=2717"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.axew3.com\/w3\/wp-json\/wp\/v2\/categories?post=2717"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.axew3.com\/w3\/wp-json\/wp\/v2\/tags?post=2717"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}