Please or Register to create posts and topics.

Forum Widgets Not Linking To Post

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

 

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?

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!