The site_url template tag retrieves the (admin/backend) site url for the current site (where the WordPress core files reside) with the appropriate protocol, 'https' if is_ssl() and 'http' otherwise.

learn more… | top users | synonyms

0
votes
1answer
12 views

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 ...
0
votes
0answers
20 views

2 different Home Pages for different language url part

I'm in trouble with multilanguage site I would to have for all pages under url www.example.com/EN An EN HOMEPAGE and for www.example.com/IT another HOmePAGE. How can I dot this? I already know this ...
1
vote
0answers
8 views

WordPress: how to change URL for individual MultiSites?

Currently we have a MultiSite setup for our main website, and the URL's appear as follows: http://sub.domain.com/site-a (Site A) http://sub.domain.com/site-b (Site B) Site A is OK as is. But we ...
0
votes
1answer
10 views

All styles are looking for the site URL twice

I am migrating a production server to a development server. I have archived the public_html folder and migrated the database and imported it to the new server without any problems. When I load the ...
0
votes
0answers
16 views

WP_HOME & WP_SITEURL Config

I'm having issues running WordPress on Server 2012 R2 on IIS. I've configured WordPress before on a Home Server before and have it running, but this configuration is a little more difficult/advance. ...
0
votes
0answers
11 views

changed URL and location to root of my wordpress site, can't get it to work properly

I have had to move the worpress blog to the root folder as well as changed its URL. I have done everything I was supposed including changing the URL within the database as well as doing it through the ...
0
votes
0answers
19 views

500 error after WP homepage url changed

So, I have error 500. I tried to replace with old htaccess file, but Wp don't let me login cause I have offline mode. How can I set wp url back? SOLVED Add these two lines to your wp-config.php, ...
0
votes
1answer
15 views

Changing siteurl breaks site

I am hosting my site on amazon ec2. I have purchased a domain name via godaddy and have forwarded it to the IP address of my amazon instance. I forwarded with masking turned on so that users do not ...
0
votes
1answer
43 views

How to add www to images?

I have site with the http://domain.com but I want to have http://www.domain.com so I have changed it in Settings. It's working great now for all pages and posts. But for images and all attachments, ...
1
vote
1answer
40 views

What does $scheme in site_url function do?

Could someone tell me what the $scheme precisely does in the site_url function? What does it provide and how to use it? Of course I have read the Codex, but since I am not a native English speaker, ...
0
votes
0answers
52 views

siteurl value getting populated with junk in wp_options table

My website was getting this error on every page : Catchable fatal error: Object of class WP_Error could not be converted to string in /home/juhisheth/public_html/wp-includes/default-constants.php on ...
0
votes
1answer
21 views

Hide some shortcodes on posts from back-end

I searched everywhere on the web and I didn't find something that could really help me. Here is my problem; I use a plugin that provides shortcodes to show a file in a page or a post. For each file I ...
1
vote
0answers
19 views

A URL that links specifically to the mobile version of my site?

I (due to my participation in a certain ad network) need to provide (for a certain ad box) a link that specifically shows the mobile version of my site -- regardless of what device I actually am ...
0
votes
0answers
20 views

Embed Site url and home inside the code

I'm trying to make 2 wordpress sites use the same database , i tried working on the wp_prefix() but there is nothing i can do about the Site Url and Home fields on Wp-option table , so i ...
1
vote
0answers
31 views

How can I remove the folder from a Multisite URL?

I necessarily have a multisite installation in a subfolder. For most of the Sites this is fine, but I would like to remove that folder entirely for another Site. Like so: ...
0
votes
1answer
30 views

Referring to site URL in shortcode argument

Apologies for the noob question -- have searched extensively, and it's probably a forehead-slapper. A plugin I'm using offers a shortcode that takes a URL as an argument; I should set that argument ...
1
vote
0answers
20 views

Session Expired when WordPress Address (URL) and Site Address (URL) are different

I followed this article to allow me to put our company's WordPress blog on a subdirectory of our Heroku hosted site: http://nicolasmlv.com/wordpress-in-your-rails-app/ This says to add this code to ...
0
votes
1answer
28 views

Unable to get Wordpress's apply_filters('site_url') to return a https scheme

I am in the middle of migrating a Wordpress site to being entirely https://, but I am having trouble with the login page. The login page itself is loading with the https:// scheme, but the form ...
1
vote
0answers
16 views

Dynamically update Site/Wordpress Address

Is anyone aware of a PHP method to use the linux server's currently assigned IP address as the Wordpress Address and Site Address? I'm not too worried about breaking the site, because it's ...
0
votes
0answers
44 views

Wordpress listening on specific port

I am trying to get Wordpress to run on vagrant I have port forwarding for 127.0.0.1:8080 on my host machine. Everything runs just great except plugin scripts are stripping out :8080 from their url ...
0
votes
0answers
38 views

Blog broken after changing Site/Home URL

I have two blogs installed in the domain foo.com: foo.com foo.com/marketing They different WP installations which share the same domain. Database tables from the /marketing installation use a ...
0
votes
1answer
124 views

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 ...
0
votes
3answers
30 views

How do I get WP site to show in both root and sub-directory

My individual WP site is installed in a sub-directory (e.g., example.com/wordpress) and I would like visitors to be able to view it from BOTH the root directory (example.com) AND the sub-directory ...
0
votes
1answer
227 views

How to get_template_directory() properly on local environment

I'm currently developing a site locally in MAMP PRO. When I use get_template_directory() inside of the standard functions.php file, the site path gets output correctly. However, I have a separate ...
0
votes
0answers
37 views

site_url() returns with additional backslashes

I am using site_url() function and it returns the address as http:\/\/vip.local\/cc where I can see that WP automatically adds unnecessary backslashes. Is this for some escaping purpose? I tried using ...
0
votes
1answer
64 views

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 ...
0
votes
0answers
52 views

Changed sub-site path and now 404

I was running a multi-site on www.madeinindia.club i have made a sub-site with www.madeinindia.club/work-space and now i changed the path to www.madeinindia.club/karmabhoomi but it is not accessible ...
1
vote
0answers
44 views

get_template_directory_uri not dependent on WP_HOME in wp-config.php?

For testing on mobile devices in my local network, I've set up xip.io according to this blogpost I can access the site, but even though I added the following to my wp-config.php define('WP_HOME', ...
0
votes
0answers
52 views

wp-admin won't load when domain includes Hungarian characters

I have a Hungarian domain: "akadálymentes-honlap" After I login, wp-login.php redirects to "www.akadlymentes-honlap.hu/wp-admin". Hungarian character "á" is missing. I made a test, where I put IDN ...
2
votes
1answer
2k views

Relative or dynamic site url possible?

I have a local Xampp wordpress installation that I am using as sort of an intranet with some people I work with. I require them to be able to access it on our LAN router -- I found that I needed to ...
1
vote
1answer
133 views

What do the schemes login, login_post, admin, and relative mean?

site_url and get_site_url accept a parameter named $scheme. $scheme can be set to http, https, login, login_post, admin or relative. http and https are obvious. What do login, login_post, admin and ...
0
votes
0answers
32 views

Moving Site: Is Re-downloading Files After Changing URLs necessary?

On the Wordpress Codex: Moving Site page under Changing Your Domain Name and URLs, it states that you should re-download your site files (Step 5) after changing your site URLs (Step 4). Is Step 5 ...
0
votes
1answer
177 views

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 ...
0
votes
1answer
83 views

Error 404 wordpress redirecting URL

i'm having problems after trying to redirect my website with wordpress. I wanted not to have something like that: "www.example.com/wordpress/". So I did that in the wp-config file: ...
1
vote
4answers
591 views

how to use a different domain/subdomain for authors/catagories on single site?

I'm not sure if I phrased this question correctly... My wife and I have one blog, family.com in this example, that we both contribute to. I would like family.com to show all blog posts. ...
0
votes
1answer
202 views

Plugin Development - Get Admin Url (Including cases where wp-admin is not used)

I'm currently writing a WordPress plugin, and am looking to retrieve the WordPress admin url. It sounds simple enough - and it is - assuming every WordPress install is using the default wp-admin slug; ...
0
votes
1answer
30 views

Is it risky if I update all url in the database due to my site url changed?

Let's say I have a wordpress site on a subdomain. Initially, I created the site with "www." >>> www.mysite.mainsite.com Now, I'd like to change site url to only mysite.mainsite.com without www ...
0
votes
2answers
107 views

Two domain site: Link base URLs point to wrong domain

I have been running domain.co.za, but recently purchased domain.com. Both domains now point to the same Wordpress site. On domain.com pages all the links point to domain.co.za and on domain.co.za all ...
6
votes
3answers
811 views

Getting the Site URL Including the Front Base

If my permalink structure is set to /blog/%postname%/, how can I retrieve a URL for my site which retrieves domain.com/blog/? With the permalink structure mentioned above, when using site_url();, it ...
0
votes
1answer
24 views

How to retrive previous Domain URL in Wp

One of my firend accidently! Changed the WorsPress domain address to his expired domin address now we can't even connect to WP Login Page and WP is redirecting us to a domain address which does not ...
0
votes
0answers
43 views

moved site to development box, WP works fine except that only root of site is served

I have a small, ultra-low traffic WP site. Let us call it www.mysite.com. This same URL is listed both as the "Site Address" and the "Wordpress Address" under the wp-admin Settings panel of the live ...
1
vote
2answers
3k views

When moving a WP site, why does wp-admin redirect to old site?

I am in the process of moving a WP site from one host to another. I copied the database and all the files, created a new database and imported the old one. I then changed the wp-config file. The home ...
0
votes
1answer
42 views

Top Admin Bar Never Shows Up

So I recently moved a site to a new domain and updated the URL to reflect the changes in the database as well as in the wordpress backend. wp_head and wp_footer are placed respectively in header.php ...
4
votes
1answer
296 views

Run WordPress frontend and backend in different domains

I want to run my WP frontend as www.example.com and my backend (i.e. wp-admin) as user1.example.org, is it possible? The reason is I want to host lot of sites in a single server which has only 1 IP ...
0
votes
1answer
354 views

Hard code a domain into Yoast SEO canonical URLs

For various reasons, I've been asked to duplicate a wordpress blog across multiple subdomains. Obviously, this will cause duplicate content issues, which I hope to mitigate with the use of a canonical ...
0
votes
2answers
455 views

WSOD 3.9.1 – Tried Everything so far

Hoping someone can help me troubleshoot my White Screen of Death. Site Info: WP 3.9.1 (just upgraded) PHP Version: 5.4 (just upgraded) Single Version Many other installs of WP on this server (with ...
0
votes
0answers
100 views

Hijack site url on sub domain for translation

Ok, i have complicated issuse (i think)... i created a site that has 3 languages without any plugin since none meet my needs.... i create 2 sub domains named: he.example.com en.example.com ...
0
votes
1answer
102 views

What is the purpose of storing `siteurl` in database?

Why does WordPress store 'siteurl' and 'home' in the database? It's driving me crazy because I develop locally, deploy to a staging site, AND to a production site, so that's two-three times I have ...
-1
votes
1answer
20 views

Siteurl code for links

I'm working on a wordpress website for my friends bussines and I'm working on it on my personal server to then export it and import it on his server when it's done. And one some of the pages I've ...
0
votes
1answer
432 views

Removing all my hardcoded URLs with get_site_url()

In my php files, I would like to remove all my hardcoded URLs (ex: http://mysite.com/) and replace them with the get_site_url() function. My problem is with the php code of one of my functions (in ...