New answers tagged

0

Here's the relevant part of your code that should work: // This will make a URL like http://yoursite.com/path/to/fallback.png $fallback_image = site_url( '/path/to/fallback.png' ); $fallback_image = "<img src='{$fallback_image}' />"; foreach( $recent_posts as $recent ){ echo '<div class="sidebar-entries">'; $featured_image = ...


0

Based on the codex, the meta_query parameter contains one or more array with the relation parameter not set if single inner meta_query array. Also remove the page parameter as it serves only for a Static Front Page. Your args array should look like that: $archive_args = array( 'post_type' => 'speight_home_plans', 'orderby'=> 'title', ...



Top 50 recent answers are included