Saturday, October 15, 2022
HomeWordPress Developmentavatar - Tips on how to load regionally saved writer photographs based...

avatar – Tips on how to load regionally saved writer photographs based mostly on writer ID


I am on the lookout for a technique to enable the writer picture to be proven with out the writer having a gravatar account.

It appears this must be based mostly on writer id reasonably than e-mail.

Mainly I simply need to have the ability to be capable of add writer photographs to the default media library (date organisation is turned off). These might be named after the writer IDs, e.g. author23, author41 and many others..

Then on the writer’s archive pages name <?php echo get_avatar( get_the_author_meta( 'ID' ), 200 ); ?> and as an alternative of WordPress attempting and failing to search out a picture on gravatar, as an alternative load the related picture from the site_url/uploads/authorID

What I am scuffling with is create the operate for this.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments