vatsalthegreat
Forum Replies Created
-
Hi,
I was getting that error on wordpress.com page while connecting my facebook page. I managed to make it work by de-linking jetpack from my wordpress account and linking it again.
Now the auto-posts are working fine but there’s no option to tweak it anywhere, like in what style the post goes to facebook. Any chance of adding this feature in future?
Hi David,
I have sent you the mail. Kindly check whats wrong and send me a solution as early as possible.
Thanks alot.
Hi David,
Thanks for your reply. The parameter “get_the_post_thumbnail” you mentioned is not showing up the images at all, it removed the local images also.
See
https://postimg.org/image/ikrr7wienWhen I used, the_post_thumbnail, It gave me the images as earlier.
See
https://postimg.org/image/v0oh1nbqnIt is the similar solution which I mentioned. It doesnt show up images when I turn off that option,”Use first image as featured image” in the Theme settings page.
Kindly give me a code to get the external image without turning the first image theme option to on.
Regards
VatsalIt partially worked when I turned the option “Use first image as featured image” in the Theme settings page, and modified the code above like this:-
//$w = ''; $h = ''; if ( function_exists( 'uses_nelioefi' ) && uses_nelioefi( $pid ) ) { $image = the_post_thumbnail( $pid ); } else if( has_post_thumbnail() || mom_option('theme_thumb') != 1) { $thumb = get_post_thumbnail_id(); $image = vt_resize( $thumb, mom_post_image($size, $id), $w, $h, true );
But I am not fully satisfied with this tweak. If I turn off that option,”Use first image as featured image” in the Theme settings page”, the images disappear. Is there any other workaround/modification to the above code so that I can use any other external featured image other than the first one.
I somehow managed to fix the issue myself after 4 hours of research.
Modified the code above
<?php if( $display == 'blog' ): $count_recent++; ?> <article class="item-list recent-post<?php echo $count_recent; ?> recent-post-<?php echo $display ?>"> <?php if ( function_exists("has_post_thumbnail") && has_post_thumbnail() ) : ?> <div class="post-thumbnail"> <a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'tie' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"> <?php the_post_thumbnail( 'tie-large' ) ; ?> <?php tie_get_score( true ); ?> </a> </div><!-- post-thumbnail /--> <?php else: ?> <div class="empty-space"></div> <?php endif; ?>