I have an issue with this function http://pastebin.com/JSxsQKQt
What the function does is to replace the shortcode from a page with specified post title. The shortcode from the page is like [[
123]] , where
123 is the ID of the post.
It works but needs a little tweaking and my php skills suck.
It returns the titles like
<li> title </li> but I want all the
<ul> ... </ul>.
return $content; returns not just the
<li>title</li> but also the content of the page where the shortcode is .
Anyone can help ?