Forums

if else within foreach not working (2 posts)

  1. rakeshraja
    Member
    Posted 8 months 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. rakeshraja
    Member
    Posted 8 months 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

Reply

You must log in to post.

About this Topic