I'm writing a WordPress plugin that is also my first foray into writing my own PHP functions. (I've been using PHP for 6 years, but was always too intimidated to try my hand at custom functions.) Anyway, it's pretty simple, and sometimes works fine, but more often than not I get the following error: Code: Fatal error: Maximum execution time of 30 seconds exceeded in /home/gobecky/public_html/gobecky-net/wordpress/wp-includes/plugin.php on line 274 The script referenced is one of the core WP files, and I haven't touched it in any way. It's clear that it's my plugin, though, because removing the function call lets the page load just fine. For the sake of a short post, here's a link to my script: plugin.txt And here's how I'm calling it: Code: prevNextByCat('','','<div class=\'chunk\'><ul>','</ul></div>','<h3><span>Browse</span> / in ','</h3>'); Any insight would be much appreciated!