Skip to:
Content
Pages
Categories
Search
Top
Bottom

Sweet Custom Post Type Hack to Display a Custom Group Homepage


  • 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)

  • 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.


    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’ ) );


    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!


    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


    modemlooper
    Moderator

    @modemlooper

    I think this does not work anymore.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Sweet Custom Post Type Hack to Display a Custom Group Homepage’ is closed to new replies.
Skip to toolbar