Questions tagged [site-url]

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.

Filter by
Sorted by
Tagged with
0
votes
0answers
12 views

How can I change block editors suggested links to display another url (i.e. from api.mysite to www.mysite)

This is potentially not a straightforward question in that its not a native WP installation. I use a JavaScript framework (Vue/Nuxt) on the frontend at www.mysite and WordPress is running from a ...
0
votes
0answers
9 views

How to remove weird characters added behind permalinks

I am new in using WordPress to create my own website, currently facing a problem with the weird characters added behind permalinks for each page such as http://www.officeconceptdesign.com/products/#....
0
votes
1answer
14 views

SSL not working fine, Home url not matching with site url wordpress errors

I deployed WordPress through Bitnami so after adding an SSL certification I started getting warnings from my WordPress dashboard of my site URL not matching with Home URL I was directed to my ...
0
votes
2answers
58 views

Woocommerce different URL for every table placed in the restaurant

my company is working with different restaurants to digitize their menus so that people dont touch the menu cards in this Covid 19 pandemic, so every table in a restaurant will have a unique qr placed ...
1
vote
1answer
25 views

How to fix blocked cookies error that doesn't let me log into wp-admin?

I have edited functions.php file recently and also added a new folder to themes folder for custom endpoint and after that I wasn't able to login to wp-admin. I deleted the folder and code line from ...
0
votes
1answer
21 views

Why my URL has an unknown character string?

I'm working on a WordPress website which contains an unknown string of characters behind the actual URL (/?v=11aedd0e4327). I've tried deactivating all the plugins, but nothing changed. I've also ...
0
votes
0answers
26 views

Plesk login inaccessible after changing site URL

I was initially facing this issue: (I am locked out of my WordPress site after changing site URL from Http to Https). I need to access wp-config to implement the given solution and was trying to ...
1
vote
0answers
15 views

Wordpress Multi-Site on Ubuntu 18.04 LAMP Keeps Re-Directing

After a few weeks of head banging... I am very near to completing a local development environment for my WP Multi-Site Installation. The final problem that I have (wishful thinking), is that the ...
0
votes
0answers
56 views

wordpress+docker+apache mod proxy redirects to http://localhost

My environment is, a docker container running wordpress on apache can be accessed via ip:port . The host environment has an apache instance which redirects traffic that comes to http://myurl to ...
0
votes
1answer
105 views

Wordpress get parameter 'unapproved' and 'moderation-hash'

I have a blog site. And I found a suspicious access to my blog post from log. The url format is like this. https://example.com/my-post/?unapproved=420&moderation-hash=...
0
votes
1answer
34 views

Hide Wordpress Site URL from Source Code

How to hide the leading site url from the source code example http://example.com/wp-content/themes/themename/style.css Becomes /wp-content/themes/themename/style.css Removing the main site URL ...
0
votes
1answer
12 views

I changed the site address and wordpress address from localhost to my ip and it doesn't work anymore

The problem: I'm running wordpress locally on a mac using mamp. I used to access my wordpress site with localhost:8888/mysite. I wanted to let other people see it using my IP address so I went under ...
0
votes
1answer
22 views

How to return site_url() without https://

I am retrieving the site URL and creating a shortcode to display it. However when i return the site URL as expected it contains the full string including https:// How can i return the site url ...
0
votes
1answer
28 views

How set a custom URL for a new theme file in WP?

I want to create a new theme file in wordpress. for example : index111.php And I want to copy all the contents of one of the main template files (for example : index.php) into the new file (index111....
1
vote
0answers
17 views

How to bulk edit image url in featured image and product description?

I have tried a few plugins (free) but none update the url in featured product image and product descriptions. How can I update in bulk instead of doing one by one? If there any any plugin (...
0
votes
1answer
50 views

Permalink not changing according to post type

I am using two post types: a) Posts ( Default post type) also name as blog for blogging. b) case studies ( Custom Post Type ) only for case studies. I want to add the string ‘blog’ for default post ...
0
votes
0answers
28 views

Got 404 error when changed siteurl via DB in Wordpress

The problem is that I have changed the wp_options table with site URL and home fields from http://localhost/WordPress to http://localhost/test I get 404 errors or Object not found error. What I ...
1
vote
1answer
199 views

How to set “Site Address (URL)” programmatically on WP multisite?

I have a new WP multisite configured to use subdomains by default. Network sites are created programmatically when the user signs up. I want to give the user the option to enter a custom domain and ...
0
votes
1answer
53 views

Querystring value being stripped from site_url()

This is a question about a plugin. A form to search the database works. What I am trying to do is have the search term reload into the form input field when returning search results. The problem is ...
0
votes
0answers
20 views

Building a custom app and making friendly URLs

I have built a custom stripe payment integration. The WP site is at root level of domain/public_html The payment integration is accessed under domain.com/payment/ The integration is programmed to ...
0
votes
0answers
29 views

Domain not redirected correctly with Wordpress Multisite

My Wordpress multisite installation uses two sites: Site 1: www.myexample.com Site 2: blog.myexample.com In addition, I own a second domain myexample2.com, which I would like to redirect to the ...
0
votes
0answers
13 views

Multisite backend URLs broken after transfer to different domain

I have a series of multisites which are used to serve the website in a different language, e.g: www.example.com www.example.com/de www.example.com/it I transfered it to a development url to do some ...
1
vote
1answer
163 views

How to use site_url() in Elementor

I have created a website in wordpress, which is currently running as sub domain of a company. This website contains large number of pdf documents, which are belongs to different categories. The pdf'...
0
votes
1answer
22 views

Include www prefix in site URL

I'm setting up my first wordpress site (on a WP Multisite server). In the 'sites' info page I am asked to enter the site URL. Should I use 'www.mydomain.com' or 'mydomain.com' ? (Does it matter?) ...
0
votes
1answer
68 views

Headless WordPress – Issue with plugin path

Working on my first decoupled site. Backend is handled by WordPress and lives on the subdomain admin.mydomain.com and the frontend lives at mydomain.com. The first issue I saw with the headless ...
1
vote
1answer
23 views

URL parsing - what is it?

I am reading the conversation about WP_USE_THEMES and I don't understand the term 'URL parsing'. Can someone please explain that to me in the context of Wordpress ? Google didn't produce significant ...
1
vote
0answers
253 views

disable site_url redirect in wp-login.php

I'm running a wordpress install on nginx, and I'm looking at novel ways of securing wp-admin. I know theres more than one way to do this (e.g. adding an http basic auth layer, login lockdown, 2FA, etc....
1
vote
1answer
356 views

Login redirect_to loop with reauth=1, cookie expiry set to 1 year in past

(I've resolved this - sequencing error in wp-config.php - thanks to this answer elsewhere). I've moved a site dev to production and everything is working correctly except the login form, which is ...
0
votes
1answer
28 views

Wordpress replaces “https://” with “//” for Site & Wordpress-URL

When I save "https://example.com" in General Settings as my Site & Wordpress URL, it gets replaced by "//example.com". To analyze the problem, I checked the Wordpress database, but 'WP_HOME' and ...
0
votes
1answer
28 views

Change of “home” results in timeouts (only on index.php)

So this question is probably a result of me not completely understanding the inner workings of Wordpress - especially the home variable. So here is what I did, and after that I will ask my question. ...
1
vote
2answers
234 views

How to move 1 WP site from a mult-site environment to a different multi-site area

How to move 1 WP site from a mult-site environment to a different multi-site area? Doing on same server if that assists at all. We know how to move a site from a multi-site area into a single site ...
1
vote
1answer
32 views

When clicking on “home” page from any other page, it goes to IP address and my website doesn’t load

I recently set up my WordPress website and just noticed that if I click the home page from any other page, it points to the IP of my instance and the website won’t load. I have checked the URL(s) from ...
0
votes
1answer
161 views

Multisite with different domain names on different servers

Consider the following servers with their domain names: Server A: Domain A1 (Master Domain) Domain A2 (Addon Domain) Server B: Domain B1 (Master Domain) Domain B2 (Addon Domain) First, ...
1
vote
1answer
65 views

Wordpress keeps redirecting me to online site [closed]

I need to create a copy of a WordPress in a local environment. I have alread done some research and Included the following line in wp-config.php (at it's start, also tried at the end) define('...
0
votes
1answer
264 views

404s after changing site url in settings

I was working on my Wordpress site (hosted on DigitalOcean) using the ip address as the website address. I decided to change the address to my domain name so I went into settings and updated the ...
-1
votes
1answer
53 views

Advice on WP site structure using multisite

Can multisite be used in such a way to have a top level Network site (with a couple of pages) and additional multi sites which will be child pages of the Network site pages? We need to build a WP ...
2
votes
5answers
6k views

How do I change the Multisite URL?

The links in the navbar menu, in (My sites > Manage the network) are pointing (and keep redirecting) to incorrect URLs. The incorrect URLs are in this pattern: https://https//www.domain.com/wp-admin/...
0
votes
3answers
41 views

Showing my server ip in source code for several links not for all links

So my problem is that I have hosted my wp from my localhost to aws light sail and assigned a static IP to my instance and then I mapped the website with my subdomain and then changed site address and ...
0
votes
0answers
20 views

There is how to change url domain on some posts?

There is how to change the URL on some posts? Like, for example, my website is www.mydomain.com, on posts it's like www.mydomain.com/post now can i change some posts to a url like www.myotherdomain....
0
votes
0answers
127 views

How to delete blog word from wordpress url?

I try to setting up wordpress to display my posts such as http://www.domain.com/postname but the default url is http://www.domain.com/blog When I try to use custom structure for urls such as /%...
1
vote
0answers
19 views

Can't control Wordpress Addresses from admin panel

I have already created several sites in WordPress and I have always been able to manage the link of my site with or without https and with or without www through the settings in options > general, as ...
0
votes
1answer
28 views

Landing function through URL

I have a landing page with 3 buttons that have respective functions with them to hide/unhide content based on user selection of those three buttons. Is there a way I can have the user land directly ...
0
votes
1answer
25 views

Keeping the URL but changing the site - How?

I'm trying to move a wordpress site to the new URL from new.XX.nl to XX.nl for someone else. I changed the URL in wordpress in the new site, but it only resulted in me being unable to login into any ...
1
vote
1answer
479 views

Pass GET params to URL from a main menu item

I have a booking form on page "Training" and I want it to be pre-filled with logged in user's details. For that I need to pass those details (name and email) to URL and the form should automatically ...
2
votes
0answers
23 views

How can I change all links on pages to point to a different domain from where the site is hosted?

I saw this question: How can I change permalinks to use a different domain and path from where the blog is hosted? and was wondering if someone can help me. We're hosting a wordpress blog on WP ...
0
votes
1answer
128 views

Logging in to installation in subdirectory renders broken dashboard (no CSS, broken links)

I have my normal HTML/CSS on my root folder and Wordpress installed in a subfolder (domain.com/subfolder). When I log into my wp-admin subfolder as admin, it directs me to a dashboard page which ...
0
votes
2answers
29 views

How do I avoid messing up URLs when switching from example.com/subdir to example.com?

The goal is to make my hidden Wordpress site go from http://example.com/subdir (which I have now) to replace the olde site at http://example.com (which is what I want when I take my WP site live). In ...
0
votes
1answer
98 views

How to Use Custom Meta Field Instead of CPT Title in Post URL

I have a custom Post Type which is not using any of WP builtin supports like( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'comments' ). Instead I am using my own metaboxes to publish the CPT. ...
0
votes
1answer
577 views

Replace “http://localhost:8888/” by website URL in Wordpress

Due to some recent security breach, I had to replace my website on the server with all the new local files. Question: Now I see "http://localhost:8888/" string in my blog posts ( e.g. image sources ...
0
votes
1answer
21 views

Updated Site URL but it is not reflecting the changes

I have my Wordpress installation located in "webroot/example.com/WP" folder. Currently, http://example.com shows a 404 page not found error. However, http://example.com/WP loads the Wordpress site. ...

1
2 3 4 5