WordPress.org

Forums

if else within foreach not working (2 posts)

  1. Rakesh Raja
    Member
    Posted 3 years ago #

    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

    http://pastebin.com/yMuVr7Re

    Regards

  2. Rakesh Raja
    Member
    Posted 3 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic