Forum Replies Created

Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter Peter

    (@peterbatchelder)

    Thanks James. I’m not opposed to plugins, but do try to avoid dependence on them. What’s your solution?

    Peter

    (@peterbatchelder)

    You’re welcome. Good luck!

    Peter

    (@peterbatchelder)

    Hi Sharon,

    It appears the image you have position in that top section (dogs and cats), is a Flash object. Ipads do not support Flash, at least not without some modification, so that would explain that not showing up. Not sure about Blackberry.

    The image does not appear to be animated, so I would convert it to a .png or .jpg and see if that solves the problem.

    Thread Starter Peter

    (@peterbatchelder)

    alchymyth, thanks for the help. The location of the footer css was duplicated, and reading the wrong one, which did not have the fixed setting. So thanks for making me doublecheck.

    Understood completely on the child theme. Was in a rush to create proof of concept for client, so duped the theme and went at it with the stylesheet. Ultimately, it will be a true child.

    Thanks again.

    Thread Starter Peter

    (@peterbatchelder)

    vtxazz, I am sorry for long lapse in thanking you for reply. Just saw this now. Progblem solved, using your suggeestion.

    Thread Starter Peter

    (@peterbatchelder)

    Hi Allen, what a huge help! That solved it. Thanks very much. And thanks for ID/Class links. Though I know the difference, I admit to defaulting to ID. Will read it through.

    Alchymyth, thanks for offer to looki at code. Here’s the hack I pulled together. Works fine, but probably a messy, uneconomical way to do it. Any suggestions you have will be welcomed.

    <?php
    /**
     * Template Name: Product Grid Page
     *
     */
    
    get_header(); ?>
    
    		<div id="fullwidthholder">
    
    			<?php $args = array(
    				'posts_per_page' => 100,
    				'category_name' => 'Product',
    				'paged' => get_query_var('paged')
    				);
    				$product_posts = new WP_Query( $args );
    			if( $product_posts->have_posts() ) :
    			while ( $product_posts->have_posts() ) : $product_posts->the_post(); ?>
    
    			<div id="product">
    				<?php {
    				the_title('<div id="producttitle">', '</div>');
    				$large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'large');
       				echo '<a href="' . $large_image_url[0] . '" rel="lightbox">';
      				the_post_thumbnail('thumbnail') ;
       				echo '</a>';
     			};
    
     			the_content('<body>', '</body>');//add here what you want to output per post/product// ?>
    
    			</div><!-- .product Category "Product" _________________________________________________-->
    
    			<?php endwhile;
    			endif; wp_reset_postdata(); ?>
    			<div class="clear"></div>
    
    	<br>
    
    <!--RUGS PRODUCT CATEGORY-->
    	<?php $args = array(
    				'posts_per_page' => 100,
    				'category_name' => 'ProductRugs',
    				'paged' => get_query_var('paged')
    				);
    				$product_posts = new WP_Query( $args );
    			if( $product_posts->have_posts() ) :
    			while ( $product_posts->have_posts() ) : $product_posts->the_post(); ?>
    
    			<div id="product">
    				<?php {
    				the_title('<div id="producttitle">', '</div>');
    				$large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'large');
       				echo '<a href="' . $large_image_url[0] . '" rel="lightbox">';
      				the_post_thumbnail('thumbnail') ;
       				echo '</a>';
     			};
    
     			the_content('<body>', '</body>');//add here what you want to output per post/product// ?>
    
    			</div><!-- END PRODUCT CATEGORY RUGS -->
    
    			<?php endwhile; // end of the loop. </div>
    			endif; wp_reset_postdata(); ?>
    			<div class="clear"></div>
    
    <!--END RUGS PRODUCT CATEGORY-->
    
    <!--TOTES PRODUCT CATEGORY-->
    	<?php $args = array(
    				'posts_per_page' => 100,
    				'category_name' => 'ProductTotes',
    				'paged' => get_query_var('paged')
    				);
    				$product_posts = new WP_Query( $args );
    			if( $product_posts->have_posts() ) :
    			while ( $product_posts->have_posts() ) : $product_posts->the_post(); ?>
    
    			<div id="product">
    				<?php {
    				the_title('<div id="producttitle">', '</div>');
    				$large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'large');
       				echo '<a href="' . $large_image_url[0] . '" rel="lightbox">';
      				the_post_thumbnail('thumbnail') ;
       				echo '</a>';
     			};
    
     	the_content('<body>', '</body>');//add here what you want to output per post/product// ?>
    
    			</div><!-- END PRODUCT CATEGORY RUGS -->
    
    			<?php endwhile; // end of the loop. </div>
    			endif; wp_reset_postdata(); ?>
    			<div class="clear"></div>
    
    <!--END TOTES PRODUCT CATEGORY-->
    
    <!--THROWS PRODUCT CATEGORY-->
    	<?php $args = array(
    				'posts_per_page' => 100,
    				'category_name' => 'ProductThrows',
    				'paged' => get_query_var('paged')
    				);
    				$product_posts = new WP_Query( $args );
    			if( $product_posts->have_posts() ) :
    			while ( $product_posts->have_posts() ) : $product_posts->the_post(); ?>
    
    			<div id="product">
    				<?php {
    				the_title('<div id="producttitle">', '</div>');
    				$large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'large');
       				echo '<a href="' . $large_image_url[0] . '" rel="lightbox">';
      				the_post_thumbnail('thumbnail') ;
       				echo '</a>';
     			};
    
     			the_content('<body>', '</body>');//add here what you want to output per post/product// ?>
    
    			</div><!-- END PRODUCT CATEGORY RUGS -->
    
    			<?php endwhile; // end of the loop. </div>
    			endif; wp_reset_postdata(); ?>
    			<div class="clear"></div>
    
    <!--END THROWS PRODUCT CATEGORY-->
    
    <!--GIFTCERT PRODUCT CATEGORY-->
    	<?php $args = array(
    				'posts_per_page' => 100,
    				'category_name' => 'ProductGiftCert',
    				'paged' => get_query_var('paged')
    				);
    				$product_posts = new WP_Query( $args );
    			if( $product_posts->have_posts() ) :
    			while ( $product_posts->have_posts() ) : $product_posts->the_post(); ?>
    
    			<div id="product">
    				<?php {
    				the_title('<div id="producttitle">', '</div>');
    				$large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'large');
       				echo '<a href="' . $large_image_url[0] . '" rel="lightbox">';
      				the_post_thumbnail('thumbnail') ;
       				echo '</a>';
     			};
    
     			the_content('<body>', '</body>');//add here what you want to output per post/product// ?>
    
    			</div><!-- END PRODUCT CATEGORY RUGS -->
    
    			<?php endwhile; // end of the loop. </div>
    			endif; wp_reset_postdata(); ?>
    			<div class="clear"></div>
    <!--END GIFTCERT PRODUCT CATEGORY-->
    
    	</div><!-- #FULLWIDTHHOLDER -->
    
    <?php get_footer(); ?>
    Thread Starter Peter

    (@peterbatchelder)

    That did it! Thanks, shauno, huge help.

    Thread Starter Peter

    (@peterbatchelder)

    Here it is:

    <!-- List of galleries -->
    	<?php foreach ($galleries as $gallery) : ?>
    
    	<div class="ngg-album-compact">
    		<div class="ngg-album-compactbox">
    			<div class="ngg-album-link">
    
    			<a href="<?php echo nggcf_get_gallery_field($gallery->ID, "gallerylink"); ?>">
    					<img class="Thumb" alt="<?php echo $gallery->title ?>" src="<?php echo $gallery->previewurl ?>"/>
    				</a>
    			</div>
    		</div>
    		<h4><a class="ngg-album-desc" title="<?php echo $gallery->title ?>" href="<?php echo $gallery->pagelink ?>" ><?php echo $gallery->title ?></a></h4>
    		<?php if ($gallery->counter > 0) : ?>
    		<p><strong><?php echo $gallery->counter ?></strong> <?php _e('Photos', 'nggallery') ?></p>
    		<?php endif; ?>
    	</div>
    
     	<?php endforeach; ?>

    Thread Starter Peter

    (@peterbatchelder)

    I’m using the custom field name. Here it is:
    ID, “gallerylink”); ?>”>
    <img class=”Thumb” alt=”<?php echo $gallery->title ?>” src=”<?php echo $gallery->previewurl ?>”/>

    To be more precise, the image is leading back to the album (titled “artists” https://parkerfarmdesign.com/newsitetest/exhibiting-artist/ ). And if you click any artist thumbnail on this page, the same thing happens: it just links back to itself, even though put the page URL only on the “McCue” custom field within the “mccue” gallery. Its this modification within album_compact is applying a global change to the “previewURL” rather than a unique one tied to an individual gallery’s custom URL.

    Is the problem with the gallery ID variable? The custom field is already in the gallery, so pulling the gallery ID and replacing it with custom URL field will cause the link to itself. Wouldn’t we want to have the href cause the custom “gallerylink” to be passed into the Preview URL variable, rather than the gallery ID?
    ($gallery->ID, “gallerylink”); ?>”>

    Thread Starter Peter

    (@peterbatchelder)

    Shauno, Many thanks, and at the risk of abusing your generosity, that hack got me closer, but now when I click on one of the thumbnails within the album, it links right back to that very album. Instead, I want each thumbnail, when clicked, to lead to a unique page for that artist.

    here’s where the problem is: https://parkerfarmdesign.com/newsitetest/exhibiting-artist/

    Click on Mccue. Clicking this should lead to a page (this one: https://parkerfarmdesign.com/newsitetest/exhibiting-artist/theresa-mccue/ ), not back to the album itself.

    So close, and hoping you can shed light on what I’m missing.

    Thanks again

    Thread Starter Peter

    (@peterbatchelder)

    Thanks. I had read that post before, and have no problem getting the custom field for the link on each thumbnail within the gallery. I should have been more specific on my previous comment. On the artist’s landing page, the thumbnails you see are “preview images” for an artist’s individual gallery. I need to do is slightly different. I need to link ONLY the preview image for the gallery to a page. Ideally, on that page the link leads to, I would place that artist’s gallery (and ideally, it would then open in a JS lightbox).

    I need the link that is, by default, attached to the preview image that opens that NGG gallery, to instead link off to a page, where that artist’s NGG gallery will reside.

    Thanks again!

    Thread Starter Peter

    (@peterbatchelder)

    …second to last paragraph should read “ArtiSts”…

    Thread Starter Peter

    (@peterbatchelder)

    Hi Shaun,

    Appreciate the help. Solved the problem. Simply hadn’t run the link you provided to authenticate the install. I paraphrased the wording of the failure notice…but that is now resolved.

    However, since I’ve got you…

    The NextGen plugin is brilliant, and solves 99.9-percent of my problem. I am building a gallery site (one of several galleries I’ve been approached to build), and one of the most basic functions of this site eludes me in WordPress. I’ve got years of custom html experience building these things by hand. The NGG gets me close, but not fully there.

    Here’s the link: https://parkerfarmdesign.com/newsitetest/exhibiting-artist/

    I’ve read EVERY post, your FAQ, other people’s hacks and have tried everything, with failure. All I need to do is this:

    On the Artists landing page, each thumbnail needs to lead to a page, not a lightbox. If you click the “Theresa Mccue” page (under the artists dropdown) that’s what each page will look like, and needs to be accessed by either that dropdown, or the “Artits” thumbnail gallery page default.

    Then, once on an artists page, I’ll embed an NGG gallery for that artists work. Each piece, when clicked should then lead to a detail page containing that piece as well as data about that piece (size, medium, price, availability, etc). I believe NGG Custom fields can do this, and I have it installed, but continuously fail to make it happen. I know it’s an open-ended question, but any help you can provide would be enormously appreciated.

    Many thanks!

Viewing 13 replies - 1 through 13 (of 13 total)