Вопрос

I want to use attachment IDs for shortcodes, but if the image is published with a permalink, it's harder to find the ID.

I've found some functions online that can turn the attachment url into its ID, but that's ridiculous if I have to use a function every time I want to use the shortcode in my posts.

Trying to do: [stuff include="1,4,55"]

Instead of: [stuff include="http://www.example.com/wp-content/uploads/etc..."]

Нет правильного решения

Лицензировано под: CC-BY-SA с атрибуция
Не связан с wordpress.stackexchange
scroll top