Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter adehner

    (@adehner)

    Hi Luis,

    Any updates on this? The reports aren’t useful when the numbers are incorrect.

    Thanks!

    Thread Starter adehner

    (@adehner)

    Okay, 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>

    Thread Starter adehner

    (@adehner)

    Well, 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’);

    Thread Starter adehner

    (@adehner)

    any ideas out there?

Viewing 4 replies - 1 through 4 (of 4 total)