Skip to:
Content
Pages
Categories
Search
Top
Bottom

Sweet Custom Post Type Hack to Display a Custom Group Homepage

  • Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    If you create a custom post type called groups, or whatever you have chosen for a groups slug and then create a custom post type titled the same as a group name you can use the post editor in the admin to update the home page of any group. Basically you are creating the same URL to this content.

    This will remove the activity from the front page of your groups. Create a file in your themes folder called front.php.

    themes folder/groups/single/front.php

    Then in front.php just add a wordpress loop or any other content you wish. You can use the single.php loop or create a loop for your custom post type.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    @r-a-y do you know where to change the groups home tab link? It’s pointing to /home and I just want it to link to the groups main page.

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    Found it here

    bp_core_new_subnav_item( array( ‘name’ => __( ‘Home’, ‘buddypress’ ), ‘slug’ => ‘Home’, ‘parent_url’ => $group_link, ‘parent_slug’ => $bp->groups->slug, ‘screen_function’ => ‘groups_screen_group_home’, ‘position’ => 10, ‘item_css_id’ => ‘home’ ) );

    Avatar of r-a-y
    r-a-y
    Moderator

    @r-a-y

    Would be interesting to know what you’re planning on doing with a custom post type in a group’s homepage loop!

    Avatar of studio8c
    studio8c
    Participant

    @studio8c

    @modemlooper Did you all ready got this working because i need a custom group homepage

    with out a activity stream just plane text or a image banner

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    I think this does not work anymore.

Viewing 5 replies - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.