{"id":2277,"date":"2017-09-14T17:40:25","date_gmt":"2017-09-14T15:40:25","guid":{"rendered":"https:\/\/www.axew3.com\/w3\/?p=2277"},"modified":"2025-05-15T23:15:29","modified_gmt":"2025-05-15T21:15:29","slug":"wordpress-shortcode-last-phpbb-topics-posts-into-wp-post","status":"publish","type":"post","link":"https:\/\/www.axew3.com\/w3\/2017\/09\/wordpress-shortcode-last-phpbb-topics-posts-into-wp-post\/","title":{"rendered":"WordPress Shortcode: last phpBB topics\/posts into WP post"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Vers. 1.0<\/p>\n\n\n\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-shortcode-how-to\"><span style=\"color: #003366;\"><strong>WordPress phpBB Latest phpBB Topics 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 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;w3allastopics topics_number=\"5\"]<\/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.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>To display with post text, use the shortcode in this way:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#091;w3allastopics topics_number=\"5\" 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.<\/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> in case you want to add custom style the output of Last Topics\/post shortcode, the file used by the <em>Last Topics\/post shortcode<\/em> you need to look for, may to add custom modifications is:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>wp-content\/plugins\/wp-w3all-phpbb-integration\/views\/<strong>phpbb_last_topics_output_shortcode.php<\/strong><\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">that is not the same used to output <em>phpBB Last Topics on widgets,<\/em> which is instead the file <em><strong>phpbb_last_topics.php&nbsp; (<\/strong><\/em>as you&#8217;ll see on same folder).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> that same activated options (like the &#8220;<em><strong>Exclude phpBB forums from listing on Last Topics Posts<\/strong><\/em>&#8220;) in plugin admin, <strong>affect this shortcode.<\/strong><\/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 <strong>Wp_w3all 1.9.7 &gt;<\/strong> 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.\n\n<\/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<div id=\"w3all_div_last_topics_short_wrapper\"><ul id=\"w3all_ul_last_topics_short\" class=\"w3all_ul_widgetLastTopics wp-block-latest-posts__list has-dates wp-block-latest-posts\" style=\"\">\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='' src='https:\/\/secure.gravatar.com\/avatar\/2ae2360aaf26cf83cc601fbc1dbe25cfde2bb48af4cae466b455c35147c47701?s=50&#038;d=mm&#038;r=g' srcset='https:\/\/secure.gravatar.com\/avatar\/2ae2360aaf26cf83cc601fbc1dbe25cfde2bb48af4cae466b455c35147c47701?s=100&#038;d=mm&#038;r=g 2x' 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=2&amp;t=2176&amp;p=7283#p7283\">Simple Membership integration (WP-MUMS Multisite)<\/a> <br \/>by  pennymachines<br \/>September 23, 2026 4:48 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=2&amp;t=2194&amp;p=7281#p7281\">No login persistence: Windows &amp; Android Chrome<\/a> <br \/>by  axew3<br \/>September 18, 2026 11:10 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=23&amp;t=2196&amp;p=7280#p7280\">w3myPQ &amp; BennyPQ Standalone Client<\/a> <br \/>by  axew3<br \/>September 17, 2026 7:52 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=23&amp;t=2195&amp;p=7279#p7279\">&lt;p&gt; tags added via wpautop() on html output CSS solution<\/a> <br \/>by  axew3<br \/>September 16, 2026 12:17 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=23&amp;t=2193&amp;p=7278#p7278\">Why not to add REST secure sharing? Making it more secure than Signal<\/a> <br \/>by  axew3<br \/>September 16, 2026 12:13 am<\/td><\/tr><\/table><\/li>\n<\/ul><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Vers. 1.0 check all others shortcodes listed under the &#8220;common how&#8221; 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: change the topics_number value 5 with the number [&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":[156,155,42,142,41],"class_list":["post-2277","post","type-post","status-publish","format-standard","hentry","category-wordpress-phpbb-integration","category-wordpress-phpbb-shortcodes","tag-last-posts","tag-last-topics","tag-phpbb","tag-shortcode","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/www.axew3.com\/w3\/wp-json\/wp\/v2\/posts\/2277","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=2277"}],"version-history":[{"count":3,"href":"https:\/\/www.axew3.com\/w3\/wp-json\/wp\/v2\/posts\/2277\/revisions"}],"predecessor-version":[{"id":7801,"href":"https:\/\/www.axew3.com\/w3\/wp-json\/wp\/v2\/posts\/2277\/revisions\/7801"}],"wp:attachment":[{"href":"https:\/\/www.axew3.com\/w3\/wp-json\/wp\/v2\/media?parent=2277"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.axew3.com\/w3\/wp-json\/wp\/v2\/categories?post=2277"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.axew3.com\/w3\/wp-json\/wp\/v2\/tags?post=2277"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}