We're using an older plug-in to allow oEmbeds in regular WordPress comments. It works fine for almost any kind of link, but when used with Forum posts, the embed only goes to the Main Forum link and shows a default graphic. The URL of the forum post remains in the backend code of the comment, but the plug-in changes it to the home page of the forum. I found a newer plug-in to try and improve the functions so that a Forum post could show up, and this newer (and still updated) plug-in allows embeds anywhere on a site. It did the same thing, showing the forum post as a home-page link.
Is there something about the way WPForo is set up that conflicts with the capabilities of these plug-ins? All other content can be embedded easily. Just WPForo content gives us this issue. If we turn off the plug-ins, the original URLs show up, and the actual URL of a WP Foro post shows up as a hyperlink.
Here is the code of the older plug-in for reference. By seeing how it works with the code, perhaps someone might see why this plug-in doesn't handle WPForo post links.
<?php /* Plugin Name: oEmbed in Comments Description: Allow oEmbeds in comment text Version: 1.1.2 Author: Evan Solomon Author URI: http://evansolomon.me */ class ES_oEmbed_Comments { function __construct() { add_action( 'init', array( $this, 'init' ) ); } function init() { if ( is_admin() ) return; $this->add_filter(); } /** * Setup filter with correct priority to do oEmbed in comments */ function add_filter() { // make_clickable breaks oEmbed regex, make sure we go earlier $clickable = has_filter( 'get_comment_text', 'make_clickable' ); $priority = ( $clickable ) ? $clickable - 1 : 10; add_filter( 'get_comment_text', array( $this, 'oembed_filter' ), $priority ); } /** * Safely add oEmbed media to a comment */ function oembed_filter( $comment_text ) { global $wp_embed; // Automatic discovery would be a security risk, safety first add_filter( 'embed_oembed_discover', '__return_false', 999 ); $comment_text = $wp_embed->autoembed( $comment_text ); // ...but don't break your posts if you use it remove_filter( 'embed_oembed_discover', '__return_false', 999 ); return $comment_text; } } new ES_oEmbed_Comments;