ScottAgirs
Forum Replies Created
-
Forum: Plugins
In reply to: [Fancy Admin UI] Page or Post Update does not workUPDATE:
Sorry, after further investigation and debugging, seems like this is actually an issue with Advanced Custom Fields PRO
Forum: Plugins
In reply to: [Login for WordPress] get_avatar_url returns the gravatar, instead of FB picHey @damian,
Thanks for your reply, that’s awesome!!
Just trying to figure out how to use it, haha – a true newbie here..function single_post_entry() { global $post; // get avatar with facebook id $fb_id = get_user_meta( $author_id, '_fb_user_id', true ); $fb_url = 'https://graph.facebook.com/' . $fb_id . '/picture?width=' . $size . '&height=' . $size; $author_id = $post->post_author; .. $author_avatar = $fb_url; .. echo '<div class=".."> <div class=".."> <img alt="" src="'. $author_avatar.'" class=".."> </div> ..
I tried to put the code you provided into a function and assign the function to a variable $author_avatar, but that didn’t work.
Would you be able to help solving this?
EDIT:
with this setup:
function single_post_entry() { global $post; // get avatar with facebook id // get avatar with facebook id if ( $fb_id = get_user_meta( $author_id, '_fb_user_id', true ) ) { $fb_url = 'https://graph.facebook.com/' . $fb_id . '/picture?width=' . $size . '&height=' . $size; } $author_id = $post->post_author; .. $author_avatar = $fb_url; .. echo '<div class=".."> <div class=".."> <img alt="" src="'. $author_avatar.'" class=".."> </div> ..
the src=”$value” of the img element on front-end is (unknown)
- This reply was modified 6 years, 10 months ago by ScottAgirs.
- This reply was modified 6 years, 10 months ago by ScottAgirs.
Update:
I just tried appending thelocation = /.user.ini { deny all; }
tosites-available/default
file and it did not work, had to add it to a domain-specific filesites-available/specific.com
!S
@pothi – awesome, thank you!
If I have several Server Blocks running on the same server, can I apply this to all of the Server Blocks by appending this line to server block in
sites-available/default
file?Cheerio,
S- This reply was modified 7 years ago by ScottAgirs.
- This reply was modified 7 years ago by ScottAgirs.
Hey guys, could anyone advise on what how to deal with this on Nginx servers?
Many thanks in advance,
Scott