ACF链接字段-值不可分割

时间:2019-05-15 20:55:10

标签: wordpress

我有一个services_repeater名称的ACF转发器字段。转发器具有几个子字段,例如一个称为title的子字段。 title提供了我设置为array的链接。这意味着我通常会获得一个提供URL,标题和目标值的链接数组。我有以下(与哈巴狗/翡翠一起):

        - if (have_rows('services_repeater')) :
            - while (have_rows('services_repeater')) : the_row()
                div(class="item")
                    img(src="<?php the_sub_field('image') ;?>", alt="")
                    div.header
                        h3
                            - the_sub_field('title')['url']
                            i(class="far fa-chevron-right")
            - endwhile
        - endif

问题在于,由于某些原因,URL值不可分割。无论我回应什么,我总会得到Example Title, HTTP://TEST.TEST,

我在做什么错了?

0 个答案:

没有答案