Support » Fixing WordPress » implode error issue

  • Hello,
    When I open my error_log file i got errors

    [22-Mar-2018 13:17:55 UTC] PHP Warning: implode(): Invalid arguments passed in /home/************** on line 86

    I know what is this.. I put a code in my file and thats why its coming error. So I want to know that how I can fix my code.

    Here is the code.

    <?php global $post;
    $values = get_field('job_gender', $post->post_parent, true);
    if( $values )
    {echo implode(", ", $values)."";} ?>

    Can you please fix this code…

    Regards

Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘implode error issue’ is closed to new replies.