BuddyDev

Search

BuddyPress Simple Front End Post – Add Support for Post Format Selection

  • Participant
    Level: Initiated
    Posts: 3
    Lana Phillips on #5827

    Hello again,

    I’ve been scouring through the code to look for the ability to add an option for post_format. I found https://buddydev.com/support/forums/topic/need-to-add-custom-buddyblog-new-post-fields/#post-3856, which got me some of the way. I also found the following code in the /core/functions.php.

    if ( current_theme_supports( ‘post-formats’ ) && post_type_supports( $post->post_type, ‘post-formats’ ) && get_option( ‘default_post_format’ ) ) {
    set_post_format( $post, get_option( ‘default_post_format’ ) );
    }

    I’m using the Divi Theme by Elegant Themes, but there are plenty of other themes on the market that use custom post formats. This would really only work if the “Show single posts on user profile?” in the BuddyBlog settings is marked as “No”. Otherwise (feature request), post format could be an added feature for BuddyBlog/BuddyPress Simple Front End Post.

  • Keymaster
    (BuddyDev Team)
    Posts: 24611
    Brajesh Singh on #5851

    Hi Lana,
    I am sorry but I don’t understand it. Do you need that as the options? It can be achieved via custom fields but the UI won’t change. Is that fine?

    Thank you
    Brajesh

You must be logged in to reply to this topic.

This topic is: not resolved