Viewing 1 replies (of 1 total)
  • Thread Starter engloy

    (@engloy)

    Found the culprit. The plug-in script is supposed to insert code for a hidden map: <div id="test_map" style="display:none" ></div>. From what I understand from the plug-in’s php script, this is achieved via a function called thickboxmap_div, and that function is added by this line add_action('loop_end', 'thickboxmap_div');

    Somehow the plug-in adds in the code on the pages generated on index.php but not for the singlepost.php pages. I am not sure whether if there are problems with loop syntax in the singlepost.php pages but they have been working well previously.

    My temporary solution is to add the test_map code by hand into the template for singlepost.php. I don’t think that has affected any functionality blog-wise (in fact, it has solved the problem that I set out to solve initially) although it is not the most elegant solution.

    Anyone with ideas to solve the problem via modification to the underlying code?

Viewing 1 replies (of 1 total)
  • The topic ‘Similar HTML code in two pages, but script error on one, why?’ is closed to new replies.