Merge arrays and order set and subset as one

You can check get_post_meta before args, Example: // Get post meta $game = get_post_meta($post->ID, ‘sd_game’, true); $game_series = get_post_meta($post->ID, ‘sd_game_series’, true); // Check which meta if( !empty( $game ) ) { $key = ‘sd_game’; } else { $key = ‘sd_game_series’; } $posts = get_posts(array( ‘numberposts’ => -1, ‘post_type’ => ‘lyric’, ‘meta_query’ => array( array( ‘key’ … Read more

merge wordpress plugins

Curiously WordPress does recognize multiple plugins in a directory, but results can be highly unstable. It also wouldn’t be possible at all if plugins had overlapping file names inside. I wouldn’t recommend you attempt this by literally putting them together in a folder and going through installer. You don’t quite cover your situation in detail. … Read more

Merging two pages into one homepage

Your theme is dynamically loading a template part. Look here: $home_layout = get_post_meta($id, ‘home_layout’, true) ? get_post_meta($id,’home_layout’, true) : ‘style1’; get_template_part( ‘inc/templates/homepage/’.$home_layout ); Now look in your folder at inc/templates/homepage/ and you should see the various template parts. Those templates parts are where you’ll want to add your new code (for the about page).