term_description / category_description error insert youtube

#45591
  • Resolved Dinhs
    Rank Math free

    Hi Team,

    I have insert youtube by Media but when Update taxonomy Clean iframe insert.

    I paste url youtube play that ok but echo do_shortcode(category_description($term_id)) not play youtube. show only url of Youtube

    Any idea for help me.

    • This topic was modified 5 years, 7 months ago by Dinhs.
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.

    I am sorry but it is not very clear from your description what you are trying to achieve and which field you are currently editing.

    Kindly share a few screenshots of the pages which you are editing via https://imgur.com/ and some details where you are adding the code so that we can be in a position to help.

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Dinhs
    Rank Math free

    Hi,

    In my taxonomy=category i have insert Youtube
    https://imgur.com/a/Il3IQz7

    But Update Category my insert is disappear.

    I have add url as https://www.youtube.com/watch?v=ID is run. but i echo do_shortcode(term_description($term_id)) show only url as https://www.youtube.com/watch?v=ID not show iframe Play Youtube.

    Any idea for help me.

    Thanks

    Hello,

    Thank you for contacting Rank Math today.

    The native Rank Math variables cannot be used as shortcodes on your templates. These are merely replacement variables that will return a string.

    You will need to write some code to display the videos in an iframe. You can create a custom shortcode using the following function: https://developer.wordpress.org/reference/functions/add_shortcode/

    Looking forward to helping you. Thank 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 ‘term_description / category_description error insert youtube’ is closed to new replies.