• Resolved pandreas

    (@pandreas)


    When a user creates a group, there is a record to the table wp_bg_groups of the DB and, among others, one field is ‘creator_id’.

    There is also one record to wp_posts table where ‘post_type’ field has value ‘gpages’. In this record, ‘post_author’ field value is set to ‘1’ (admin user) and not the user that created the group (‘creator_id’ of the wp_bg_groups).

    Is this a bug? Why admin to create all these posts? How can this change?

    Thank you in advance.

    Andreas

    https://wordpress.org/plugins/buddypress-groups-extras/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Slava Abakumov

    (@slaffik)

    It’s not a bug, it’s how the system was designed. Reason – to avoid problem with the current_user_can('publish_pages'). Also currently the plugin doesn’t use that creator_id, so it doesn’t matter who created that page.

    Thread Starter pandreas

    (@pandreas)

    Thank you for your reply.

    Other plugins uses post_type of table wp_posts so it could be a reason to have post_author = creator_id.

    Anyway, is there a relation between two tables? I don’t see that there is a specific field that matches both tables, except ‘post_title’ and ‘name’..

    How can I get the creator of group having the post type?

    Thank you!

    Thread Starter pandreas

    (@pandreas)

    Hello Againg @slava UA.

    Could you please answer to me if there is a relation between wp_bp_groups table and wp_posts??

    I changed a group name, but gpage didn’t change. Is this how it works? How I could change this behaviour and update gpage record as well?

    Regards,

    Andreas

    Plugin Author Slava Abakumov

    (@slaffik)

    I store some info in post meta.

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

The topic ‘Group page (post_type = gpages) post author’ is closed to new replies.