Optimizing a WordPress site

Functions and shortcodes that are never used, eat some processor time at launch, as WP is registering their existence. Deregistering them would take up some additional (and minimal) processor time. Because they are loaded with functions.php they will reside in memory, either registered or deregistered. Which amounts to the same, as the code is never … Read more

Load Post into DIV with Ajax

First of all you need to register a action callback for you ajax request. Secondly you need to send all ajax request to wp-admin/admin-ajax.php (both GET and POST). And lastly you need to modify your javascript a little to pass the action parameter which will trigger the callback. and var post_link = $(this); doesn’t gives … Read more

Need help getting a function to function

Your code is based on jQuery and you are including it to a PHP file. So you need to call it between <script></script> tag and obviously either you must end and start PHP tags before <script> and after </script> or echo the full script. Now come to how you are gonna execute the code. You … Read more