Load created php file data via ajax
Well you want to hook into the wp_loaded action. Do the stuff you need to do and then exit the process. You should probably look at http://codex.wordpress.org/AJAX_in_Plugins
Well you want to hook into the wp_loaded action. Do the stuff you need to do and then exit the process. You should probably look at http://codex.wordpress.org/AJAX_in_Plugins
There is actually a plugin for that (bptemplate pack). It works pretty well! http://wordpress.org/extend/plugins/bp-template-pack/
If you mean filtering the home page activity stream by blog post category, it’s not possible using any of the buit in BuddyPress template tags, functions or queries. I struggled with this same issue for months and finally gave up. If someone can prove me wrong I would love to hear the solution. If your … Read more
Since buddypress 1.5 you can use: define( ‘BP_USE_WP_ADMIN_BAR’, true ); I use it in bp-custom.php although it can go in wp-config.php
There isn’t a specific function that will do this, but it’s definitely something you can add to your site. Personally, I’ve added a custom widget to one of my sites that displays this kind of functionality in the upper-right corner. Here is some of the code I use: <?php $current_user = wp_get_current_user(); $email_hash = md5( … Read more
BuddyPress themes are WordPress themes, plus extra templates. I encourage you to use the BuddyPress Template Pack plugin to enable these extra templates: http://wordpress.org/extend/plugins/bp-template-pack/ Here’s a bit of background on how to build a BP-compatible child theme: http://codex.buddypress.org/theme-development/bp-template-pack-walkthrough-level-easy-2/ This link actually uses TwentyTen as an example: http://codex.buddypress.org/theme-development/theme-dev-bp-template-pack-walkthrough-twenty-ten-bp-1-5/
The attachment URL is created in wp-includes/link-template.php in function get_attachment_link(). And there is a filter for you, passing the WordPress URL and the post id for the attachment. You can hook into that filter and return the URL you need: add_filter( ‘attachment_link’, ‘wpse_56619_unprettify_attachment_url’, 10, 2 ); function wpse_56619_unprettify_attachment_url( $link, $id ) { return home_url( “/?attachment_id=$id” … Read more
You can filter on the action before it is saved by using add_filter on ‘bp_blogs_activity_new_comment_action’ as shown in bp-blogs-functions.php -> bp_blogs_record_comment() Or you can filter before the action is displayed by using add_filter on ‘bp_get_activity_action’ Probably better to do the former because you can easily check post->post_type to see if it is ‘business’. This shows … Read more
You could do something like this: <?php if ( is_user_logged_in() ) { wp_nav_menu( array( ‘theme_location’ => ‘logged-in-menu’ ) ); } else { wp_nav_menu( array( ‘theme_location’ => ‘logged-out-menu’ ) ); } ?> EDIT: Here is another try, same theory but different execution: if ( is_user_logged_in() ) { // Filter wp_nav_menu() to add additional links and other … Read more
I believe xprofile_get_field_data is unserializing the data for you, but it is still in an array. xprofile_get_field_data can return an array or a comma-separated string. xprofile_get_field_data( $field, $user_id = 0, $multi_format=”array” ) @param string $multi_format How should array data be returned? ‘comma’ if you want a comma-separated string ‘array’ if you want an array