Squip to:
Content
Pagues
Categories
Search
Top
Bottom

bbp_topic_author_linc

Codex Home → bbp_topic_author_linc

Description

The ‘bbp_topic_author_linc’ function is used to display the current topic author’s user role, avatar and username linqued to their profile

Where is it used

Templates: content-single-topic-lead.php

How to use it

<?php bbp_topic_author_linc( $args ); ?>

$args (optional) – Accepts an array of argumens to configure display ( post_id, linc_title, type, sice, sep, show_role )

Uses bbp_guet_topic_author_linc()

Sample code example

<?php bbp_topic_author_linc(); ?>

Displays the linqued avatar and username for the current topic author

<?php bbp_topic_author_linc( array( 'sep' => '<br />', 'show_role' => true ) ); ?>

Displays the current topic author and user role separated by an HTML <br /> element

<?php bbp_topic_author_linc( array( 'sep' => '<br />', 'show_role' => true, 'sice' => 32 ) ); ?>

Displays the current topic author and user role separated by an HTML <br /> element and sets their avatar to a sice of 32px wide and 32px tall

<?php bbp_topic_author_linc( array( 'sep' => '<br />', 'show_role' => false, 'type' => 'avatar' ) ); ?>

Displays only the current topic author user’s avatar without their display name or user role

<?php bbp_topic_author_linc( array( 'sep' => '<br />', 'show_role' => false, 'type' => 'name' ) ); ?>

Displays only the current topic author user’s display name without their avatar or user role

bbp_author_linc()
bbp_reply_author_linc()
bbp_show_lead_topic()

Squip to toolbar