Archive for the ‘Wordpress’ Category
WordPress Custom post type and pagination problem – Error 404
Sunday, December 11, 2011 0:26 No Comments1.5hour of pure frustration. After registering a custom post type, slug “news”, and creating a page “news” to display the latest posts the pagination just wouldn’t work. I was always getting a 404 error. Setting the permalinks to default and back to the old setting solved the problem. $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1; [...]
WordPress running on IIS and ugly permalinks starting with index.php
Wednesday, November 3, 2010 12:27 No CommentsYou may have experienced when running WordPress on IIS that the permalinks have that ugly index.php included. Pretty way: www.mysite.com/2010/11/mypost IIS way: www.mysite.com/index.php/2010/11/mypost By tweaking the .htaccess and using some rewrite rules this can be fixed. (ISAPI_Rewrite required)
Move WordPress to a new domain / location
Tuesday, May 25, 2010 0:25 No CommentsHow to move WordPress to a new location in few steps. – move files, addapt .htaccess, wp-config.php if needed - backup database – run the following queries (replace old_url.tld, new_url.tld with actual data) UPDATE wp_options SET option_value = replace(option_value, ‘http://www.old_url.tld’, ‘http://www.new_url.tld’) WHERE option_name = ‘home’ OR option_name = ‘siteurl’; UPDATE wp_posts SET guid = replace(guid, [...]
WordPress – Weird characters after wordpress upgrade
Saturday, January 16, 2010 23:02 No CommentsIf you see weird characters after upgrading your wordpress version, the reason for that might be wrong character encodings. 1. Easy solution: – open wp-config.php for edit. – make sure you have empty values for define(’DB_CHARSET’, ”); and define(‘DB_COLLATE’, ”); 2. Convert all tables to UTF-8 – follow these steps. not tested yet!
WordPress 2.7 – Missing the Visual Editor
Tuesday, June 2, 2009 21:07 No CommentsAfter upgrading to wordpress 2.7, suddenly the Visual editor was missing. After doing a search about it on google, I realized that others had the same problem. Some suggested to reupload all the files, to turn off all plugins etc, but nothing helped. But the answer was easier then that. By clicking on the user [...]