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

A solution to set metatags with my page generating plugin?

Theoretically, you could hook into wp_head and echo your tags from within your callback: function wpse_36395_meta_tags() { echo ‘<meta name=”description” content=”Your Description” />’; } add_action( ‘wp_head’, ‘wpse_36395_meta_tags’ ); But note that if a theme already has the tag(s) hardcoded into its <head></head> section, you’ll end up with duplicate tags. Whether that’s more desirable than missing … Read more

If Query In Sidebar

Assign the return value of the first check to a variable, and test if there is something in it: if ( $quote = get_post_meta( get_the_ID(), ‘FeaturedQuote’, TRUE ) ) { ?><h3 class=”featuredquote”><?php the_title(); ?></h3> <blockquote><span class=”bqstart”>&#8220;</span><?php echo $quote; ?> <span class=”bqend”>&#8221;</span></blockquote> <?php } elseif ( $img = get_post_meta( get_the_ID(), ‘InsertFullImg’, TRUE ) ) { echo … Read more