• Resolved tconcato

    (@tconcato)


    Hello and first of all, fantastic plugin!
    it seems to be exactly what I was looking for, to use a post as homepage for a group.

    I tried it and it works well for a regular post, but I was hoping to use Custom Post Type as well, to display items crated by another plugin.

    For example I have a book library plugin and I create some “book” custom posts. I can select it to be a Group Post and select the proper group, but when I set it as home, only the description is shown in the group’s home. It would be amazing to show the “Book” custom type post, with all its fields and pagination, as home of a group on the book.

    Is this already feasible and I simple can’t figure it out?

    thank you!
    Best regards
    Tommy

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Venutius

    (@venutius)

    Actually from what I can see you should be able to do it, but it does not seem to work. You can assign a CPT a group post status, but for some reason it’s not turning up in the group posts list. I may not get a chance to look at this till next weekend, but I’ll take a look to see if there’s something else restricting the post types this page is looking for.

    Once I fix that the CPT’s should show up in the the group posts list and you will be able to assign it as the group home page.

    That’s not the end of it though as you will need to overload the templates/posts.php file in order to display any custom fields you need to display.

    Plugin Author Venutius

    (@venutius)

    Hi there, I’ve been working on this today and the problem I’ve got is that CPT’s seem to be working with BP Post Status.

    I set up a vanilla site and added BP Post Status and also BP Portfolio (creates Project CPT).

    I created a project and saved it as Group only, then when I went to the Group Posts section of that group I could see the project in the list.

    So maybe this issue is something to do with how you’ve got your CPT’s configured?

    Thread Starter tconcato

    (@tconcato)

    Hello and thanks a lot for working on this!
    I can indeed see the CPTs appear in the group posts and I can also select one to be the home of the group. The problem is that it does not diplay all the custom fields and layouts.
    I’m using wptravel.io to create the CTPs.

    If the issue is with this particular plugin, then don’t worry about it, I’ll find some other way.

    thanks again!
    Best

    Plugin Author Venutius

    (@venutius)

    Ah I think that’s because you will need to oveload the bp Post Status/templates/home.php and single-post.php files in order to display your custom fields.

    If you copy these files to themes/your child theme/bpps/home.php and single-post.php you can add those fields to be displayed.

    home.php is the layout file for the group home page and single-post.php is for displaying the single page view of the posts in groups.
    You would check if the post type is your CPT and if so display the fields in question. You can also add your classes to mirror your layouts.

    Plugin Author Venutius

    (@venutius)

    Marking as resolved

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Custom post types’ is closed to new replies.