Tag Archives: How-to

Remove unused shortcodes from post content


If you have installed some plugin that adds shortcodes like [shortcode id=1] (for example [nggallery id=4], [tweeetmeme id=4 section=Name] etc), one you remove that, this pieces of text will appear in your post content unprocessed (just appear like they are in backend). WordPress has it’s own Shortcode API, so managing them is very easy. So if you don’t plan to use it or just temporary disable, you can use a pretty simple function that you can add to any plugin or theme’s functions.php that removes any shortcode you want from post output:

How to enable multi user support in WordPress 3.0

Since version 3.0, regular WordPress and WordPress MU are merged into WordPress 3. All betas of WP 3.0 had Site Admin section in backend (even if upgraded from regular WordPress), but since RC and final release this option disappeared. It is a hidden part of WordPress 3.0 and has to be activated manually with a a few edits to a WordPress installations wp-config.php file. You need FTP or shell access to do it.

Disable default WordPress search query


If you’re going to implement your custom wordpress search (not wordpress native) on search.php template – for example using Google Custom Search or Bing – you might have everything working ok, but wordpress is still performing search queries to database which can slow down your site. This is because wordpress treats search.php template as search page, no matter what is inside and prepares post list before it’s loaded.

So to avoid this, you need to use the following code: