Print page content with formatting when doing custom SQL query

You need to run the post_content filters. It is a one line change from your current code. This… echo $footerElement->post_content; … should be … echo apply_filters(‘the_content’,$footerElement->post_content); That will give you all the same formatting as with normal posts. You can of course pick and choose which filters you want to run, instead of running them … Read more

Getting A Link below footer – Want to remove it. How?

Search all your theme and plugin PHP files for the string “wp_footer”. Adding this as an action hook to a function allows themes and plug-ins to insert code at the bottom of the footer (without modifying footer.php.) Notepad++ can do a multi-text-file search, as can gerpWin.

Absolutely print script in footer

Cannot be overwritten Cannot be removed/filtered This will be done by a plugin. These are mutually exclusive. Such a thing can’t be done by a plugin or by any other code from within WordPress. You would need to hook code in elsewhere, at the webserver or PHP level. You could use the PHP.INI directives of … Read more