Support » Themes and Templates » If/else is killing me, something smarter?

  • Hi there

    Im kinda new to both WordPress and PHP, so this is kinda uphill right now. I managed to do a if-elseif-else that works perfectly, but now im stuck with some more advanced stuff.

    I have a field called ArticleLink. This contains a url either starting with http://, http://www., both or none of them.

    What I would like is a function to do at check and make the outcome a valid url starting with http://www. regardless how it starts

    How do I do that?


Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘If/else is killing me, something smarter?’ is closed to new replies.