• Resolved macfo

    (@macfo)


    Hi, Opajaap

    I have conflicts with share tags photos with those of the posts.

    but if I change in this way, it all works.

    Try to use this change,

    in wppa-not-admin.php from line 45 to 83, change with this:

    /* SEO META TAGS AND SM SHARE DATA */
    add_action(‘wp_head’, ‘wppa_add_metatags’);

    function wppa_add_metatags() {
    global $wpdb;
    global $wppa_opt;
    global $thumb;

    // Share info for sm that uses og
    $id = wppa_get_get(‘photo’, ‘0’);
    if ( ! is_numeric($id) ) $id = ‘0’;
    if ( get_option(‘wppa_og_tags_on’, ‘yes’) == ‘yes’ ) {
    wppa_cache_thumb($id);
    if ( $thumb ) {
    $title = wppa_get_photo_name($thumb[‘id’]);
    $imgurl = wppa_get_thumb_url($id);
    $desc = wppa_get_og_desc($thumb[‘id’]);
    $url = wppa_convert_to_pretty(str_replace(‘&’, ‘&’, wppa_get_image_page_url_by_id($thumb[‘id’], $wppa_opt[‘wppa_share_single_image’])));
    $site = get_bloginfo(‘name’);

    echo “\n<!– WPPA+ Share data –>”.’
    <meta property=”og:site_name” content=”‘.esc_attr($site).'” />
    <meta property=”og:type” content=”article” />
    <meta property=”og:url” content=”‘.esc_attr($url).'” />
    <meta property=”og:title” content=”‘.esc_attr($title).'” />
    <meta property=”og:image” content=”‘.esc_attr($imgurl).'” />
    <meta property=”og:description” content=”‘.esc_attr($desc).'” />’;
    echo “\n<!– WPPA+ End Share data –>\n”;
    }
    }

    Let me know

    https://www.ads-software.com/plugins/wp-photo-album-plus/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘conflict share tags in post’ is closed to new replies.