wordpress

How to enable multi user support in WordPress 3.0

7

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.

magnifying-glass copy

Disable default WordPress search query

1


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 avois this, you need to use the following code:

SearchReplaceSheet

Search & Replace via command line in Linux

0

I needed to replace domain name in MySQL DB dump which was 700MB, so i’ve googled a bit to find a command line expression. If you need to search/replace in files via command line, you can simply use following command (if perl is installed):

perl -pi -w -e 's/search/replace/g;' *.php
-e means execute the following line of code.
-i means edit in-place
-w write warnings
-p loop

For example we can replace css link in all template files:

Go to Top