Forum Replies Created

Viewing 15 replies - 31 through 45 (of 65 total)
  • Thread Starter orangjul

    (@orangjul)

    I think I can mark this as resolved…will experiment more with other sites!

    Thread Starter orangjul

    (@orangjul)

    Ok so I am learning that meta keywords and the focus keyword are not the same thing (sorry, new to this plugin). I figured out you have to turn on display keywords to make them display with the source code – do you have to do this BEFORE importing from AIO SEO? Or is there another way to ensure the keywords get imported from AIO SEO?

    I am also having the same problem and have tried all of the suggested fixed without any results. I am super frustrated as I’ve got this on a site that is supposed to launch next week…the client is NOT happy.

    Thread Starter orangjul

    (@orangjul)

    Hello,
    I never was able to figure this out months ago. The site is now ready to go live, other than this problem. I have upgraded all plugins and we are running WP 3.5. I still get the same errors as listed in my initial post, and the galleries do not appear and say [Gallery Not Found].

    When I added the code above, I get this on my page:

    Array ( [0] => Array ( [ngg_id] => 11 [ngg_form] => gallery ) ) [Gallery not found]

    I am not very well versed in PHP…what does this mean?

    Thread Starter orangjul

    (@orangjul)

    Never got any answers on this…still wondering??

    Thread Starter orangjul

    (@orangjul)

    I tried tying it to a page template, but the slideshow didn’t show up at all that way.

    Thread Starter orangjul

    (@orangjul)

    Is there a way to include the slideshow within my theme, instead of using the display settings? Is there template code I could use instead of checking one of the boxes in the settings?

    Thank you, I was looking for this info a couple weeks ago and trying to write the code on my own and couldn’t quite manage it or find anything. This helped me!

    Thread Starter orangjul

    (@orangjul)

    Still haven’t found a solution for this ??

    I think I figured it out:

    <?php // Check if this is a post or page, if it has a thumbnail (featured image), and if it's a big one
    	if ( is_singular() &&
    		has_post_thumbnail( $post->ID ) &&
    		( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'post-thumbnail' ) ) &&
    		$image[1] >= HEADER_IMAGE_WIDTH ) {
    		// Display featured image
    		echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' );
    		// If there is no featured image selected, the page is a child page, and the parent page has a featured image
    		} else if((get_the_post_thumbnail('post-thumbnail') == '') && ($post->post_parent != '0') && get_the_post_thumbnail(array_pop(array_merge(array($post->ID), get_ancestors($post->ID,'page'))),'full') != '') {
    		// then show the parent page's featured image ?>
            <?php echo get_the_post_thumbnail(array_pop(array_merge(array($post->ID), get_ancestors($post->ID,'page'))),'full'); ?>
    		<?php } else { //Display default header image selected in Appeance > Header ?>
    		<img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />
    <?php } ?>

    I am trying to figure out how to do this same thing, but only if the child page does NOT have a featured image selected. In other words, if a child page has a featured image selected, it will display that featured image, but it does not have one selected, it will show the parent page’s (or grandparent page’s) featured image.

    Thread Starter orangjul

    (@orangjul)

    In case anyone else had this problem, I ended up ditching the translation code I got from google, and using this plugin, and the conflict no longer exists.

    Thread Starter orangjul

    (@orangjul)

    <div id="header-image">
                <?php if(is_front_page()) { ?>
                <?php
    			if (function_exists("nggSlideshowWidget"))
    			nggSlideshowWidget(3,960,460);
    			?>
                <? } else { ?>
    			<?php
                            $garr = get_field('nextgen_gallery_id');
                            $gid = 0;
                            if(is_array($garr))
                            {
                                    if(isset($garr[0])) {
                                            $gid = intval($garr[0]);
    				}
    
                                    if($gid > 0) {
                                            echo nggShowGallery($gid);
    				} else {
                                            ?>
    										<?php
    					// Compatibility with versions of WordPress prior to 3.4.
    					if ( function_exists( 'get_custom_header' ) ) {
    						// We need to figure out what the minimum width should be for our featured image.
    						// This result would be the suggested width if the theme were to implement flexible widths.
    						$header_image_width = get_theme_support( 'custom-header', 'width' );
    					} else {
    						$header_image_width = HEADER_IMAGE_WIDTH;
    					}
    
    					// Check if this is a post or page, if it has a thumbnail, and if it's a big one
    					if ( is_singular() && current_theme_supports( 'post-thumbnails' ) &&
    							has_post_thumbnail( $post->ID ) &&
    							( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'post-thumbnail' ) ) &&
    							$image[1] >= $header_image_width ) :
    						// Houston, we have a new header image!
    						echo get_the_post_thumbnail( $post->ID );
    					elseif ( get_header_image() ) :
    						// Compatibility with versions of WordPress prior to 3.4.
    						if ( function_exists( 'get_custom_header' ) ) {
    							$header_image_width  = get_custom_header()->width;
    							$header_image_height = get_custom_header()->height;
    						} else {
    							$header_image_width  = HEADER_IMAGE_WIDTH;
    							$header_image_height = HEADER_IMAGE_HEIGHT;
    						}
    					?>
    						<img src="<?php header_image(); ?>" width="<?php echo $header_image_width; ?>" height="<?php echo $header_image_height; ?>" alt="" />
    					<?php endif; ?>
    
    										<?php
    				}
                            }
                            else
                            {
                                    ?>
    								<?php
    					// Compatibility with versions of WordPress prior to 3.4.
    					if ( function_exists( 'get_custom_header' ) ) {
    						// We need to figure out what the minimum width should be for our featured image.
    						// This result would be the suggested width if the theme were to implement flexible widths.
    						$header_image_width = get_theme_support( 'custom-header', 'width' );
    					} else {
    						$header_image_width = HEADER_IMAGE_WIDTH;
    					}
    
    					// Check if this is a post or page, if it has a thumbnail, and if it's a big one
    					if ( is_singular() && current_theme_supports( 'post-thumbnails' ) &&
    							has_post_thumbnail( $post->ID ) &&
    							( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'post-thumbnail' ) ) &&
    							$image[1] >= $header_image_width ) :
    						// Houston, we have a new header image!
    						echo get_the_post_thumbnail( $post->ID );
    					elseif ( get_header_image() ) :
    						// Compatibility with versions of WordPress prior to 3.4.
    						if ( function_exists( 'get_custom_header' ) ) {
    							$header_image_width  = get_custom_header()->width;
    							$header_image_height = get_custom_header()->height;
    						} else {
    							$header_image_width  = HEADER_IMAGE_WIDTH;
    							$header_image_height = HEADER_IMAGE_HEIGHT;
    						}
    					?>
    						<img src="<?php header_image(); ?>" width="<?php echo $header_image_width; ?>" height="<?php echo $header_image_height; ?>" alt="" />
    					<?php endif; ?>
    
    								<?php
                            } }
    			?>
    			</div>
    Thread Starter orangjul

    (@orangjul)

    I tried resaving the post and that’s when I see the “[Gallery Not Found]” message on the post (after refreshing.

    Thread Starter orangjul

    (@orangjul)

    Unfortunately when I upgraded to version 1.2.1, I still get the same error message as above on my editing screen, nor do my slideshows work. I reverted to version 1.0.2 and it works fine.

Viewing 15 replies - 31 through 45 (of 65 total)