Home › Forums › General Issues › Very slow work › Reply To: Very slow work
Hi @danield
Can you please debug your code line by line to find out where the issue is?
a simple debug method is this:
<?php
$variable = 'somthing';
echo '<pre>';
print_r($vairable);
echo '</pre>';
die;
?>
The print_r / die will stop the page from running and display the contents of a variable. You can use this to check the dat on each line of your code.
Perhaps also simplify your code to just 1 loop and remove all code from within the loop.
Removing block of code is a quick way to find the line which causes the issue.
Continue removing code until the issue is fixed. Then you can experiment with debugging to figure out why that line is the problem.
If this is to hard, please consider hiring a freelancer to debug your code.
Thanks
E
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.