iankg
Forum Replies Created
-
I’ve had the same error – turned out to be the “WP SEO Structured Data Schema” plugin that was conflicting. Any ideas?
Forum: Plugins
In reply to: [Slideshow] Brilliant – but freezes/whiteoutsHaving restarted my browser (Firefox) it seems to be a lot better – seems to get worse the more tabs I have open. It also helps if I keep the slide change rate to 4 seconds or more. Does that suggest that this plugin is very memory intensive on the client side?
Forum: Plugins
In reply to: [Ultimate Tag Cloud Widget] Doesn't display all tags after version 2.2.3Any progress on this??
IanHi Mikko,
The “add_filter” works for me. Like lustek I added it to functions.php of the theme (or to be precise, a child copy of it) – was that where you intended it to be added?
Many thanks,
Ian
No problem – here’s loop.php from the Trinity theme:
<?php /* =================================================================================================== WARNING! DO NOT EDIT THIS FILE OR ANY TEMPLATE FILES IN THIS THEME! To make it easy to update your theme, you should not edit this file. Instead, you should create a Child Theme first. This will ensure your template changes are not lost when updating the theme. You can learn more about creating Child Themes here: https://codex.www.ads-software.com/Child_Themes You have been warned! :) =================================================================================================== */ ?> <?php $author_ID = ( get_query_var( 'author' ) ) ? get_query_var( 'author' ) : 0; $post_settings = get_option('ct_post_settings'); isset($post_settings['orderby']) ? $orderby = $post_settings['orderby'] : $orderby = null; isset($post_settings['order']) ? $order = $post_settings['order'] : $order = null; if(empty($orderby)) $orderby = 'date'; if(empty($order)) $order = 'DESC'; global $post; $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; if($orderby == 'views'): $args=array( 'post_type' => 'post', 'post_status' => 'publish', 'author' => $author_ID, 'paged' => $paged, 'meta_key' => 'Views', 'orderby' => 'meta_value_num', 'order' => $order, 'tag' => get_query_var('tag'), 'cat' => get_query_var('cat'), 'year' => get_query_var('year'), 'monthnum' => get_query_var('monthnum'), 's' => get_query_var('s'), ); else: $args=array( 'post_type' => 'post', 'post_status' => 'publish', 'author' => $author_ID, 'paged' => $paged, 'orderby' => $orderby, 'order' => $order, 'tag' => get_query_var('tag'), 'cat' => get_query_var('cat'), 'year' => get_query_var('year'), 'monthnum' => get_query_var('monthnum'), 's' => get_query_var('s'), ); endif; $query = null; $query = new WP_Query($args); $i = 0; if($query->have_posts()): while($query->have_posts()): $query->the_post(); $i++; $img_atts = array( 'alt' => trim(strip_tags($post->post_title)), 'title' => trim(strip_tags($post->post_title)), ); ?> <div <?php if($i == 1): echo post_class('first'); else: post_class(); endif; ?>> <div class="date"><?php the_time(get_option('date_format')); ?></div> <h2><a href="<?php the_permalink(); ?>" title="<?php printf(esc_attr__('Permalink to %s', 'churchthemes'), the_title_attribute('echo=0')); ?>" rel="bookmark"><?php the_title(); ?></a></h2> <h4><?php the_author_posts_link(); ?></h4> <div class="excerpt"> <div class="image"><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute('echo=0'); ?>" rel="bookmark"><?php echo get_the_post_thumbnail($post->ID, 'archive', $img_atts); ?></a></div> <p><?php the_excerpt(); ?><p> </div> <div class="clear"></div> </div> <?php endwhile; else: ?> <div class="post first"> <h2><?php _e('No results found', 'churchthemes'); ?></h2> <p><?php _e('Sorry, nothing was found matching that criteria. Please try your search again.', 'churchthemes'); ?></p> </div> <?php endif; ?> <?php if($query->max_num_pages > 1): pagination($query->max_num_pages); endif; wp_reset_query(); ?>
Hope that helps,
Ian
Nope, sorry, doesn’t fix it in Trinity either.
Hi Mikko – sorry for delay.
Archive.php from my theme (“Trinity”, from churchthemes.net) is as follows:
<?php /** * The template for displaying Archive pages. * * Used to display archive-type pages if nothing more specific matches a query. * For example, puts together date-based pages if no date.php file exists. * * Learn more: https://codex.www.ads-software.com/Template_Hierarchy * * @package WordPress * @subpackage ChurchThemes * =================================================================================================== WARNING! DO NOT EDIT THIS FILE OR ANY TEMPLATE FILES IN THIS THEME! To make it easy to update your theme, you should not edit this file. Instead, you should create a Child Theme first. This will ensure your template changes are not lost when updating the theme. You can learn more about creating Child Themes here: https://codex.www.ads-software.com/Child_Themes You have been warned! :) =================================================================================================== */ $term = $wp_query->get_queried_object(); $post_type = ( isset( $_GET['post_type'] ) ) ? $_GET['post_type'] : null; $current_speaker = get_query_var('sermon_speaker'); $speaker_terms = get_terms('sermon_speaker'); $current_series = get_query_var('sermon_series'); $series_terms = get_terms('sermon_series'); $current_service = get_query_var('sermon_service'); $service_terms = get_terms('sermon_service'); $current_topic = get_query_var('sermon_topic'); $topic_terms = get_terms('sermon_topic'); $sermon_settings = get_option('ct_sermon_settings'); isset($sermon_settings['archive_filter_1']) ? $ct_sermon_filters_speaker = $sermon_settings['archive_filter_1'] : $ct_sermon_filters_speaker = null; isset($sermon_settings['archive_filter_2']) ? $ct_sermon_filters_series = $sermon_settings['archive_filter_2'] : $ct_sermon_filters_series = null; isset($sermon_settings['archive_filter_3']) ? $ct_sermon_filters_service = $sermon_settings['archive_filter_3'] : $ct_sermon_filters_service = null; isset($sermon_settings['archive_filter_4']) ? $ct_sermon_filters_topic = $sermon_settings['archive_filter_4'] : $ct_sermon_filters_topic = null; isset($sermon_settings['archive_filter_5']) ? $ct_sermon_filters_keyword = $sermon_settings['archive_filter_5'] : $ct_sermon_filters_keyword = null; $ct_sermon_filters_button_text = $sermon_settings['archive_filters_button_text']; if(empty($ct_sermon_filters_button_text)) $ct_sermon_filters_button_text = __('Search Sermons', 'churchthemes'); $ct_sermon_archive_title = $sermon_settings['archive_title']; if(empty($ct_sermon_archive_title)) $ct_sermon_archive_title = __('Sermon Archives', 'churchthemes'); $ct_sermon_archive_slug = $sermon_settings['archive_slug']; if(empty($ct_sermon_archive_slug)) $ct_sermon_archive_slug = 'sermons'; $ct_sermon_archive_tagline = $sermon_settings['archive_tagline']; $ct_sermon_archive_layout = $sermon_settings['archive_layout']; $post_settings = get_option('ct_post_settings'); $ct_post_archive_title = $post_settings['archive_title']; if(empty($ct_post_archive_title)) $ct_post_archive_title = __('Post Archives', 'churchthemes'); $ct_post_archive_layout = $post_settings['archive_layout']; $location_settings = get_option('ct_location_settings'); $ct_location_archive_title = $location_settings['archive_title']; if(empty($ct_location_archive_title)) $ct_location_archive_title = __('Location Archives', 'churchthemes'); $ct_location_archive_tagline = $location_settings['archive_tagline']; $ct_location_archive_layout = $location_settings['archive_layout']; $person_settings = get_option('ct_person_settings'); $ct_person_archive_title = $person_settings['archive_title']; if(empty($ct_person_archive_title)) $ct_person_archive_title = __('People Archives', 'churchthemes'); $ct_person_archive_tagline = $person_settings['archive_tagline']; $ct_person_archive_layout = $person_settings['archive_layout']; $search_query = get_search_query(); get_header(); ?> <div id="ribbon" class="page"> <div class="container_12 grid-container content"> <div class="ribbon-wrapper"> <div class="grid_6 grid-50 alpha"> <h1> <?php if(is_day()): ?> <?php printf( __('Daily Archives', 'churchthemes'), get_the_date()); ?> <?php elseif(is_month()): ?> <?php printf( __('Monthly Archives', 'churchthemes'), get_the_date('F Y')); ?> <?php elseif(is_year()): ?> <?php printf( __('Yearly Archives', 'churchthemes'), get_the_date('Y')); ?> <?php elseif(is_post_type_archive('ct_sermon') || $post_type == 'ct_sermon' || is_tax('sermon_speaker') || is_tax('sermon_series') || is_tax('sermon_service') || is_tax('sermon_topic')): ?> <?php echo $ct_sermon_archive_title; ?> <?php elseif(is_post_type_archive('ct_location') || is_tax('location_tag')): ?> <?php echo $ct_location_archive_title; ?> <?php elseif(is_post_type_archive('ct_person') || is_tax('person_category') || is_tax('person_tag')): ?> <?php echo $ct_person_archive_title; ?> <?php else: ?> <?php echo $ct_post_archive_title; ?> <?php endif; ?> </h1> </div> <div class="grid_6 grid-50 omega"> <span class="tagline"> <?php if(is_day()): echo get_the_date(); endif; ?> <?php if(is_month()): echo get_the_date('F Y'); endif; ?> <?php if(is_year()): echo get_the_date('Y'); endif; ?> <?php if(is_category() || is_tag()): echo $term->name; endif; ?> <?php if(is_author()): echo $term->display_name; endif; ?> <?php if(is_post_type_archive('ct_sermon')): echo $ct_sermon_archive_tagline; endif; ?> <?php foreach ($speaker_terms as $term) { if($current_speaker == $term->slug) { echo $term->name; } } ?> <?php if($current_speaker && $current_series) { echo ' + '; } ?> <?php foreach ($series_terms as $term) { if($current_series == $term->slug) { echo $term->name; } } ?> <?php if(($current_speaker || $current_series) && $current_service) { echo ' + '; } ?> <?php foreach ($service_terms as $term) { if($current_service == $term->slug) { echo $term->name; } } ?> <?php if(($current_speaker || $current_series || $current_service) && $current_topic) { echo ' + '; } ?> <?php foreach ($topic_terms as $term) { if($current_topic == $term->slug) { echo $term->name; } } ?> <?php if(($current_speaker || $current_series || $current_service || $current_topic) && $search_query) { echo ' + '; } ?> <?php if($search_query && ($post_type == 'ct_sermon' || $current_speaker || $current_series || $current_service || $current_topic)): echo '"'.$search_query.'"'; endif; ?> <?php if(is_post_type_archive('ct_location')): echo $ct_location_archive_tagline; endif; ?> <?php if(is_post_type_archive('ct_person')): echo $ct_person_archive_tagline; endif; ?> </span> </div> </div> </div> </div> <div id="wrapper3" class="container_12 grid-container"> <?php if( ((is_day() || is_month() || is_year() || is_post_type_archive('post') || is_tag() || is_category() || is_author()) && $ct_post_archive_layout == 'left') || ((is_post_type_archive('ct_sermon') || $post_type == 'ct_sermon' || is_tax('sermon_speaker') || is_tax('sermon_series') || is_tax('sermon_service') || is_tax('sermon_topic')) && $ct_sermon_archive_layout == 'left') || ((is_post_type_archive('ct_location') || is_tax('location_tag')) && $ct_location_archive_layout == 'left') || ((is_post_type_archive('ct_person') || is_tax('person_tag') || is_tax('person_category')) && $ct_person_archive_layout == 'left') ): get_sidebar(); ?> <div id="content" class="grid_8 grid-66 omega"> <?php elseif( ((is_day() || is_month() || is_year() || is_post_type_archive('post') || is_tag() || is_category() || is_author()) && $ct_post_archive_layout == 'full') || ((is_post_type_archive('ct_sermon') || $post_type == 'ct_sermon' || is_tax('sermon_speaker') || is_tax('sermon_series') || is_tax('sermon_service') || is_tax('sermon_topic')) && $ct_sermon_archive_layout == 'full') || ((is_post_type_archive('ct_location') || is_tax('location_tag')) && $ct_location_archive_layout == 'full') || ((is_post_type_archive('ct_person') || is_tax('person_tag') || is_tax('person_category')) && $ct_person_archive_layout == 'full') ): ?> <div id="content" class="grid_12 grid-100 alpha"> <?php else: ?> <div id="content" class="grid_8 grid-66 alpha"> <?php endif; ?> <?php if(is_day() || is_month() || is_year() || is_post_type_archive('post') || is_tag() || is_category() || is_author()): get_template_part('loop'); endif; if(is_post_type_archive('ct_sermon') || $post_type == 'ct_sermon' || is_tax('sermon_speaker') || is_tax('sermon_series') || is_tax('sermon_service') || is_tax('sermon_topic')): ?> <?php if($ct_sermon_filters_speaker || $ct_sermon_filters_series || $ct_sermon_filters_service || $ct_sermon_filters_topic || $ct_sermon_filters_keyword): ?> <form method="get" id="sermon-filter" action="<?php echo home_url('/'); ?><?php echo $ct_sermon_archive_slug; ?>"> <div id="sermon_filter"> <?php if($ct_sermon_filters_speaker): ?> <div> <select name="sermon_speaker" id="sermon_speaker" style="display:none;"> <option value=""><?php _e('Any Speaker', 'churchthemes'); ?></option> <?php dropdown_taxonomy_term('sermon_speaker'); ?> </select> </div> <?php endif; ?> <?php if($ct_sermon_filters_series): ?> <div> <select name="sermon_series" id="sermon_series" style="display:none;"> <option value=""><?php _e('Any Series', 'churchthemes'); ?></option> <?php dropdown_taxonomy_term('sermon_series'); ?> </select> </div> <?php endif; ?> <?php if($ct_sermon_filters_service): ?> <div> <select name="sermon_service" id="sermon_service" style="display:none;"> <option value=""><?php _e('Any Service', 'churchthemes'); ?></option> <?php dropdown_taxonomy_term('sermon_service'); ?> </select> </div> <?php endif; ?> <?php if($ct_sermon_filters_topic): ?> <div> <select name="sermon_topic" id="sermon_topic" style="display:none;"> <option value=""><?php _e('Any Topic', 'churchthemes'); ?></option> <?php dropdown_taxonomy_term('sermon_topic'); ?> </select> </div> <?php endif; ?> <?php if($ct_sermon_filters_keyword): ?> <div> <input type="hidden" name="post_type" value="sermon" /> <input type="text" name="s" size="20" placeholder="Search terms" value="<?php echo $s; ?>" class="sermon_keywords" /> </div> <?php endif; ?> <input type="submit" name="submit" class="button" value="<?php echo $ct_sermon_filters_button_text; ?>" /> </div> </form> <?php endif; ?> <?php get_template_part('loop','ct_sermon'); endif; if(is_post_type_archive('ct_location') || is_tax('location_tag')): get_template_part('loop','ct_location'); endif; if(is_post_type_archive('ct_person') || is_tax('person_category') || is_tax('person_tag')): get_template_part('loop','ct_person'); endif; ?> </div> <?php if( ((is_day() || is_month() || is_year() || is_post_type_archive('post') || is_tag() || is_category() || is_author()) && ($ct_post_archive_layout == 'right' || empty($ct_post_archive_layout))) || ((is_post_type_archive('ct_sermon') || $post_type == 'ct_sermon' || is_tax('sermon_speaker') || is_tax('sermon_series') || is_tax('sermon_service') || is_tax('sermon_topic')) && ($ct_sermon_archive_layout == 'right' || empty($ct_sermon_archive_layout))) || ((is_post_type_archive('ct_location') || is_tax('location_tag')) && ($ct_location_archive_layout == 'right' || empty($ct_location_archive_layout))) || ((is_post_type_archive('ct_person') || is_tax('person_tag') || is_tax('person_category')) && ($ct_person_archive_layout == 'right' || empty($ct_person_archive_layout))) ): get_sidebar(); endif; ?> </div> <?php get_footer(); ?>
Hope that’s what you need!
Cheers,
Ian
Forum: Plugins
In reply to: [Open Graph and Twitter Card Tags] No admin data found at root webpageFixed it I think – I had used both my own ID and the ID of the page I manage. I’ve taken out the page ID and it all seems to be working now…
Forum: Plugins
In reply to: [Ultimate Tag Cloud Widget] Doesn't display all tags after version 2.2.3Forum: Plugins
In reply to: [UpdraftPlus: WP Backup & Migration Plugin] Backup never completesHi David,
I’m so sorry – I’ve just realised I never replied to this one! I did install that update, although I think it’s now been superceded by another release (or several…)
Latest log is here, if it’s still of use:
https://pastebin.com/c2QggD2GYes, I guessed you were the David of St Neots Evangelical – saw ACTS Kenya from your website and it was an easy trail from there – but decided against mentioning it on the basis that it would sound like I was some sort of stalker! ??
Cheers,
Ian
Forum: Plugins
In reply to: [UpdraftPlus: WP Backup & Migration Plugin] Backup never completesOk, latest log here:
Let me know if you need another version tested.
Cheers,
Ian
Forum: Plugins
In reply to: [UpdraftPlus: WP Backup & Migration Plugin] Backup never completesRunning now…
Forum: Plugins
In reply to: [UpdraftPlus: WP Backup & Migration Plugin] Backup never completesOK, it all seems to have completed happily with the dev version and the setting you suggested. Latest log can be found here:
Looking at the comparable stats in this new log file to the one you quoted from the original, the speed seems to have radically increased. Maybe the server was having a bad morning… or maybe it’s just plain flaky! I’ve just realised (from the message within the automated backup status mail) that you offer your own hosting facilities – I respect the fact that you didn’t thrust that down my throat when I first mentioned my problem! We could maybe have a separate conversation about your hosting facilities – is that you, or a colleague? What’s the best way to contact?
Many thanks again for your prompt support,
Ian
Forum: Plugins
In reply to: [UpdraftPlus: WP Backup & Migration Plugin] Backup never completesOh, and one more ickle question – the time at the end of the “Last log message” line is always an hour behind local time – is there a setting somewhere, or does it always report in GMT/UTC?
Ian
Forum: Plugins
In reply to: [UpdraftPlus: WP Backup & Migration Plugin] Backup never completesMost excellent! I’ve done that, run a backup, and it’s now saying “The backup apparently succeeded and is now complete” (although strangely the line above it still says “No backup has been completed.”. Oh, hold on, it’s still doing things even as I type… Anyway, it looks promising so far, and I’ll send another log this evening.
Incidentally, I’m intrigued by your comment about very slow web hosting. Since I did the website earlier this year I’ve had the subjective impression that it was slow, but I’ve never used WordPress before so I don’t know what to compare it to, and if it is slow whether it’s because of the hosting, or the theme/plugins, or what. Is there a way to tell conclusively (a) that it’s slow, and (b) that it’s the hosting that is causing it?
Many thanks,
Ian