Buddypress shortcode for tabs [closed]

Use the following code, function custom_add_activity_tab() { ?> <li id=”custom-tab”> <a href=”https://wordpress.stackexchange.com/questions/60691/<?php echo site_url( BP_ACTIVITY_SLUG .”https://wordpress.stackexchange.com/” ) ?>” title=”<?php _e( ‘Tab.’, ‘buddypress’ ) ?>”> <?php printf( __( ‘tab’ , ‘buddypress’ ) ); ?> </a> </li> <?php } add_action( ‘bp_activity_type_tabs’, ‘custom_add_activity_tab’ ); Check it, Will work better

plugin shortcode output

If you open the plugin file and find where the function add_shortcode(‘daisy’,’someotherfunction’); is, then you could simply call that function that the shortcode is pointing too. This code could be placed as follows in a plugin or the functions.php file of your theme: add_action( ‘admin_init’, ‘daisy_fun’ ); function daisy_fun(){ ?> <script type=”text/javascript” defer=”defer”> jQuery(document).ready(function(){ var … Read more

Shortcode Function not working

You are passing show_blog_posts two parameters… $str .= show_blog_posts($post->ID, ”); … but you have defined it to accept none… function show_blog_posts() { There seems to be some disconnect between your two blocks of code. I’d suggest actually passing the $post object the way that you are trying to. function show_blog_posts($post = NULL) { global $blog, … Read more

Gallery shortcode numerical sorting

It doesn’t look like you can do this with the gallery shortcode, unfortunately. The Codex doesn’t even list meta_value_num as an option (though that doesn’t mean it couldn’t work.) However, you’re correct, you must specify a meta-key to use that ordering scheme with WP_Query.