WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Gallery
How to avoid duplicate descriptions meta with Next Galery (1 post)

  1. wordthem
    Member
    Posted 2 years ago #

    Right now I have all the galleries Next Gaelery duplicate Google Web Master Tools.

    This created a "pid = xxxx" to page the library and now I have 700 goals and duplicate title tags.

    Example of Google's webmaster:
    / fashion / the-fashion-autumnal-more-fashion.html? pid = 1211
    / fashion / the-fashion-autumnal-more-fashion.html? pid = 1212
    / fashion / the-fashion-autumnal-more-fashion.html? pid = 1213
    / fashion / the-fashion-autumnal-more-fashion.html? pid = 1214
    / fashion / the-fashion-autumnal-more-fashion.html? pid = 1215
    / fashion / the-fashion-autumnal-more-fashion.html? pid = 1216
    / fashion / the-fashion-autumnal-more-fashion.html? pid = 1217
    / fashion / the-fashion-autumnal-more-fashion.html? pid = 1218

    I have placed "canonical" in the pluguin All-In-One-Seo-Pack and also this code in head.php, It does not work for Next Gallery.

    <! - Home google duplicate descriptions meta ->
    <?
    if (is_category () | | is_tag ())
    {
    $ category = single_cat_title ('', FALSE);
    $ pagination = get_query_var ('paged');
    $ description = '<meta name = "description" content = "All articles". $ category.'';

    if ($ pagination! = 0)
    $ description. = 'page'. $ pagination.'';

    $ description. = '"/>';

    echo $ description;
    }
    ?>
    <! - End duplicate descriptions meta google ->

    I would appreciate someone could give me a solution.

    A greeting.

    http://wordpress.org/extend/plugins/nextgen-gallery/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic