BuddyDev

Search

[Resolved] Display multiple post types on Posts tab (BuddyBlog)

  • Participant
    Level: Initiated
    Posts: 1
    MC on #2919

    Hi guys,

    I know we can only post to one post type, which is fine for what I need, but is it possible to display ALL post types in the Posts tab?

    Or even better, have a different tab for each post type?

    Thanks

  • Participant
    Level: Initiated
    Posts: 1
    MC on #2920

    Never mind, decided to go a different route, all good, thanks.

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #2921

    Hi MC,
    I am glad you have got it but here is a solution if anyone needs it in future.

    1. Copy buddyblog/template/buddyblog/posts.php to yourtheme/buddyblog/posts.php then change this line

    
    'post_type'     => buddyblog_get_posttype(),
    

    to

    
    'post_type'     => array( buddyblog_get_posttype(), 'post-type-2', 'post-type-3'),
    

    That’s all it is required.

  • Participant
    Level: Initiated
    Posts: 20
    clyn on #4448

    Sorry, i am trying to understand. Can we show more than one post type on buddypress profile menu? I have book cpt, movie cpt and default wp-core post. My member can use this plugin for three custom post. I mean that, member click book menu will create book post, click movie menue and will publish movie post…

    If yes

    1 – I dont have buddyblog folder. I have buddyyblog-master folder under pluging and yes buddyblog folder in this folder.

    2 – I dont have any buddyblog folder under mytheme… Should i create new folder? under my theme? If right, yes i did and paste posts.php file and change code, you write above but nothing happen…

    Missing something? Thanks

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #4461

    @clyn,
    Let us handle it on your own thread. Please do not repone resolved threads. Hope you don’t mind that.
    Closing it here.
    https://buddydev.com/support/forums/topic/buddyblog-translate-error-hide-editor-category-and-tag-display/

    Thank you
    Brajesh

The topic ‘ [Resolved] Display multiple post types on Posts tab (BuddyBlog)’ is closed to new replies.

This topic is: resolved