Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter yetimade2

    (@yetimade2)

    Okay – I deactivated and re-activated the plugin, and they showed up.

    BUT NOW

    The images are all loading once the page is loading; they are not loading one at a time, as I approach them in the viewport.

    Any ideas?

    I’m noticing support works fine in the write post screen, however it simply does not show the thumbnail using any of the instructions provided. Thoughts, ideas or suggestions would be appreciated.

    – JC

    Chris,

    This plugin seems really great, but after following the instructions posted in the Installation and FAQ section of the plugin page on WordPress.com, it’s still not working. I am using the code exactly as it is written in those instances; also, I’ve reviewed the other support topics related to this plugin and have found no success. Is there something that I’m missing?

    Thanks,
    JC

    Thread Starter yetimade2

    (@yetimade2)

    I should also mention that this plugin seems to be pretty good, aside for this issue.

    That article doesn’t do anything when applied to this situation.

    But, dude – surfgatinho – that works! Dude, I owe you one!!!

    How did you figure this out? If you could post how you figured this out – train of thought, and give a little explanation, that would be amazing. And, let me know if there’s any way that I can help you with anything!

    Thanks!
    JC

    See, sorta similar.

    Should work, but doesn’t.

    //deactivate WordPress function
    remove_all_actions( 'wp_get_attachment_link' );
    //activate own function
    add_action('yetimade_wp_get_attachment_link');
    //the own renamed function
    function yetimade_wp_get_attachment_link($id = 0, $size = 'thumbnail', $permalink = false, $icon = false, $text = false) {
    	$id = intval($id);
    	$_post = & get_post( $id );
    
    	if ( ('attachment' != $_post->post_type) || !$url = wp_get_attachment_url($_post->ID) )
    		return __('Missing Attachment');
    
    	if ( $permalink )
    		$url = get_attachment_link($_post->ID);
    
    	$post_title = esc_attr($_post->post_title);
    
    	if ( $text ) {
    		$link_text = esc_attr($text);
    	} elseif ( ( is_int($size) && $size != 0 ) or ( is_string($size) && $size != 'none' ) or $size != false ) {
    		$link_text = wp_get_attachment_image($id, $size, $icon);
    	} else {
    		$link_text = '';
    	}
    
    	if( trim($link_text) == '' )
    		$link_text = $_post->post_title;
    
    	return apply_filters( 'wp_get_attachment_link', "$link_text", $id, $size, $permalink, $icon, $text );
    }

    You guys get anywhere with yours?

    I’ve been trying to overwrite this for two hours.

    remove_all_filters(‘the_attachment_link’, ‘wp_get_attachment_link’);
    remove_all_actions(‘the_attachment_link’, ‘wp_get_attachment_link’);
    remove_action(‘the_attachment_link’, ‘wp_get_attachment_link’);
    remove_action(‘wp_get_attachment_link’);

    I’ve tried EVERYTHING. Nothing works.

    So, if anyone answers to this, it will help both of us.

    – JC

    Thread Starter yetimade2

    (@yetimade2)

    I should mention that WordPress absolutely hates any code I add to this functions document. It has a complete,total, and utter conniption fit and breaks.

    Thread Starter yetimade2

    (@yetimade2)

    Also, I should mention my website address – yetimade.com

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