Limited Support
Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed.
We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.
I wanted to use the function wpforo_like_button on a custom post template.
I can see that the function works fine in the Threaded layout, but if I use the function on a post template derived from the Extended layout, it does not show the 'like count'.
Upon further examination, it seems that the template
/wpf-themes/classic/layouts/1/post.php
is missing the following statement
$post = wpforo_post($post['postid']);
which is present in line 24 of
/wpf-themes/classic/layouts/4/post.php
If I add the same statement to the template where it is missing, the wpforo_like_button then works as expected.
Question
By adding that statement it seems that some post array values that weren't loaded now are being loaded.
Was there a specific reason why that statement was missing for the Extended layout?
I would not want to have unforeseen consequences by adding it.
Thanks,
fawp
Hi @fawp,
The reason why that statement is missing is that those are different layouts and are developed, updated separate from each other.