Posts Tagged ‘Wordpress’

WordPress Custom post type and pagination problem – Error 404

Sunday, December 11, 2011 0:26 No Comments

1.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; [...]

This was posted under category: Wordpress Tags: , , , , , ,

WordPress running on IIS and ugly permalinks starting with index.php

Wednesday, November 3, 2010 12:27 No Comments

You 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)

This was posted under category: Web, Wordpress Tags: , , , , , , , ,

Move WordPress to a new domain / location

Tuesday, May 25, 2010 0:25 No Comments

How 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, [...]

This was posted under category: Wordpress Tags: , , , ,

WordPress – Weird characters after wordpress upgrade

Saturday, January 16, 2010 23:02 No Comments

If 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!

This was posted under category: Wordpress Tags: , , , , , , , , , , , , ,

WordPress 2.7 – Missing the Visual Editor

Tuesday, June 2, 2009 21:07 No Comments

After 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 [...]

This was posted under category: Wordpress Tags: , , , , , , , ,