rickardl
Forum Replies Created
-
Forum: Hacks
In reply to: shortcode plugin fails to show twice and removes html from pageHi!
Yes you are correct it our own code, and I should have mentioned that it is an external db.
we use a singelton which probably explains why it does not reset properly. just thought I would post my “fix” in case anyone else comes across the same thing.
Forum: Hacks
In reply to: shortcode, cant have same plugin twice on a pageI found the solution, i wrote it up here
Forum: Hacks
In reply to: shortcode plugin fails to show twice and removes html from pageI found the solution
First off I had to write [fetch-reviews id=”1″]blah[/fetch-reviews] and [fetch-reviews id=”2″]blah[/fetch-reviews]
I don’t know why but that was step one.
Secondly In my shortcode function I did:
require_once(“dbinit.php”);I am not entirely sure why but on second run it failed there so using just require(“dbinit.php”); and everything worked just dandy.
Forum: Hacks
In reply to: shortcode, cant have same plugin twice on a pageAhh it was only an example in the actual page they arr in a list with some elements between them