Forum Replies Created
- 
		AuthorPosts
- 
		
			
				
cakeeater34 ParticipantI cannot thank you enough!!! This looks great! cakeeater34 ParticipantSorry if you’re sick of me… I added that plugin… added the code to the functions.php in the child theme so now the functions.php contains this: <?php 
 //
 // Recommended way to include parent theme styles.
 // (Please see http://codex.wordpress.org/Child_Themes#How_to_Create_a_Child_Theme)
 //
 add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
 function theme_enqueue_styles() {
 wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );
 wp_enqueue_style( ‘child-style’,
 get_stylesheet_directory_uri() . ‘/style.css’,
 array(‘parent-style’)
 );
 }
 //
 // Your code goes below
 //function education_hub_get_featured_content_details( $input ) { $featured_content_type = education_hub_get_option( ‘featured_content_type’ ); 
 $featured_content_number = education_hub_get_option( ‘featured_content_number’ );switch ( $featured_content_type ) { case ‘featured-page’: $ids = array(); for ( $i = 1; $i <= $featured_content_number ; $i++ ) { 
 $id = education_hub_get_option( ‘featured_content_page_’ . $i );
 if ( ! empty( $id ) ) {
 $ids[] = absint( $id );
 }
 }
 // Bail if no valid pages are selected.
 if ( empty( $ids ) ) {
 return $input;
 }$qargs = array( 
 ‘posts_per_page’ => esc_attr( $featured_content_number ),
 ‘no_found_rows’ => true,
 ‘orderby’ => ‘post__in’,
 ‘post_type’ => ‘page’,
 ‘post__in’ => $ids,
 );// Fetch posts. 
 $all_posts = get_posts( $qargs );
 $contents = array();if ( ! empty( $all_posts ) ) { $cnt = 0; 
 foreach ( $all_posts as $key => $post ) {$image_array = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), ‘education-hub-thumb’ ); 
 $contents[ $cnt ][‘images’] = $image_array;
 $contents[ $cnt ][‘title’] = esc_html( $post->post_title );
 $contents[ $cnt ][‘url’] = esc_url( get_permalink( $post->ID ) );
 $contents[ $cnt ][‘excerpt’] = $post->post_content
 $cnt++;
 }
 }
 if ( ! empty( $contents ) ) {
 $input = $contents;
 }
 break;default: 
 break;
 }
 return $input;
 }But when I go to view the site.. I get this error. (I’ve since put the site back to the original theme, until this is resolved.) Parse error: syntax error, unexpected ‘$cnt’ (T_VARIABLE) in /home/vehicle16station/public_html/wp-content/themes/education-hub-child/functions.php on line 62 AGAIN, thank you so much for your time in helping me get this figured out! cakeeater34 ParticipantThe home page is setup as a static page, and feeds in feature pages – on that particular feature page, the bullets are there, but don’t carry the formatting over to the homepage. cakeeater34 Participanthttp://www.vehicledonationstation.com/ Thanks for the prompt response! 
- 
		AuthorPosts
 
	    




