Skip to:
Content
Pages
Categories
Search
Top
Bottom

Display Topics name in dropdown in admin section

Viewing 1 replies (of 1 total)

  • Robin W
    Moderator

    @robin-w

    The topic ID is a changeable box, so lets you change the id number. Lots of code would be needed to get it to work for titles, but this code will show the topic name in the box at the bottom

    add_action( 'bbp_reply_metabox', 'rew_topic_title' );
    
    function rew_topic_title ($post_id ) {
    	$reply_topic_id = bbp_get_reply_topic_id( $post_id );
    	?>
    	<p>
    			<strong class="label"><?php esc_html_e( 'Topic Title:', 'bbpress' ); ?></strong>
    			<label class="screen-reader-text" for="bbp_author_id"><?php esc_html_e( 'Topic Title:', 'bbpress' ); ?></label>
    			<?php bbp_topic_title ($reply_topic_id) ; ?>
    		</p>
    	<?php
    }

    Put this in your child theme function file

    Functions files and child themes – explained !

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar