Help us understand the problem. What is going on with this article?

Custom Field Suite のループで配列の最初の要素を取得する

WordPressのプラグイン Custom Field Suite のループで、最初の要素を取得したい時のコードです。

<?php
  $loop = CFS()->get('loop');
  $loop_item = $loop[0]['loop_item'];
  echo $loop_item ;
?>

参考URL

Custom Field Suite でループ項目のn番目の画像があるかどうかでの条件分岐での不具合について

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away