• Hi,

    I’ve written a simple plugin (just to get my head around plugin development) that checks the_content and when it finds certain tags within it replace those tags with something else …

    I’ve got a debugging ‘echo got here’ thing in the plugin and it seems to be called everywhere except on the single.php page.

    I don’t have any other plugins running and cant figure out why it seems to work on the home page, on the category page etc. but just not on the single.php page … anyone help??

Viewing 1 replies (of 1 total)
  • In single.php, there may perhaps be a call for the loop.

    It will probably look like (‘loop’ , ‘single’)

    In this case, you would want to copy loop.php, make your edits and save it as loop-something.php

    Now, in single.php replace (‘loop’,’single’) with (‘loop-something’,’single’)

    Clear as mud? I hope this helps you because I don’t know much more beyond what I suggested.

Viewing 1 replies (of 1 total)

The topic ‘plugin not working on single.php but works everywhere else’ is closed to new replies.