I have built a nav menu in wordpres using a posts GUID, and post title, I am taking only part of the title and to do this I am doing the following,
$casestudylist .= "<li class='subnav'><a href=".$v->guid.">". strstr($v->post_title, ":", true)."</a></li>";
however I get the following warning and cannot work out why:
wrong parameter count for strstr()
Basically I am trying to pull all the characters out of a string if they are before a :
.