mihaiil
Forum Replies Created
-
Forum: Plugins
In reply to: [Facebook AWD All in one] [Plugin: Facebook AWD All in one] jquery issueThanks for the tip. it works 🙂
Hi Ahwebdev,
In which section should i paste the code?
Also, this is something i made in a hurry. maybe a better implementation of this is to assign thatstr_replace("\"","",$post->post_content)to a new shortcode which can be used %POST_CONTENT% .Hi corbettbarr,
As i didn’t have post excerpt for my posts and needed that og:description i did the following:
after line 957 in AWD_facebook.php i created a new variable
$desc = str_replace("\"","",$post->post_content);and then on the following line, the one with$array_replace, i have inserted my variable after$home_url:
$array_replace = array($blog_name,$blog_description,$home_url,$post->post_title,$desc,$img,get_permalink($post->ID));
After these code changes i left that %POST_EXCERPT% command in Open Graph settings(in the plugin) and it works like a charm.Thank you so much :).
I’ve also voted for the plugin. Great job.