Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: while() and newline (\n), how does it make sense?

Discussion in 'Misc WordPress Requests' started by Mr Case, Mar 23, 2018.

  1. Mr Case

    Guest

    Reply To: while() and newline (\n), how does it make sense?, by Mr Case

    can you try this? just switched one of the functions and changed the logical operator.

    $activities_label = get_post_meta(get_the_ID(), 'activities_label', true);

    while ($query->have_posts()) {
    if (strpos($activities_label, "\n") !== false || false !== strstr($activities_label, PHP_EOL)) {
    echo $activities_label;
    }
    }

    and sorry, but i’m and old fashioned curly brackets kind of guy, not one of those new line, curly brackets guys though…those guys are weird

    Reply To: while() and newline (\n), how does it make sense?
     
    #1

Share This Page

Monarch Social Sharing Plugin