Gallery Shortcode Function Help

The function you’ve supplied actually doesn’t look that bad. It’s almost the same way I’d handle the problem, however if you only ever want to modify the include part and always get the attachment_ids associated with the post, here is what I would do. I would actually create a new shortcode which in turn calls … Read more

Using is_plugin_active within functions.php

How about this? function useragent_shortcode($tag) { include_once( ABSPATH . ‘wp-admin/includes/plugin.php’ ); if ( is_plugin_active(‘contact-form-7/wp-contact-form-7.php’) ) { if ( ! is_array( $tag ) ) return ”; $options = (array) $tag[‘options’]; foreach ( $options as $option ) { if ( preg_match( ‘%^name:([-0-9a-zA-Z_]+)$%’, $option, $matches ) ){ $name_att = $matches[1]; } $userAGENT .= $_SERVER[‘HTTP_USER_AGENT’]; } $user_agent = $userAGENT; … Read more

How to extend the page editor?

I think the batter way is to use plugin. Check this : http://wordpress.org/extend/plugins/search.php?q=form&sort= I personally suggest you Contact Form 7 Just past form plugin short code in your page/post , that’s it ! Cheers !