Hey Amit ! Thanks for sharing this.
Thank you very much Chris and Amit for sharing the links here. I have already used Chris’s optimization tricks and it has helped me a lot to achieve very good performance results.
I will try Amit’s method too soon.
Thanks again 🙂
Again f0r last 5 hours, I am trying different code combinations to call for the get_avatar like :
<?php echo get_avatar( get_the_author_meta( $field, $user_id ), 42) .
<?php echo get_avatar( get_the_author_meta('user_email'), $size = '42')
But all of them is returning the same “default avatar” 🙁 I am unable to understand what should I do. Read hundreds of threads online.
Suprisingely , a post with style template-9 ( video post) is showing the correct small author image. ( click here for one sample post) There is something related to the way I put these codes. Though I tried many times by carefully placing the code.
Do you want to give a look to it? Let me konow so that I can send you login credentials. Thank you.
Perhaps the code is :
<?php echo get_avatar($part_cur_auth_obj->user_email, '96'); ?>
But it’s not working either 🙁
Can you tell me from which file, this author image has been called here so that I can use the same get_avatar image code here too : https://i.snag.gy/XKYWOp.jpg
Thank you
Update: Sorry! it didn’t work. It shows the image of author who is logged in.
Hi Bogdan,
After continuousely struggling for 5 hours and playing with various code combinations, finally my problem get solved.
Here is what I needed to do : I need to replace
<?php echo get_avatar(get_the_author_meta( 'ID' ), 42 ) .
with
<?php echo get_avatar($current_user->ID, 42) .
I don’t know why it can not call the previous code but this is what actually worked for me. So, the final code under single_template file will look something like this:
<div class="td-module-meta-info">
<?php echo get_avatar($current_user->ID, 42) . $td_mod_single->get_author();?>
<?php echo $td_mod_single->get_date(false);?>
<?php echo $td_mod_single->get_views();?>
<?php echo $td_mod_single->get_comments();?>
</div>
Here is the snapshot: https://i.snag.gy/Qtqlp3.jpg
I got the idea for searching this code, because I can see that newspaper theme is correctly extracting the right author image under TOP menu and other places so, I looked for Get_avatar call under top-menu.php and hence I found this code.
Thank you very much Bogdan for all the help. 🙂 🙂
PS: writing in detail here for the benefit of other community users. I know you don’t want such silliy details.
Oh! Thanks.. If possible ,try to include the link here because it will be hard to discover your thread later and I won’t be able to know when should I look for it 🙂
Cheers.
Perhaps you had used smartlist 7 code from the recently updated Newspaper version which contains retina image features ( few codes used to retrieve retina image ). So, first it didn’t work for me but then I changed the code a little and only moved this file to a new place ablve // render the pagination
//adding description
if(!empty($item_array['description'])) {
$buffy .= '<span class="td-sml-description">' . $item_array['description'] . '</span>';
}
$tds_smart_list_7_title = td_util::get_option('tds_smart_list_7_title');
// ad smart list 7
$buffy .= td_global_blocks::get_instance('td_block_ad_box')->render(array('spot_id' => 'smart_list_7', 'spot_title' => $tds_smart_list_7_title));
and it worked. 🙂
Thank you.
Few more thing.
Isn’t it possible to get things in under the list in the same order as it is written .
I mean, First I write the title in H4 and hence smart list will detect that a new listicle number has started . Now I write 2 sentences and then a image and then 2 more sentences. How can I get published list in the same order.
For now, it either shows image first after the title or at the end and bring all written text at one place.
How can I position my texts at different place? Suppose for intro, I want few texts before the image and for end, I want few texts after the image.
I hope you are getting what I am trying to say.
Thank you.
Hi kstockl,
I tried but since now you have disbaled Modal login , so I am not able to reproduce that error. The error that I have mentioned here is directly related with Modal login popup.
Though what you have done is also very interested specially in case when we don’t want Spammers to login and to aslo enable Social login options.
I will surely try to use the method you have explained above oneday.
Hi Amit,
Thank you. Yes I have already started using Mashshare for last one week but I always try to reduce the number of plugins as much possible since I already have 25 active plugins on my website 🙂
Hey Bogdan,
I am facing some issues with my SFTP login. As soon as I get access to it , I will quickly check your modified code .
Thank you very much 🙂
Hi kstockl
I just registered to your website to check the login modal redirect issues that I am facing since I installed Newspaper theme. Here is the related thread:
I tried all possible solution but unable to fix it, but when I checked it on your website, I noticed that after successfully logging in , if someone tried to open user profile ( /wp-admin/profile.php) or dashboard ( ( /wp-admin/), it redirects to the login page again, even when I was already logged in.
Hey TagDiv, shouldn’t you look into this issue again? I doubt that this issue is being faced by many of us. So, please.
Thank you.
-
This reply was modified 9 years by
Nano.
Hey Amit,
Why don’t you let us know about those some modifications that you did with .htaccess to get 100% Pagespeed score?
You may write the codes here or use pastebin.com to do so.
Also, have you made any further changes in functions.php or any other core files? Are settings for CloudFlare and WP Super cache is still what is described under the linked articles on Tagdiv?
Be more specific and don’t hesitate to share your optimization techniques that actually worked.
This community is a great place to help each other 🙂
Thank you.
🙁 I am really sorry to trouble you again and again.
Now I have to look for the reasons. I literally have no idea why it’s happenning. May be I should run “Forced Regenerate thumbnails once.
Thank you for all your help.
Hello Bogdan,
As I can see here, under your setting – http://screencast.com/t/I2zJ1ylaaRG,the author image thatappears on the front end is the default image you set for the avatar. My website is a multi-author website and all of them showing the default image ( in my case default image is the tomatoheart square logo), not their own image and that’s the issue.
And this is why under both kind of settings, you are able to get the same image. If you really want to understand my issue. Make a different author, upload a different ( different than default image) for the new author and see if you are getting the same result on the front end.
For example- Here is my defualt author image setting setting: https://snag.gy/E0khcp.jpg , this is the setting of a different author Nit: https://snag.gy/sZeJIf.jpg and still this is how I still see the default image on the front end , not her own picture: https://snag.gy/lbhFKQ.jpg
and yes, I will try to implement the code as you said here http://screencast.com/t/CqT6BPe0nJ using Adobe Edge Code CC, which I use. I hope it will work as fine as notepad++
“If for example you have an image inside an h3 tag that will mot likely break the layout as the smartlists need the h3 or the tag you set in order to create the titles.”
This might be the case with me and I will look into it. Thank you for all your valuable inputs 🙂
Cheers!
Oh.. but then why does it with other template like when I select “style-2 post template” and any other smart list template?
Let’s end this with an attempt to bring smile on your face 🙂

Yes! I do understand you and will continue till we remain part of this amazing community.
Thank you.
Hi Bogdan, the wholepoint of using this avatar, not gravatar is to load author images from local host, not gravatar host which slows down the site speed a little based on GT matrix score.
In your test, probably you didn’t check this option which says to “Disable Gravatar and use only local avatars” here https://i.snag.gy/gOWUVa.jpg because if you won’t check, the theme will load both local avatar and user avatar.
Now the plugin user guide says here to manually replace get_avatar with get_wp_user_avatar to make the local avatar work. the whole things has been explained here
Now please tell me if you can get the small author image with check marking “Disable Gravatar and use only local avatars” and also without manually replacing the get_avatar with get_wp_user_avatar ?
If no, please tell me where should I make this change in our theme. Thank you.
Oh! Okay! Understood!
Thank you. 🙂
Hmm.. Okay ! I get it.
Thank you for suggesting about hiring a developer ( pun intended ) and yes I know about support policies very well.If the would have taken it literally, I or none of other members had ever felt the awesomeness that gets in various amazing threads here.
Being associated with WordPress for long for I know that the customizations that I asked for here don’t need more than 5 lines of simple CSS ( about changing the position of ” Create an account” button ) but since there is no legal boundation to help for this based on support policy, you have all the right to deny or say No.
On a serious note, I do understand that dealing with so many things by a small team of developers can really be tough so I have nothing but respect and praise for all you guys,
I will surely figure it in someway.. because I will be made if I had to hire a developer for this.
Thank you 🙂
Okay..I continued researching and I found that it started woring because while doing some tweaks, I had changed the general post template from style-2 ( my default template ) to style-5 ( smart list recommended style)
Means the borken sidebar still appears in the combination of ( style-2 post template + style-2 smart list) but not with ( style-5 post template + style-2 smart list)
Any comment on it.
Thank you.
I don’t know how.. but I played with changing smart list style options and finally again style-2 , but as of now, the sidebar appears correct. I don’t know why it was happenning and how it is correct now.
There should be no caching issues because it is set to show live version for the admin. Let me know if you have anything to say for this behavior.
Thank you.
Hi Bogdan,
Recently I disabled default Gravatar option from Dashboard setting and started using recommended plugin “WP User Avatar” with option to display locally uploaded Avatars.
Though it’s working fine for Author card but now I am unable to see the same author image for the “author image” that we have created below post title based on codes written above. It’s showing the Default author image ( my logo ) I set under WP User Avatar.
Shouldn’t WP User Avtar support this author image too? Do we need to do any modification in code to make it grab author image from WP user avatar?
Kindly help.
Thank you.
Hey Chris,
Thanks again 🙂
This time, it was really easy for me to comprehend whatever you said above.
I received a quick response from my hosting provider saying that they are looking at my suggestions and will see what can be done. But they also repeated that they are not going to change the configuration of the entire server based on individual requests.
Let’s see what happens. Right now I have actovated the Super cache + cloudflare and I am getting pagespeed score of 90+ I will wait for their reponse and then re-look at everything I learn here.
And yes, I am a regular visitor of WPBeginner, WPMU etc. In fact, recently I tweaked my login page without using any plugin based on a nice post on WPMU 🙂
Cheers,
Nano