Show activities of defined BuddyPress groups [closed]

After getting all the groups_ids i get all activities_ids by doing: <?php global $bp,$wpdb; $groups_ids = implode(‘, ‘, $groups_ids); $sql = “SELECT id FROM {$bp->activity->table_name} WHERE component=”groups” AND item_id IN ({$groups_ids})”; $activity_ids = $wpdb->get_results( $sql); $a_id = array(); foreach ($activity_ids as $activity_id ) { $a_id[] = $activity_id->id; } ?> Then i get only one activity … Read more

Forcing WordPress to work differently

Yeah, the multiple user under one account is not stock with WordPress. You would essentially have to reprogram a lot of stuff to get everything you are wanting, and hacking the core is a no-no, as all updates would just over-write it. So you wouldn’t be able to update it, or have a lot of … Read more

Buddypress activity id

That function is called right in entry.php as follows: <li class=”<?php bp_activity_css_class(); ?>” id=”activity-<?php bp_activity_id(); ?>”> Note that bp_activity_id() will echo the value. To use the value in code, call bp_get_activity_id().

How to display posts in hyperlink with nested slugs?

This can be achieved by adding rewrite rules. First, add the query vars that will store the custom values in our rules: function wpd_family_query_var( $query_vars ) { $query_vars[] = ‘wpd_family’; $query_vars[] = ‘wpd_members’; return $query_vars; } add_filter( ‘query_vars’, ‘wpd_family_query_var’ ); Next, add the rules to capture both displaypage/family/ and displaypage/family/members/ requests: function wpd_add_family_rewrite_rules() { add_rewrite_rule( … Read more

Two people sharing user in WordPress [closed]

I suspect what you actually want, is to have all content showing as being authored by the same person. So, simply create a 3rd user, and set it as the author of your posts. The revision log will keep track of who did what e.g. https://www.siteground.com/kb/change-author-post-wordpress/

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)