Order of output changes in php echo

后端 未结 1 1613
Happy的楠姐
Happy的楠姐 2021-01-27 06:41

Hopefully this is a simple fix, for some reason when I run this. I am running wordpress and using the advanced custom fields plugin

echo \"Tickets Start at CA$\"         


        
1条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-27 07:22

    Indeed, as @smith says the_field() displays the value of the field. You want to use get_field() instead which returns the value instead of displaying it.

    0 讨论(0)
提交回复
热议问题