adehner
Forum Replies Created
-
Forum: Plugins
In reply to: [Easy Dash for LearnDash] User number mismatchHi Luis,
Any updates on this? The reports aren’t useful when the numbers are incorrect.
Thanks!
Forum: Plugins
In reply to: Link to lightbox gallery from category archiveOkay, I figured it out…
In the loop:
$attachments = get_children(array('post_parent' => $post->ID, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID')); foreach($attachments as $att_id => $attachment) { $full_img_url = wp_get_attachment_url($attachment->ID); ?> <a href='<?php echo $full_img_url; ?>' rel='lightbox[<?php the_ID(); ?>]' class='hidden' title='<?php echo get_the_title(); echo "<br />".$attachment->post_excerpt; ?>'></a> <?php }
And where the featured images display:
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' );?> <a class="post-thumbnail" href="<?php echo $image[0]; ?>" rel="lightbox[<?php the_ID(); ?>]" title="<?php echo get_the_title(); echo '<br />'.$caption;?>" aria-hidden="true"> <?php the_post_thumbnail( 'post-thumbnail', array( 'alt' => get_the_title() ) ); ?> </a>
Forum: Fixing WordPress
In reply to: RSS widget dates are one day later than date in xmlWell, in case anyone has the same problem and finds this thread…
The out-of-the-box RSS widget is not converting UTC to my local timezone. Somehow the -7 offset is not registering. I’ve read several posts about UTC being hardcoded in wp-settings.php in spite of timezone settings in the dashboard’s general settings.
I needed to override this function in wp-settings.php to get the correct date in my RSS widget:
date_default_timezone_set(‘UTC’);I added the function below to my child theme’s functions.php and the date is displaying correctly. But I don’t know what negative repercussions will come from this change yet.
date_default_timezone_set(‘America/Los_Angeles’);Forum: Fixing WordPress
In reply to: RSS widget dates are one day later than date in xmlany ideas out there?