Post-type powered custom group front page
-
Using a tutorial offered by @modemlooper back in ’10 I set up a custom frontpage for our organization’s bp groups which draws from pages with the same name as the group.
So the group ‘bicycles’ populates its frontpage with content from the page ‘bicycles’ (which is a child page of ‘groups’).
I am now upgrading the site to the Canvas theme by woothemes and would like to use their built-in portfolio custom post type with its nice gallery feature to do the same thing. Following the old rules, I set up things just as before. Then I re-registered the ‘portfolio’ post type as ‘groups’ and copied the single-portfolio.php file content into my groups front.php. Then a created a bunch of portfolio items with names matching existing bp groups.
The result is that instead of displaying the custom-post-type content, the group front page displays the content of the group again. I assume this is happening because of the way the new theme compatibility hijacks the_content(). That would mean that when it sees the_content() in front.php, it loads the group again rather than the post content.
Am I on the right track? Any suggestions on how to either fix my problem or take a new approach altogether?
- The topic ‘Post-type powered custom group front page’ is closed to new replies.