• Hello Friends

    I am trying to get solution for getting variable output in the following code.. I am using following code and have used if else within foreach but thing is that.. variable output is not working if I call it within if else.. but if I use it out side of if else than it works ??

    check out the code at following URL

    https://pastebin.com/yMuVr7Re

    Regards

Viewing 1 replies (of 1 total)
  • Thread Starter Rakesh Raja

    (@rakeshraja)

    I found the problem WordPress automatically adding <p>

    can any one tell me how to disable it without any plugins and writing own function in functions.php file

Viewing 1 replies (of 1 total)
  • The topic ‘if else within foreach not working’ is closed to new replies.