Welling Guzman

Web & Software Developer

Writings and stuff

Custom Post Slug collapse with Page Slug in WordPress

Changing permalink on WordPress it’s never, well at least it never gave me any headache, but when I change /blog/%postname%/ to just /%postname%/ some pages fell apart, and I was blaming the .htaccess, deleting it, recreating, let WordPress rebuild it, did a flush_rewrite_rules(); and nothing was fixed. Then I notice it was all the custom post slug that matches the page slug.

MAMP MySQL Problem

Using the library node-mysql I found myself with an error that refused my node app to connect to an MySQL Database or in fact the server itself. At first I blame the library, searching and searching and I didn’t find any solution that leads me to fix error. Every time I tried a connection I always get the error : Error: connect ECONNREFUSED.

WordPress functionality in another PHP Project

I’m working on a Project using Laravel and I need to pull all the blog post from a WordPress site that is already on the same server.

Subdomain on a different server

I want to develop my first Node.js applications and host it as subdomain, but this server (shared on hostgator) does not support Node.js applications, and for a second I thought if I need to change server only for this?. But nope, there is a solution for this.

Control WordPress 404 Error

I have site built with WordPress and I wanted to catch all 404 page that WordPress try to display and make my own custom 404 page depending on the requested page, or in fact I just wanted to whether or not show a 404 page.