• 1 month ago
  • 10 months ago
  • Florian joined the group BuddyPress Custom Posts
    10 months, 2 weeks ago
  • 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]

    12 months ago
    • 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?

    12 months ago
  • 12 months ago
  • 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.

    1 year ago
    • kunalb replied 1 year ago

      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.

      • Arwym replied 1 year ago

        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]

        • kunalb replied 1 year ago

          Yeah—I tried to avoid calling too many admin specific actions to prevent too much unknown stuff happening.

          • Arwym replied 1 year ago

            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]

    1 year ago
    • kunalb replied 1 year ago

      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 ?

    1 year, 1 month ago
  • Arwym joined the group BuddyPress Custom Posts
    1 year, 1 month ago
  • 1 year, 1 month ago
  • 1 year, 1 month ago
  • 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?

    1 year, 5 months ago
  • 1 year, 5 months ago
  • Jenny joined the group BuddyPress Custom Posts
    1 year, 5 months ago
  • 1 year, 6 months ago
  • 1 year, 7 months ago
  • byenbye joined the group BuddyPress Custom Posts
    1 year, 7 months ago
  • leguis joined the group BuddyPress Custom Posts
    1 year, 7 months ago
  • lespaul joined the group BuddyPress Custom Posts
    1 year, 7 months ago
  • Load More