• Resolved Thimo Grauerholz

    (@pr3ss-play)


    Hi,

    I’m just trying to implement some more settings to my wordpress plugin.
    Can you please update your documentation at https://rankmath.com/kb/filters-hooks-api-developer/. It seems Opengraph -> 1. Filter to change OpenGraph Type ( og:type ). and 2. Filter to change OpenGraph URL ( og:url ). are the same, it would be wonderful if you could update them.

    Could you please do me another favor and tell me how to change the og:image, not add_filter('rank_math/opengraph/twitter/image' and add_filter('rank_math/opengraph/facebook/image' of course ??

    Cheers
    Thimo

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Rank Math SEO

    (@rankmath)

    Hello @pr3ss-play

    Thank you for contacting the support and sorry for the inconvenience that might have caused.

    We have updated the article.

    For changing the image you can use the following filter:

    add_filter( "rank_math/opengraph/{$network}/image", function( $attachment_url ) {
        return $attachment_url;
    });

    Where $network = facebook or twitter

    Hope that helps. If you have any further question(s), please let us know.

    Thread Starter Thimo Grauerholz

    (@pr3ss-play)

    Changing the main og doesn’t work.

    
    <meta property="og:url" content="https://localhost/wordpress/?page_id=36&product=gute-nacht-schafe-zahlen-poster-40x60-cm-5b6d61085fd3e42e77338af0-1305-1">
    <meta property="og:updated_time" content="2019-01-17T03:19:25+00:00">
    <meta property="og:image" content="https://localhost/wordpress/wp-content/uploads/2018/10/705originalbluelast2.png">
    <meta property="og:image:width" content="1800">
    <meta property="og:image:height" content="1200">
    <meta property="og:image:alt" content="Dinos">
    <meta property="og:image:type" content="image/png">
    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:title" content="Gute Nacht Schafe z?hlen | Dinos -">
    <meta name="twitter:description" content="Kennst du es auch? Man kann nicht einschlafen. Warme Milch, Kekse, alles schon probiert. Jetzt kann man nur noch Schafe z?hlen. Ein sch?nes Motiv für Bodies oder Schlafanzüge für Kinder. Poster 40x60 cm (Hochformat), gedruckt auf seidenmattem Fotopapier. Marke: Spreadshirt">
    <meta name="twitter:image" content="https://image.spreadshirt.net/image-server/v1/products/T1305A1PA3317PT24X0Y0D150387257FS4468/views/1,width=800,height=800,appearanceId=1,typeId=1305">
    

    as you can see, twitter image is changed, but not og:image

    Plugin Author Rank Math SEO

    (@rankmath)

    Hello @pr3ss-play

    Sorry for a delayed response.

    It seems like an issue in the plugin and it will be fixed in an upcoming update releasing this week.

    We seek your patience and understanding in this matter.

    Thank you.

    Thread Starter Thimo Grauerholz

    (@pr3ss-play)

    @rankmath Thank you!

    Plugin Author Rank Math SEO

    (@rankmath)

    Hello @pr3ss-play

    Apologies for an unwanted delay releasing an update.

    Can you please update to the latest version, 1.0.21?

    That should resolve the issue for you.

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘API Documentation’ is closed to new replies.