Custom Field not showing under title
-
Hi. I’m losing my hair over this so I hope you can assist.
I am using the NGG Custom Fields plugin. I was able to add my custom fields, and they show up with the thumbs in the Gallery as they should. I added the code I found in previous posts in the a-href section of the foreach loop of gallery.php and gallery-caption.php. Here is the complete a-href code:
<a href="<?php echo $image->ngg_custom_fields["Page Link"]; ?>" title="<?php echo $image->description ?> | <?php echo $image->ngg_custom_fields["Size"]; ?>" <?php echo $image->thumbcode ?> > <?php if ( !$image->hidden ) { ?> <img title="<?php echo esc_attr($image->alttext) ?>" alt="<?php echo esc_attr($image->alttext) ?>" src="<?php echo nextgen_esc_url($image->thumbnailURL) ?>" <?php echo $image->size ?> /> <?php } ?> </a>
When I go to the page at https://davidfedeli.com/complete-gallery/ the title shows, but nothing else. When I view the page’s source code, my ngg custom field “Size” appears to be showing there, so I can’t figure out why it doesn’t show in the browser. Here is the source code of the page;
`<div id=”ngg-image-239″ class=”ngg-gallery-thumbnail-box” >
<div class=”ngg-gallery-thumbnail” >
<a href=”https://davidfedeli.com/for-us-to-part2/”
title=”For Us To Part | 48×24″ data-image-id=”239″ data-src=”https://davidfedeli.com/wp-content/gallery/neo-romantics/ForUsToPart.jpg” data-thumbnail=”https://davidfedeli.com/wp-content/gallery/neo-romantics/thumbs/thumbs_ForUsToPart.jpg” data-title=”For Us To Part” data-description=”For Us To Part” ><img title=”For Us To Part” alt=”For Us To Part” src=”https://davidfedeli.com/wp-content/gallery/neo-romantics/thumbs/thumbs_ForUsToPart.jpg” width=’240′ height=’160′ />
</a>
<span>For Us To Part</span>
</div>
</div>`Here is where I see it:=>
title=”For Us To Part | 48×24.
For Us To Part is the title, and 48×24 is what I entered in the Size field.What am I missing!?
Thanks!
https://www.ads-software.com/plugins/nextgen-gallery-custom-fields/
- The topic ‘Custom Field not showing under title’ is closed to new replies.