-
PHP warning PHP warning
/home1/patrikac/public_html/wp-content/themes/localbusinesstheme/template-gallery.php(31)
19 'post_type' => 'attachment', 20 'numberposts' => -1, 21 'post_status' => null, 22 'post_parent' => $post->ID, 23 'orderby' => 'menu_order ID' 24 ); 25 $attachments = get_posts($attachment_args); 26 if ($attachments) { 27 foreach ($attachments as $gallery_image) { 28 $attachment_img = wp_get_attachment_url($gallery_image->ID); 29 $img_source=inkthemes_image_resize($attachment_img,187,139); 30 echo '<li><a rel="prettyPhoto[gallery2]" alt="' . $gallery_image->post_title . '" href="' . $attachment_img . '">'; 31 echo '<img src="'.$img_source[url].'" alt=""/>'; 32 echo '</a></li>'; 33 } 34 } 35 ?> 36 <?php endwhile; 37 endif; ?> 38 </ul> 39 </div> 40 41 </div> 42 <?php get_footer(); ?>
Stack Trace
#0 +–/home1/patrikac/public_html/wp-includes/template-loader.php(74): include("/home1/patrikac/public_html/wp-content/themes/localbusinesstheme...")69 * @since 3.0.0 70 * 71 * @param string $template The path of the template to include. 72 */ 73 if ( $template = apply_filters( 'template_include', $template ) ) 74 include( $template ); 75 return; 76 endif;
#1 +–/home1/patrikac/public_html/wp-blog-header.php(16): require_once("/home1/patrikac/public_html/wp-includes/template-loader.php")11 12 require_once( dirname(__FILE__) . '/wp-load.php' ); 13 14 wp(); 15 16 require_once( ABSPATH . WPINC . '/template-loader.php' ); 17 18 }
#2 +–/home1/patrikac/public_html/index.php(17): require("/home1/patrikac/public_html/wp-blog-header.php")12 * @var bool 13 */ 14 define('WP_USE_THEMES', true); 15 16 /** Loads the WordPress Environment and Template */ 17 require( dirname( __FILE__ ) . '/wp-blog-header.php' );
2024-11-21 17:00:04 Apache Yii Framework/1.1.13