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 (dev.domain.com/project). When it comes time to showing work to clients, I use version control to copy the dev installation to a beta zone (beta.domain.com/project). 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. siteurl.com – for whole web siteurl.com/news – homepage with news When I add siteurl.com I have to by directly redirected to siteurl.com/new. 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: instancea.com) InstanceB (public dns: instanceb.com) I would like to have both of these servers sit behind a load balancer: LB (public dns: lb.com) 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: example.com/forums I would like to have a page called new-topic with the url: example.com/forums/new-topic 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’, ‘http://www.example.org/folder’ ); define( ‘WP_HOME’, ‘http://www.example.org/folder’ ); 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 […]