ChrisLomax
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Forum: Plugins
In reply to: [WPSOLR - Elasticsearch and Solr search] Custom fields not being sent to SolrPerfect, that seems to have resolved it
Thanks
Forum: Plugins
In reply to: [WPSOLR - Elasticsearch and Solr search] Custom fields not being sent to SolrWhen this filter is applied though it turns the array of custom fields into a numeric figure.
It seems whatever filter is being applied and returned is collapsing the array into an int.
I have the groups plugin extension installed working too, is there a chance that the groups extension is flattening the array into an int?
I can see the constant registered, the issue is the filter itself, it’s flattening the array to an int
Forum: Plugins
In reply to: [CPT Bootstrap Carousel] Page is skewed when no carousel itemsFull code
if(count($images) > 0){ ob_start(); ?> <div id="cptbc_<?php echo $id; ?>" class="carousel slide" data-ride="carousel" data-interval="<?php echo $atts['interval']; ?>"> <?php if( count( $images ) > 1 ){ ?> <ol class="carousel-indicators"> <?php foreach ($images as $key => $image) { ?> <li data-target="#cptbc_<?php echo $id; ?>" data-slide-to="<?php echo $key; ?>" <?php echo $key == 0 ? 'class="active"' : ''; ?>></li> <?php } ?> </ol> <?php } ?> <div class="carousel-inner"> <?php foreach ($images as $key => $image) { $linkstart = ''; $linkend = ''; if($image['url']) { $linkstart = '<a href="'.$image['url'].'"'; if($image['url_openblank']) { $linkstart .= ' target="_blank"'; } $linkstart .= '>'; $linkend = '</a>'; } ?> <div class="item <?php echo $key == 0 ? 'active' : ''; ?>" id="<?php echo $image['post_id']; ?>" <?php if($atts['use_background_images'] == 1){ echo ' style="height: '.$atts['background_images_height'].'px; background: url(\''.$image['img_src'].'\') no-repeat center center ; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover;"'; } ?>> <?php if($atts['use_background_images'] == 0){ echo $linkstart.$image['image'].$linkend; } ?> <?php if($atts['showcaption'] === 'true' && strlen($image['title']) > 0 && strlen($image['content']) > 0) { ?> <div class="carousel-caption"> <?php echo $atts['before_title'].$linkstart.$image['title'].$linkend.$atts['after_title']; ?> <?php echo $atts['before_caption'].$linkstart.$image['content'].$linkend.$atts['after_caption']; ?> </div> <?php } ?> </div> <?php } ?> </div> <?php if( count( $images ) > 1 ){ ?> <?php if($atts['showcontrols'] === 'true' && $atts['twbs'] == '3') { ?> <a class="left carousel-control" href="#cptbc_<?php echo $id; ?>" data-slide="prev"><span class="glyphicon glyphicon-chevron-left"></span></a> <a class="right carousel-control" href="#cptbc_<?php echo $id; ?>" data-slide="next"><span class="glyphicon glyphicon-chevron-right"></span></a> <?php } else if($atts['showcontrols'] === 'true'){ ?> <a class="left carousel-control" href="#cptbc_<?php echo $id; ?>" data-slide="prev">a€1</a> <a class="right carousel-control" href="#cptbc_<?php echo $id; ?>" data-slide="next">a€o</a> <?php } else if($atts['showcontrols'] === 'custom' && $atts['twbs'] == '3' && $atts['customprev'] != '' && $atts['customnext'] != ''){ ?> <a class="left carousel-control" href="#cptbc_<?php echo $id; ?>" data-slide="prev"><span class="<?php echo $atts['customprev'] ?> icon-prev"></span></a> <a class="right carousel-control" href="#cptbc_<?php echo $id; ?>" data-slide="next"><span class="<?php echo $atts['customnext'] ?> icon-next"></span></a> <?php } ?> <?php } ?> </div> <script type="text/javascript"> jQuery(document).ready(function() { jQuery('#cptbc_<?php echo $id; ?>').carousel({ interval: <?php echo $atts['interval']; ?> }); }); </script> <?php $output = ob_get_contents(); ob_end_clean(); }
Viewing 3 replies - 1 through 3 (of 3 total)