Archive | wordpress RSS feed for this section

Import data wordpress

31 Oct

Useful little checklist if you are having problems uploading sample data

Demo Content Fails: Seems Like An Error Has Occurred

Open LDAP not installed

27 Apr
apt-get install php5-ldap

Allow any file upload WordPress

26 Apr

So today I built a profile management server which is basically wordpress running on the excellent turnkey appliance, to get the .mobileconfig profile payloads uploaded I needed to edit my wp-config php file.

To do this connect via webmin or ftp, browse to your config file and add the following line below πŸ™‚

Allow All File Types

There are two ways to override this. The easy way is adding the following line into your wp-config.php


Allow Specific File Types

The other way is to add custom WordPress hook in your themes functions.php file

add_filter('upload_mimes', 'custom_upload_mimes');
function custom_upload_mimes ( $existing_mimes=array() ) {
 // add your extension to the array
 $existing_mimes['deb'] = 'application/x-deb';
 // add as many as you like
 // removing existing file types
 unset( $existing_mimes['exe'] );
 // add as many as you like
 // and return the new full result
 return $existing_mimes;

The second method is better because you can restrict only the file types you want, but if you have site where your publishers upload may types of document you can disable the restriction from wp-config.php

Link Page or Post to URL in WordPress

23 Sep

WordPress Plugin to Link Post and Page Titles To External URL

If you don’t want to play with the code to implement the functionality to link post titles to external url in WordPress, you can use this great plugin called Page Links To. This plugin adds a custom meta box to each of your WordPress posts and pages which lets you link it to any external URL.

page links to

Embed Google Maps into WordPress Site

27 Feb

May sure you switch to text editing as opposed to visual, you can then copy and paste the embed code from Google πŸ™‚

Repair Database – WordPress

13 Feb

To allow use of this page to automatically repair database problems, please add the following line to yourwp-config.php file. Once this line is added to your config, reload this page.

define('WP_ALLOW_REPAIR', true);

Another way of linking a page in wordpress

12 Feb

Plugin that works on both wordpress and buddypress platforms

Page links to can be downloaded from here

Make Page a link in WordPress

24 Dec

A page tab can work as a link to another webpage. The way to do that is publish a blank page with a link to that webpage in its title box. Html code model:


ldap for wordpress

3 Dec

if you ever get this message when trying to bind to ad

run from console;

apt-get install php5-ldap