Un utente ha chiesto informazioni su WP-PostRatings di Wordpress

errori di schema per i post di wp

Un utente ha chiesto 👇

Ecco i dati con errori, come testati https://webmaster.yandex.com/tools/microtest/

Lo strumento di test dei dati strutturati di Google non visualizza i dati


article
ERROR: The 'content' property of a meta tag can't contain a URL

    itemType = http://schema.org/Article
    headline = Nissan 240Z 3d model
    description = Nissan 240Z 3d model Nissan 240Z 3d model, classic Japanese car with Detailed exterior and interior, good for closeup renders. Pivots set for...
    datepublished = 2019-01-16T15:42:29+00:00
    datemodified = 2019-01-16T23:33:12+00:00
    url = http://animium.com/2019/01/nissan-240z-3d-model
    author = admin
    mainentityofpage = http://animium.com/2019/01/nissan-240z-3d-model
    image
        imageobject
        WARNING: Unmet requirement for transmitting data to Yandex.Images: contentUrl or image or thumbnail field missing or empty
        ERROR: The 'content' property of a meta tag can't contain a URL
            itemType = https://schema.org/ImageObject
            url = http://animium.com/wp-content/uploads/2019/01/Nissan-240Z-3d-model-150x150.jpg
            width = 150
            height = 150
    publisher
        organization
        WARNING: Unmet requirement for Yandex Business Directory structured snippets: address field missing or empty
        WARNING: Unmet requirement for Yandex Business Directory structured snippets: you must complete the telephone field for this type of organization
            itemType = https://schema.org/Organization
            name = Free 3d models
            logo
                imageobject
                WARNING: Unmet requirement for transmitting data to Yandex.Images: contentUrl or image or thumbnail field missing or empty
                ERROR: The 'content' property of a meta tag can't contain a URL
                    itemType = https://schema.org/ImageObject
                    url = http://animium.com/2019/01/
    aggregaterating
        aggregaterating
            itemType = http://schema.org/AggregateRating
            bestrating = 5
            worstrating = 1
            ratingvalue = 5
            ratingcount = 1

Autore del plugin

(@gamerz)

2 anni fa

Non sono sicuro di Yandex, dal momento che non è stato progettato. Cosa dice Google?

(@ free3dart)

2 anni fa

Ho ignorato l’errore yandex, ma Google dice che c’è un errore nei tag dell’articolo generati da wp-postratings

url
Il campo dell’URL richiede un valore.

ora sto usando il seguente codice nelle funzioni my.php ed elimina l’errore

add_filter( 'wp_postratings_site_logo', 'wp_postratings_site_logo' );
function wp_postratings_site_logo( $url ) {
    return 'http://animium.com/wp-content/themes/logo.png';
}

Questa risposta è stata modificata 2 anni fa da.

Was this helpful?

0 / 0

Lascia un commento 0

Your email address will not be published. Required fields are marked *