Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialdandrew Merriweather
1,864 PointsNo return from code
Don't know why i'm getting errors with this code.
<?php
//this is the description of each area containing PDFs
$living = get_field( "living_desc" );
//this checks is the row has data
if( have_rows('living_skill') ):
//this is a repeater in a while loop
while ( have_rows('living_skill') ) : the_row();
//these are sub fields
$title = get_sub_field('title');
$file = get_sub_field('file');
?>
<p><?php echo $title ?></p>
<p><?php echo $file ?></p>
<?php
2 Answers
Joe Schultz
6,191 PointsAre you trying to use the $_GET superglobal to retrieve data? If so, you might want to double check your syntax. I also noticed that semicolons are missing on your echo statements.
dandrew Merriweather
1,864 PointsI was able to fix it, thanks for the help