Plugin: BuddyPress Custom Posts
-
buddypressuser321 joined the group BuddyPress Custom Posts
-
unsalkorkmaz joined the group BuddyPress Custom Posts
-
Florian joined the group BuddyPress Custom Posts
-
imjscn posted an update in the group BuddyPress Custom Posts:
@kunalb , I want to create a meta box in view.php so that I don’t need to repeat it for each type. Data obtained from this meta box will be processed in a Class, then, create a function to replace bpcp_get_type_avatar.
So, view.php and tags.php will need this Avatar Class, then, template files will also need this class to show the avatar.
Where…[Read more]-
As long as the function runs after plugins have loaded, you can create your own plugin and enable it and it should work fine.
-
Maybe you could add the file to the plugin itself and change the main bpcp.php file to include the class as required.
-
Thanks, kunalb! It’s as easy as a walk in the park —
In view.php, if function exist ( mybox), add meta box….; this solved all type’s BP front;
Then, in my plugin, add meta box (‘mybox’, …..’ep_event’ ); this solved the WP admin;
All functions in my plugin hook up with bpcp functions nicely without including any file in bpcp.
bpcp is…[Read more]
-
-
-
borisforconi posted an update in the group BuddyPress Custom Posts:
Hi there, awesome plugin, we just created a recipe plugin that works just fine.
I have a question though, there’s no .po nor .mo file in the plugin lang directory. I have to translate the activity feed notes in french. Is there a way to do that? -
borisforconi joined the group BuddyPress Custom Posts
-
Arwym posted an update in the group BuddyPress Custom Posts:
Thanks for developing this API. It’s been a real life savior for me so far. I have a question, though. Is there any particular criteria for custom meta boxes to be added to the frontend editor? I can’t seem to get my custom meta box to show up in there.
-
Glad you liked it—and there isn’t any particular critera for adding custom meta boxes, they should appear by default as long as you register them. Some default metaboxes like categories/taxonomies aren’t implemented (as BPCP doesn’t have support for cats and tags yet), but anything you define should be appearing.
-
Thanks for the quick response!
I figured it out. The meta box wouldn’t show up until I added it on the bpcp_edit_add_metaboxes action. I forgot to read the default view class. Thing is, my meta box was only registered on the admin_menu action, since I couldn’t think of any other on which to do it. Of course, the admin_menu action only takes…[Read more]
-
Yeah—I tried to avoid calling too many admin specific actions to prevent too much unknown stuff happening.
-
Okay, I got the meta boxes and post saving in place. Now I have an issue with the custom post search, however. No matter what I enter into the search box in my custom post type’s index page, I am always sent to the site’s front page. I took a look at the template tag, and I can’t see anything wrong with it. What could I be missing?
-
-
-
-
-
imjscn posted an update in the group BuddyPress Custom Posts:
@kunalb , I’m planning to make a rating sytem for all my Custom Post Types. I have no idea how this can be structured and intergraded into each types, need your suggestion. Should I make this rating system an independant plugin and save votes into other type’s metabox, or I make a rating model inside each type? If either way can do, which way is…[Read more]
-
I’d suggest making an independent plugin for this—how I would go about doing this would be to save the ratings in the post’s meta-data, and create custom template tags to display/set the ratings.
This will completely independent of the actual post type of a post—so making a rating system within each post type will just involve repeating…[Read more]
-
-
imjscn posted an update in the group BuddyPress Custom Posts:
@kunalb , can I add comment to Custom Posts? I added supports like this:
’$supports = Array( …….., ’comments’ ); ’
Now, need to add comment form and comment list to the template. But — can this be done in bp ? -
Arwym joined the group BuddyPress Custom Posts
-
mlovelock joined the group BuddyPress Custom Posts
-
Zigzag McQuack joined the group BuddyPress Custom Posts
-
Jenny posted an update in the group BuddyPress Custom Posts:
@kunalb
Which directory should I put mytype.php(for register type) and bp-mytype.php(for hook up with bp)? Should I create a plugin for them? or, can I put them somewhere else and they just start working?
I want this post type enable users voting on it, which hook should I study on?-
Maybe this will help: http://code.google.com/p/buddypress-custom-posts/wiki/GettingStarted
-
@kunalb
I come from that page. I already copied and edited events.php and bp.php to register and hook up my own type. Now I need to upload the 2 files to– which directory?
Thanks! -
sorry I missed the first line on your page– I dived in details straight

So, I should create a plugin for my new bp type. ok, I get the idea.-
Cool—you might want to see main.php too, to get an idea about the loading hooks, etc.
-
-
-
-
Baiheinet joined the group BuddyPress Custom Posts
-
Jenny joined the group BuddyPress Custom Posts
-
kbiglione joined the group BuddyPress Custom Posts
-
gregfielding joined the group BuddyPress Custom Posts
-
byenbye joined the group BuddyPress Custom Posts
-
leguis joined the group BuddyPress Custom Posts
-
lespaul joined the group BuddyPress Custom Posts
- Load More

