{"id":2179,"date":"2017-07-25T22:14:05","date_gmt":"2017-07-25T20:14:05","guid":{"rendered":"https:\/\/www.axew3.com\/w3\/?p=2179"},"modified":"2026-10-09T19:40:42","modified_gmt":"2026-10-09T17:40:42","slug":"wordpress-shortcode-phpbb-posts-into-wp-post","status":"publish","type":"post","link":"https:\/\/www.axew3.com\/w3\/2017\/07\/wordpress-shortcode-phpbb-posts-into-wp-post\/","title":{"rendered":"WordPress Shortcode: phpBB posts into WP post"},"content":{"rendered":"\n<p class=\"has-large-font-size wp-block-paragraph\">NOTE: this shortcode will be removed <\/p>\n\n\n\n<p class=\"has-xx-large-font-size wp-block-paragraph\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-custom-cyan-1-color\">REMOVED since 3.1.1+<\/mark><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">check all others shortcodes listed <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\"><span style=\"color: #003366;\"><strong>phpBB posts &#8211; WP post 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 phpBB post into a WordPress post, choose a phpBB <strong>Post ID<\/strong> (note: post ID NOT Topic ID) to display, and add it into WordPress post, like this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;w3allforumpost id=\"1202\"]<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Change the value <strong>1202<\/strong> with the post ID you need to display.<br><span style=\"color: #003366;\">( <strong>POST ID<\/strong> NOT TOPIC ID )<\/span><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you want display the post as plain text (so the bbcode will be removed by the output) use:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;w3allforumpost id=\"1202\" plaintext=\"1\"]<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If you want to display with specified number of words, use the parameter\/attribute <strong><em>wordsnum<\/em><\/strong> (both <em>plaintext and wordsnum<\/em> can be used together) . Note that may you have to adjust <em>wordsnum<\/em> parameter to a number of words to be retrieved that will output exactly what you want, because the count of words will include html tags<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;w3allforumpost id=\"1202\" wordsnum=\"350\"]<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The simple bbcode parser function, display all default bbcode tags, excluded <em>flash and email,<\/em> check the list on this phpBB help page, <a href=\"https:\/\/www.axew3.com\/w3\/forums\/app.php\/help\/bbcode\" target=\"_blank\" rel=\"noopener noreferrer\">phpBB bbcode how to<\/a><br>which are:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>[attachment] [b]<\/strong> <strong>[u] [i]&nbsp; [list] <\/strong>(all lists type)<strong> [size] [color] [url] [image] [code]<br><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">added: <strong><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">in this case the <em>[media]<\/em> bbcode <a href=\"https:\/\/www.axew3.com\/w3\/forums\/viewtopic.php?f=13&amp;t=566&amp;p=2249#p2249\" target=\"_blank\" rel=\"noopener noreferrer\">into the real phpBB post<\/a> will not be parsed (because the <em>Media Embed mod<\/em> has not been installed into this phpBB) <strong>but will be parsed into the WP post<\/strong>, because recognized by the plugin code, and parsed by WordPress.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It can be considered as 1.0 version, that work quite fine until bbcode tags structure is respected.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong><span style=\"color: #339966;\">Follow an output example for a phpBB postID<\/span> 2249<\/strong><br>which you can see here in phpBB:<\/h4>\n\n\n\n<h4 class=\"wp-block-heading\"><a href=\"https:\/\/www.axew3.com\/w3\/forums\/viewtopic.php?f=13&amp;t=566&amp;p=2249#p2249\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/www.axew3.com\/w3\/forums\/viewtopic.php?f=13&amp;t=566&amp;p=2249#p2249<\/a><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">the <em>shortcode<\/em> used into this WP post to display the phpBB <strong>postID 2249<\/strong>, with bbcode formatted, will be this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;w3allforumpost id=\"2249\"]<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Shortcode output for post id 2249 is right here:<\/h3>\n\n\n\n<div class=\"wp-block-group is-vertical is-layout-flex wp-container-core-group-is-layout-19afc361 wp-block-group-is-layout-flex\"><p>[w3allforumpost id=&#8221;2249&#8243;]<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>NOTE: this shortcode will be removed REMOVED since 3.1.1+ check all others shortcodes listed under the &#8220;common how&#8221; to section phpBB posts &#8211; WP post shortcode how to To add a WP_w3all shortcode, and display a phpBB post into a WordPress post, choose a phpBB Post ID (note: post ID NOT Topic ID) to display, [&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":[139,140,42,141,142,41],"class_list":["post-2179","post","type-post","status-publish","format-standard","hentry","category-wordpress-phpbb-integration","category-wordpress-phpbb-shortcodes","tag-bbcode","tag-parser","tag-phpbb","tag-post","tag-shortcode","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/www.axew3.com\/w3\/wp-json\/wp\/v2\/posts\/2179","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=2179"}],"version-history":[{"count":3,"href":"https:\/\/www.axew3.com\/w3\/wp-json\/wp\/v2\/posts\/2179\/revisions"}],"predecessor-version":[{"id":11431,"href":"https:\/\/www.axew3.com\/w3\/wp-json\/wp\/v2\/posts\/2179\/revisions\/11431"}],"wp:attachment":[{"href":"https:\/\/www.axew3.com\/w3\/wp-json\/wp\/v2\/media?parent=2179"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.axew3.com\/w3\/wp-json\/wp\/v2\/categories?post=2179"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.axew3.com\/w3\/wp-json\/wp\/v2\/tags?post=2179"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}