Notifications
Clear all

[Solved] Customising templates - Show last topic title

4 Posts
2 Users
0 Likes
293 Views
Posts: 15
Topic starter
(@markahunt)
Eminent Member
Joined: 1 year ago

Hi,

 

I've read through the docs on how to customise template that all seems to work, is there a Wpforo function reference I can use within the forum and topic.php files?

 

For example I'm using the Classic/Simplified template and when displaying the list of topics it shows a link to the last post, but I'd like it to show the last post title as well - be a bit more useful?

 

So I just need the function ref for extracting the last post title from a topic? For example.

 

Thanks,
Mark

3 Replies
Posts: 15
Topic starter
(@markahunt)
Eminent Member
Joined: 1 year ago

Specifically.... how do I update this code snippet from topic.php:

<div class="wpforo-topic-stat-lastpost"><span><?php wpforo_member_link( $last_poster, 'by' ); ?> <a href="<?php echo esc_url( $last_post['url'] ) ?>" title="<?php wpforo_phrase( 'View the latest post' ) ?>"><i class="fas fa-chevron-right fa-sx wpfcl-a"></i></a></span><br> <?php wpforo_date( wpfval( $last_post, 'created' ) ); ?></div>

to show the last topic title rather than just the link to the last post?

 

Thanks!

Chris
Posts: 3650
(@chris)
Famed Member
Joined: 3 years ago

Hi @markahunt,

I'm sorry, but theme customization is out of wpForo Support, if you want to customize your theme, you can contact Gvectors Custom Work Team with your request, consider the details and the cost of the work.

Contact Email: sales[at]gvectors.com

Posts: 15
Topic starter
(@markahunt)
Eminent Member
Joined: 1 year ago

Ok no problem... Thanks for the reply.