greencode
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Replace Product Image with Thumbnail on ClickThe link to the dev product is http://www.daretothink.co.uk/clients/chocbloc/product/chocbloc/
Did you ever have any luck with this?
Forum: Plugins
In reply to: [Contact Form 7] Syntax error in "Additional Headers" field with Reply-toThanks @jane – I was having the same issue and have now changed from text to email and everything validates correctly.
Forum: Plugins
In reply to: [Theme Check] Non-hyphenated Theme SlugThanks for the quick response and clearing that up.
Forum: Plugins
In reply to: [Contact Form DB] Delete field in DBThanks Michael. Much appreciated.
Forum: Plugins
In reply to: [Contact Form 7] Multiple Additional SettingsHi @takayuki. Apologies for not getting back to you until today. I didn’t get notified by email that a reply had been made. The site is live but I’m having to stop using the trackEvent due to this issue. The site is http://www.silogika.com/register
UPDATE: Apologies, I had some other weird thing going on in my functions file! This filder works perfectly.
Do you add that filter to the functions.php file? I’ve just tried adding that and it doesn’t seem to do anything?!
Forum: Fixing WordPress
In reply to: Child pages not displaying correctly in sidebarJust wondering if anybody has any other advice?
I have tried everything with this including using the default wordpress theme and disabling all plugins. Still all I get is all pages displaying in the sidebar when I use the above code but when I add the code directly to the theme template then all works well.
Appears to have been resolved in v2.2.1
Forum: Fixing WordPress
In reply to: Child pages not displaying correctly in sidebarI’ve even added this
<?php the_ID(); ?>in another widget, just to make sure it was getting the page id – it is.
Forum: Fixing WordPress
In reply to: Child pages not displaying correctly in sidebarThanks for replying. Unfortunately I’ve tried everything I can think of i.e, reverting to the standard WP theme, deactivate all plugins, remove all functions from the functions.php file, have the most basic page with no query on there but it just doesn’t work. Pulling my hair out here trying to figure out what difference it could possibly make by having it as a widget (not working) compared to including the code in the same div as the widgets appear.
Forum: Plugins
In reply to: [Simple Image Sizes] Regenerate Thumbnails doesn't workUnfortunately 3.0.6. only fixed the regenerate thumbnails when accessing it from Settings > Media and not when you are attempting to regenerate single images from the Media library.
Forum: Fixing WordPress
In reply to: Query using custom field for event date not workingI’m not trying to limit each subgroup to 8. I am trying to limit all upcoming events to 8.
I’ve tried ‘numberposts’ and ‘posts_per_page’ but neither work when limiting the amount of posts to a set number i.e. 8
Forum: Fixing WordPress
In reply to: Query using custom field for event date not workingSorry for the delay in replying. Here’s the code with the infinite amount of posts showing (-1) but if I change that to 8, for example, then no posts show.
<div class="related-posts p-list cf"> <?php // Get the posts $myposts = get_posts( array( 'post_type' => 'event', 'meta_key' => 'event_date_start', 'orderby' => 'meta_value_num', 'order' => 'ASC', 'posts_per_page' => '-1', 'post__not_in' => array($post->ID), )); ?> <?php foreach ( $myposts as $post ) : setup_postdata( $post ); $eventdate = get_post_meta($post->ID,'event_date_start',true); $eventdateend = get_post_meta($post->ID,'event_date_end',true); $eventnumdays = get_post_meta($post->ID,'event_number_of_days',true); $today = current_time('timestamp'); if( get_field('event_number_of_days') ) { $exp_date = strtotime(get_post_meta($post->ID,'event_date_end',true) . ' 23:59:59'); } else { $exp_date = strtotime(get_post_meta($post->ID,'event_date_start',true) . ' 23:59:59'); } if ($today <= $exp_date) { $eventdatestart = strtotime(get_post_meta($post->ID,'event_date_start',true)); $startdate = date('d', $eventdatestart); $startmonth = date('F', $eventdatestart); $startyear = date('Y', $eventdatestart); ?> <div class="block"> <a href="<?php the_permalink() ?>" title="<?php the_title() ?>"> <div class="image"> <div class="meta-date"> <div class="date"><?php echo $startdate; ?> <?php echo $startmonth; ?></div> </div> <?php the_post_thumbnail('medium', array('class' => 'medium')); ?> </div> <div class="details"> <h2 class="title"><?php the_title() ?></h2> <?php the_excerpt(); ?> </div> </a> </div> <?php } endforeach; wp_reset_postdata();?> <?php wp_reset_query(); ?> </div>