Articles of site url

Proper way to have multiple installs with a single database

Here’s my scenario: I have a development zone with a standard WordPress installation ( When it comes time to showing work to clients, I use version control to copy the dev installation to a beta zone ( So, a pretty standard setup. They share the same database. However, using this method in wp-config.php on the […]

Change homepage url

is there any way how to achieve this? I’ve tried to google it, but I have no clue how to call it. – for whole web – homepage with news When I add I have to by directly redirected to It’s needed because some google analytics setting or so which will […]

Alternatives to site_url() and get_template_directory_uri()

The problem I’m having is that my WordPress is set up on localhost, but when I view the site from another computer, “<?php echo get_template_directory_uri();?>/image.png” will return “http://localhost/wp-content/themes/Theme/image.png” which of course doesn’t load. But it all works fine when the WordPress is viewed locally, or put onto a web server and viewed from any computer. […]

How to make tag pages look as /tags/%tagname%/ in the URL?

Example Tag‘s page, which involves all blog posts tagged with it, resides at /example-tag/ which is problematic for me since a post titled Example Post has the URL extension /example-title/. How can I make so Example Tag‘s page will be /tag/example-page?

DNS – Change WordPress Site Name?

I’m about to make a site go live, but I realized that WordPress assigned the website name as the IP address under settings. When I try to change it, the website errors out. When I’ve tried to change the name in the past, it gives an error… so I’ve tried a few tactics documentation has […]

Rewrite default post type

I would like to rewrite the default post type URL to /blog/2016/11/my-post-name/ without affect the other post type url. I tried: add_action(‘admin_menu’,’remove_default_post_type’); function remove_default_post_type() { remove_menu_page(‘edit.php’); } add_action( ‘init’, ‘set_default_post_type’, 1 ); function set_default_post_type() { register_post_type( ‘post’, array( ‘labels’ => array( ‘name_admin_bar’ => _x( ‘Post’, ‘add new on admin bar’ ), ), ‘public’ => true, […]

Site Address and WordPress Address settings when using a load balancer

I am installing my wordpress forum in two identical servers: InstanceA (public dns: InstanceB (public dns: I would like to have both of these servers sit behind a load balancer: LB (public dns: When filling in the Site Address and WordPress Address settings in wp-admin->settings, which address would I fill for each […]

Page inside custom post type (url rewrite?)

I am trying to create a page that I can use inside of a custom post type. I have a CPT named forums, so the url is: I would like to have a page called new-topic with the url: I have been looking at parent/child relationships and url rewrites but I am completely […]

Accidentally changed website url

Hello i accidentally changed my wordpress url and now cannot access admin. can anyone tell me how to fix this please? i don’t have access to c-panel either. I tried adding this to wp-config.php via ftp define( ‘WP_SITEURL’, ‘’ ); define( ‘WP_HOME’, ‘’ ); still does not work

Cannot access WordPress website from external IP while internally it is working properly

I have setup a small website using LAMP (Raspbian) and WordPress. No domain name will be registered for the website. For the moment I am accessing the site from inside the local network. To access the site I just hit the IP address of the server (internal). I want to access the site from outside […]