وردپرس

Shortcode issue with ‘start’ | WordPress.org


The example code it admin-shortcode.php says to use hh:mm:ss style, but a singular integer seconds time index seems to work instead. A colon separated value does not work in the shortcode. Integer / seconds is preferable as that is how the YouTube share button returns. Using colons requires extra code translation from a ACF number field. So really the shortcode acts as it should, but the documentation in admin-shortcode.php seems incorrect. Just a heads up as I wrote some translation code to colon format only for it not to work / be a waste of time to debug.

[youtube v=”XXXXXX” start=”00:34″]

این خبر را در ایران وب سازان مرجع وب و فناوری دنبال کنید

مشاهده پاسخ های این مطلب
———————————————
این مطلب از سایت انجمن وردپرس گردآوری شده است و کلیه حقوق مطلق به انجمن وردپرس می باشد در صورت مغایرت و یا بروز مشکل اطلاع دهید تا حذف گردد

منبع: انجمن وردپرس

دکمه بازگشت به بالا