Using the echo command adds unwanted br tags to source

If this is plugin code there is NO REASON the theme would make a difference. My guess is it’s a server issue (outputting of /n) or a WordPress function that changes the /n into <br> I would check wpautop() as I find that sometimes it’s this functions fault. See this post on the WordPress.org forum … Read more

Showing a different gallery in a seperate post

You can try this function instead of your multi_gallery_shortcode(): function multi_gallery_shortcode($atts, $content=null) { extract( shortcode_atts( array( ‘pid’ => 0, ), $atts ) ); //format the input $pid = intval($pid); // construct a post object dependent on the input value if($pid>0){ // query a post object $pobj = get_post( $pid ); }else{ global $post; // current … Read more

3 blogs same installation, without WP MU

If you’re looking to run 3 separate domains on the same files but different databases you can do something like this: http://wordpress.org/support/topic/multiple-domains-using-one-wp-install-not-wpmu You then have to consider if you want separate uploads folders and style sheets. If so, you’ll have to define a constant so that you can tell the page which style sheet to … Read more