Quantcast
Channel: bbPress.org » All Posts
Viewing all articles
Browse latest Browse all 3669

Register custom view with extra_fields

$
0
0

Hi everyone,
I’m using the bbp_register_view_popular for the homepage of my offline website.

Works pretty well to sort_by my meta_value.

What I’m trying to do is to return a custom field as the main title.
I’m already doing this on custom pages and it works like a charm, here is my code :

$output .= '<li><a href="' . get_permalink() . '">' . get_post_meta(get_the_ID(), 'bbp_extra_field1', true) . '</a></li>';

How can I return the same thing in my custom_view for my homepage without actually changing permanently the_title from WordPress? the_title is absolutly needed and bbp_extra_field1 works a subtitle.

Many thanks to anyone who could put me on the right way 🙂


Viewing all articles
Browse latest Browse all 3669

Trending Articles