This topic has 6 replies, 2 voices, and was last updated 8 years, 9 months ago ago by Jack Richardson
I am getting :More Than One OG URL Specified when fetching facebook data.
When I use Facebook Open Graph, Google+ and Twitter Card Tags (1.7) I am getting the error above.
When I turn off the plugin it goes away
I turned all plugins and turned on the facebook open graph plugin I get the error again.
The theme is giving out this : og:url already.
What can I do to fix this.
Hello,
You can remove default open graph code in the theme file wp-content/themes/legenda/framework/theme-functions.php (lines 1307-1311).
Best regards,
Jack Richardson.
Is this the code:
$text = str_replace(‘]]>’, ‘]]>’, $text);
$text = strip_tags($text);
$excerpt_length = apply_filters(‘excerpt_length’, 55);
$excerpt_more = apply_filters(‘excerpt_more’, ‘ ‘ . ‘[…]’);
$words = preg_split(“/[\n
Hello,
No, the code is:
echo '<meta property="og:title" content="' . get_the_title() . '"/>';
echo '<meta property="og:type" content="article"/>';
echo '<meta property="og:description" content="' . $description . '"/>';
echo '<meta property="og:url" content="' . get_permalink() . '"/>';
echo '<meta property="og:site_name" content="'. get_bloginfo('name') .'"/>';
Best regards,
Jack Richardson.
I do not see the code wp-content/themes/legenda/framework/theme-functions.php (lines 1307-1311).
Is this correct location?
Hello,
As I see you’re using old theme version, so in your case the lines are 1280-1284.
Best regards,
Jack Richardson.
You must be logged in to reply to this topic.Log in/Sign up