How do I visualize the author’s post from the front end?
You can get a list of posts created by each user using /author/{username} Eg : https://www.wpbeginner.com/author/wpbeginner/
You can get a list of posts created by each user using /author/{username} Eg : https://www.wpbeginner.com/author/wpbeginner/
It’s a task that can be easily tackled using wp_handle_upload and wp_handle_upload_prefilter (e.g.: Give users a maximum upload capacity; limit the number of files a user can upload OR limit the number of files per upload). Luckily someone already did this, as a plugin: Upload Quota per User. It’s pretty old and seems unmaintained but … Read more
I think that you’re over engineering the problem here. If all you need to do is get the appropriate archive template, whatever that may be, then use get_archive_template() although you may need to use the {$type}_template_hierarchy filter on get_query_template() to add index.php to the possible results.
I had the same issue and I did this and it worked: Add 3 options and go to your database. Search for any of those options, when you find them, go to the table it is in. You won’t be able to see the options but just the field name. Export the table you found … Read more
How to customize BuddyPress Notification triggers?
Code correction – Hide a profile from visitors with a specific role
Add usermeta on Buddypress register
I have utilized this plugin for a similar situation: https://de.wordpress.org/plugins/ultimate-member/ Your users can register and create a profile. As the plugin comes with a lot of add-ons I’m not sure if there maybe is an add-on that solves your “attend” issue. If yes, problem solved. If not you could simply add a function which saves … Read more
You seem to be assuming that the xprofile field id is the same as the user meta field id – if they are, it is just a coincidence. If you have not created xprofile fields, you need to do so. And then use the ids for those xprofile fields. Or you can use the name … Read more
In your screen function ibenic_budypress_my_posts create a redirect. Something like: function ibenic_buddypress_tab() { bp_core_new_nav_item( array( ‘name’ => __( ‘My Posts’, ‘ibenic’ ), ‘slug’ => ‘my-posts’, ‘position’ => 100, ‘screen_function’ => ‘ibenic_budypress_my_posts’, ‘show_for_displayed_user’ => true, ‘item_css_id’ => ‘ibenic_budypress_my_posts’ ) ); } function ibenic_budypress_my_posts() { $url=”/author/” . bp_get_displayed_user_username(); bp_core_redirect( site_url( $url ) ); }