Forum Widgets Not Linking To Post
Quote from decanus on August 8, 2017, 11:59 amHi,
When I insert the forum widgets on any other page the post-link does not generate around the post title.
Here is the PHP that I believe is the issue:
echo '<span class="post-link"><a href="'.self::$asgarosforum->getLink('topic', $element->parent_id, array('part' => $pageNumber), '#postid-'.$element->id).'" title="'.esc_html(stripslashes($element->name)).'">'.esc_html(self::$asgarosforum->cut_string(stripslashes($element->name), $widgetTitleLength)).'</a></span>';Here is what that code is displaying:
<span class="post-link"><a href="" title="Test Post Title">Test Post Title</a></span>Can anybody shed some light as to what the issue is and how I can fix it?
Kind Regards,
Decanus
Hi,
When I insert the forum widgets on any other page the post-link does not generate around the post title.
Here is the PHP that I believe is the issue:
echo '<span class="post-link"><a href="'.self::$asgarosforum->getLink('topic', $element->parent_id, array('part' => $pageNumber), '#postid-'.$element->id).'" title="'.esc_html(stripslashes($element->name)).'">'.esc_html(self::$asgarosforum->cut_string(stripslashes($element->name), $widgetTitleLength)).'</a></span>';
Here is what that code is displaying:
<span class="post-link"><a href="" title="Test Post Title">Test Post Title</a></span>
Can anybody shed some light as to what the issue is and how I can fix it?
Kind Regards,
Decanus
Quote from Asgaros on August 10, 2017, 7:11 pmHello decanus,
are you using some extensions for loading the widgets via ajax-calls after the site got generated? I heard about some problems in this scenario. If not, can you send me a link to your site so I can have a look?
Hello decanus,
are you using some extensions for loading the widgets via ajax-calls after the site got generated? I heard about some problems in this scenario. If not, can you send me a link to your site so I can have a look?