Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter burakakin

    (@burakakin)

    1) Commented out nothing has changed.
    2) Yes there are 2 oyun and 1 kurs posts.
    3) I have only this one related to post types :

    add_theme_support('post-formats',
    			array(
    				'gallery',
    				'link',
    				'image',
    				'quote',
    				'video',
    				'audio',
    				'oyun',
    				'kurs'
    				)
    		);

    I am extending twentyfourteen and this is my child theme. I am not sure twentyfourteen filters. Checking them also.

    Thread Starter burakakin

    (@burakakin)

    I have found my answer, This is the solution :

    <?php
    							$attachment_id = get_post_thumbnail_id($post->ID); // attachment ID
    
    							$image_attributes = wp_get_attachment_image_src( $attachment_id,'portfolio-item-resized' ); // returns an array
    							if( $image_attributes ) {
    							?> 
    
    		                <div data-width="240" data-height="161" data-thumbnail="<?php echo $image_attributes[0]; ?>"></div>
    		                <div data-popup="<?php echo $image_attributes[0]; ?>" title="<?php the_title(); ?>"></div>
    		                <?php } ?>
Viewing 2 replies - 1 through 2 (of 2 total)