alanbxero
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Hi again,
Not sure what was done but the WPE guys got it to the point where I was able to sftp the repeater templates 2 & 3 up and they are now boing used by the site ??The UI save still doesn’t update, but the repeater is working as intended so I’m happy.
Hi dcooney,
Thanks for replying so quickly.I was able sftp in and replace the default.php template. Luckily this covers 2 of the 3 places we use ‘lead more’. For the third we definitely need a custom repeater.
Templates are relatively complex. Here’s a custom repeater that won’t update:
<div class="bottom40 search_results_wrap"> <div class="row"> <div class="col-md-5 col-sm-5 col-xs-5"> <div class="left_sec_img"> <?php global $post; $smallThumb = get_field("small_thumbnail"); if ($smallThumb) { ?> <a href="<?php the_permalink() ?>"><img src="<?php echo the_field("small_thumbnail"); ?>" /></a> <?php } else { ?> <a href="<?php the_permalink() ?>"><img src="<?php echo get_stylesheet_directory_uri() ?>/library/blog-images/default-img.png" class="icon-searchpage"/></a> <?php } ?> <!-- <a href="<?php the_permalink() ?>"> <img src="images/dish.png" ></a>--> </div> </div> <div class="col-md-7 col-sm-7 col-xs-7"> <div class="right_sec_content"> <div class="top_share clear"> <span> <?php $category = get_the_category(); if ($category) { echo '<a href="' . get_category_link($category[0]->term_id) . '" class="' . sprintf(__("search-result__category--%s"), strtolower($category[0]->slug)) . '" ' . '>' . $category[0]->name . '</a>'; } ?></span> <?php get_social_share_count($post); $social_share = get_post_meta(get_the_ID(), 'share_count', true); ?> <span class="text-right"><?php if ($social_share != '') { echo $social_share != "0" ? $social_share . " shares" : ""; } ?></span> </div> <h2><a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2> <div class="submit_des"> by <?php echo the_author_posts_link(); ?> | <span><?php if (get_the_time('U') < strtotime('-7 day')) { echo get_the_date('j F Y'); } else { ?> <?php echo human_time_diff(get_the_time('U'), current_time('timestamp')) . ' ago' ?> <?php } ?></span> </div> <p class="clamp_search_text"> <?php echo get_the_excerpt(); ?></p> </div> </div> </div> </div>
Finally. It is worth noting that we have this working on our stage environment (which is also WPE).
Viewing 3 replies - 1 through 3 (of 3 total)