Photo Links Broken on Subdomain
-
Hello everyone,
I’ve been using PHP for over a decade but this is my first time working with WordPress. I’m rather stumped.
My client has an existing WordPress website they’ve asked me to fix. I’ve set up a test version of the site on a subdomain on the same server and have the site up and running now. Unfortunately the photo links in their custom theme are broken on the test site and I have no idea how to troubleshoot. Here’s the code:
Excerpt from page-templates/home.php
<?php $photo_links = array(); if(get_field('photo_links')){ while(has_sub_field('photo_links')) { $photo_links[] = array( "title" => get_sub_field("title",""), "image" => get_sub_field("image",""), "page_link" => get_sub_field("page_link","") ); } } ?>
get_field(‘photo_links’) returns “6” and has_sub_field(‘photo_links’) returns nothing, thus $photo_links is never populated.
Any idea where I’d look to get this working?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Photo Links Broken on Subdomain’ is closed to new replies.