SIERRA Posted April 25, 2018 Share Posted April 25, 2018 I am using a options with in repeater as below. Repeater is: normal_days Options field inside repeater is : tables Options are: table 1, table 2, table 3 To display them in front end I am using loop as below.But this display the values 3 times (like table 1, table 2, table 3, table 1, table 2, table 3, table 1, table 2, table 3) foreach ($page->normal_days as $normal_day) { foreach ($normal_day->tables as $table) { echo $table->title.","; } } Please suggest how can I fetch this Thanks Link to comment Share on other sites More sharing options...
johndoe Posted April 26, 2018 Share Posted April 26, 2018 Shouldn't it be: foreach ($page->normal_days as $normal_day) { echo $normal_day->tables.","; } Also check: Repeatable Fields / Matrix Fields Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now