Jordan
Forum Replies Created
-
Confirming this is now working. Thanks, Javier!
@carazo Thanks so much for the support and fixing this bug. I see the new version has been released and am very excited to try it out.
Thanks again!
Forum: Reviews
In reply to: [The Events Calendar] Great SupportYou bet guys, you deserve the kudos. I am an intermediate developer, so needless to say I have spent a lot of time in forums and on blogs and the general attitude when requesting support for a product is not great. Sometimes people are down right rude. I will for sure put together a feature suggestion.
Take Care,
-JordanForum: Plugins
In reply to: [Dynamic Featured Image] Integration TroublesThanks, just emailed you!
Forum: Plugins
In reply to: [Dynamic Featured Image] Integration TroublesThanks for the advice. I am still having trouble. I did try re-setting the featured images to no avail. I have set alt attributes and still nothing is getting pulled for the img src or alt. If you can no longer help me that’s fine but it would be very appreciated.
Thanks,
Forum: Plugins
In reply to: [Dynamic Featured Image] Integration TroublesThanks again for the help/patience.
I am new to the PHP world.The code is no longer giving me an error but this is what is printed for the img tag
‘<img src=”” alt=””>’Here is the page if you want to see for yourself.
whirlmagazine.com/testForum: Plugins
In reply to: [Dynamic Featured Image] Integration TroublesThe typo was not the issue I do not believe.
Here is the code as it is now.
<?php $attachments = dfi_get_featured_images($post->ID); foreach($attachments as $att_id => $attachment) { $medium_img_urls = dfi_get_image_url( $attachments['attachment_id'], 'featured_list_image' ); ?> <li> <a class="gall-img" href="<?php the_permalink() ?>" style="margin-bottom: 0;"> <img src="<?php echo $medium_img_urls[0]; ?>" alt="<?php echo $attachment->post_title; ?>" /> </a> </li> <?php } ?> </ul> </div> <?php } else { ?> <a class="gall-img entry-image" href="<?php the_permalink() ?>" style="margin-bottom: 0;"> <?php the_post_thumbnail('featured_list_image'); ?> </a> <?php } ?>
This still gives me the undefined index: attachment_id
Forum: Plugins
In reply to: [Dynamic Featured Image] Integration TroublesAnkit,
Thanks so much for the support. I can’t tell you how much you are helping!
I am still receiving an error “Undefined index: attatchment_id”. I apologize for my ignorance.Here is the whole block of code I am working with.
<div class="post-image-box entry-image"> <?php $attachments = get_children( array('post_parent' => get_the_ID(), 'post_type' => 'attachment', 'post_mime_type' => 'image') ); if ( $attachments ) { ?> <?php /* add javascript */ wp_enqueue_script( 'agurghis-flexslider' ); ?> <?php if ($current==0) { ?> <script type='text/javascript'> jQuery(function() { jQuery('#post-<?php the_ID(); ?> .flexslider').flexslider( { slideshowSpeed: 4200, animationSpeed: 500, }); }); </script> <?php } elseif ($current==1) { ?> <script type='text/javascript'> jQuery(function() { jQuery('#post-<?php the_ID(); ?> .flexslider').flexslider( { slideshowSpeed: 2900, animationSpeed: 200, }); }); </script> <?php } elseif ($current==2) { ?> <script type='text/javascript'> jQuery(function() { jQuery('post-<?php the_ID(); ?> .flexslider').flexslider( { slideshowSpeed: 5600, animationSpeed: 200, }); }); </script> <?php } elseif ($current==3) { ?> <script type='text/javascript'> jQuery(function() { jQuery('#post-<?php the_ID(); ?> .flexslider').flexslider( { slideshowSpeed: 4800, animationSpeed: 300, }); }); </script> <?php } elseif ($current==4) { ?> <script type='text/javascript'> jQuery(function() { jQuery('#post-<?php the_ID(); ?> .flexslider').flexslider( { slideshowSpeed: 3400, animationSpeed: 150, }); }); </script> <?php } ?> <div class="flexslider"> <ul class="slides"> <?php $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) { $medium_img_urls = wp_get_attachment_image_src( $attachment->ID, 'featured_list_image' ); ?> <li> <a class="gall-img" href="<?php the_permalink() ?>" style="margin-bottom: 0;"> <img src="<?php echo $medium_img_urls[0]; ?>" alt="<?php echo $attachment->post_title; ?>" /> </a> </li> <?php } ?> </ul> </div> <?php } else { ?> <a class="gall-img entry-image" href="<?php the_permalink() ?>" style="margin-bottom: 0;"> <?php the_post_thumbnail('featured_list_image'); ?> </a> <?php } ?> </div>
Thanks again,
Forum: Fixing WordPress
In reply to: is_category question.Thanks anyway Harrison, sorry to have wasted you’re time.
Forum: Fixing WordPress
In reply to: is_category question.I actually just figured it out. It due to my if else statement.
The proper order was
if, elseif, elseForum: Fixing WordPress
In reply to: is_category question.This will probably make it easier to help me out.
<?php if ( is_category( 'athome' ) ) { ?> <img src = "https://images/logo1.png" /> <?php } else ( is_category( 'whirlweddings' ) ) { ?> <img src = "https://images/logo2.png" /> <?php } else () ) { ?> <img src = "https://images/logo3.png" /> <?php } ?>
Forum: Fixing WordPress
In reply to: Static Homepage Breaking SiteOh, my apologies.
I tried to replicate the issue in 2013 and the problem was resolved.Thanks for turning me in the right direction.
Forum: Fixing WordPress
In reply to: Static Homepage Breaking SiteThe issue is occuring in post-template.php. A wordpress file.
But thanks anyway.
Oops, I can do that.
Thanks for the help.