wp query - how to get custom attachment url?

Is there a common method to get a custom attachment URL regardless of the plugin or custom code used?Say if I use ACF pl

Is there a common method to get a custom attachment URL regardless of the plugin or custom code used?

Say if I use ACF plugin I can create an image field and get the url with get_field('fieldname');

if it is WordPress featured image i use get_the_post_thumbnail_url();

for wocoommerce it has, it's on method

if I create a custom meta field for image...is there any loop function to get the URL for the uploaded images?

like some_function('field', 'size') which is common to all the above the method?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745492948a4630067.html

相关推荐

  • wp query - how to get custom attachment url?

    Is there a common method to get a custom attachment URL regardless of the plugin or custom code used?Say if I use ACF pl

    2小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信