Video schema advanced configuration errors

#240237
  • Resolved Nuno Gonzales
    Rank Math free

    1. uploadDate “\” problem
    %date(Y-m-d\TH:i:sP)% not working.
    %date(Y-m-d\\TH:i:sP)% is working.
    Rank Math automatically deletes one line "\"
    All rank math users have been experiencing this problem for months. (those who use video schema)
    If we add an extra “\” it works.

    2.Customfield "@type": "WatchAction" it doesn’t show up in the schema.(Advanced Editor Manual Add)
    "interactionStatistic": {
    "@type": "InteractionCounter",
    "interactionType": {
    "@type": "WatchAction"
    },
    "userInteractionCount": "%customfield(views)%"

    output ;
    "interactionStatistic":{"@type":"InteractionCounter","userInteractionCount":"154102"},

    3. The "isFamilyFriendly": "False" code we added with the advanced editor always comes back as True.

    output; "isFamilyFriendly":"True"},

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    It looks like the uploadDate throws an error when the Site language is Persian. I was able to reproduce the issue and have logged it. Please allow us some time to test and release a fix.

    For now, to fix the issue on your site please add the following code in your theme’s functions.php file:

    
    add_filter( "rank_math/snippet/rich_snippet_videoobject_entity", function( $entity ) {
    	global $post;
    	$entity['uploadDate'] = mysql2date( 'Y-m-dTH:i:sP', $post->post_date, false );
    	return $entity;
    } );
    

    This should fix the issue.

    I hope that helps.

    Hello.
    The site is not Persian, but the Latin alphabet is used.
    We somehow solved the uploaddate problem, but the other 2 problems cannot be solved at all. Have the developers been notified of these issues?
    Thank you for your interest.

    Hello,

    Yes, our Developer mentioned that he has logged this issue. Please allow us some time to test and release a fix. We will send an update to this ticket when we release an update.

    Thank you for your patience and please don’t hesitate to contact us anytime if you need further assistance with anything else.

    Looking forward to helping you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)

The ticket ‘Video schema advanced configuration errors’ is closed to new replies.