Questions tagged [urls]

A uniform resource locator, abbreviated URL, also known as web address, is a specific character string that constitutes a reference to a resource.

Filter by
Sorted by
Tagged with
0
votes
1answer
28 views

URL issue after setting up Custom Structure in Settings >> Permalinks

I've tried to Google this but to no avail. I'm a newbie at programming but I can say I'm adept at configuring WP - pretty please, please bear with me. :) I have a CUSTOM_TAXONOMY that when viewed, ...
0
votes
0answers
24 views

Add custom taxonomy slug to URL of Custom Post Type

I have a Custom Post Type named "blog", and a Custom Taxonomy named "area" (both setup using the CPT UI plugin). I have also used below code to add the taxonomy slug in the url, so that standard WP ...
0
votes
1answer
36 views

How to assign a default/priority taxonomy to be shown in url in case two taxonomy items are selected

I have a custom taxonomy (ex. taxonomyfoo) created with CPT UI plugin and assigned this taxonomy to the standard wp post. I have also used below code to add the taxonomy slug in the url (%taxonomyfoo%...
0
votes
0answers
25 views

Problem building an url with argument

I have tried to build an url using a parameter, and it depends on the element the user clicks. I have used the method add_query_arg( 'id', $id, 'http://example.com' ), and the href value of the ...
0
votes
0answers
21 views

How to store value in some variable in wordpress?

please help me I am new in WordPress the task is I have a URL like this http://localhost/talha/?aid=1 I want to store that URL value in a variable and use it through all my website. I read many ...
0
votes
3answers
69 views

wordpress copyright dynamic

Hi everyone I have a question how can you create a dynamic copyright in WordPress with URL that goes back to the home page as well as a URL that goes to the designer of the theme
0
votes
1answer
44 views

Get page by path - honoring permalink settings (urls w/slashes)

Let's say I have a page with the name sample-page. I can do this: get_page_by_path('sample-page') To get that page. Now, let's say I want to get a post where the URL to that post is /post/8. If I ...
0
votes
2answers
60 views

Unique one time use URL

I’ve been searching for solution to my problem but posts already made are not fulfilling the answer to me, or I'm just not qualified enough to work this out. Here is what I need: I’ve got a simple ...
0
votes
3answers
86 views

Why is WordPress rewriting absolute URLs on staging site to include staging prefix when we manually point them at the live site?

Edited for clarity and to display steps we take to reproduce the issue. Question What would cause absolute URLs on our staging site to prepend the staging site's subdomain to them when saved in the ...
0
votes
0answers
9 views

How Can Wordpress Posts and Pages be Organized in Directories That Display in the URL?

We have a WP Multisite network (subdomains) and one of the subsites contains information for multiple states and we would like to organize the content so that the urls display as follows: https://...
0
votes
3answers
1k views

Wrong url in sortable column headers & pagination in the admin, when behind a proxy

Recently I changed the url of my site from atlas.site.com to site.com, one thing I just came across in the admin area for posts, custom post types, pages, where there are more than one page of posts, ...
0
votes
1answer
131 views

How to Update / Change URL when Popup Modal Loads?

I'm looking for a way to have a popup modal with a form, and whent he popup loads, the URL changes. For example, if a person is viewing web.com/about and the popup loads, then it will change the URL ...
1
vote
1answer
101 views

Changing WP_Query params with url Query Var

:) I've used WP_Query to display there posts (travels) here http://boost19.delavec.si/wordpressP/produkti/ So... I've got this WP_Query that is looping through my custom posts <?php $paged = (...
0
votes
0answers
28 views

Locked myself out of WordPress because I changed my URL and computer shut down

I have word press deployed on Google Cloud Platform. I have a domain too from Google. My IP Address for domain is is 35.243.142.95 and this is how I have it setup in WordPress. I don't know why it’s ...
0
votes
0answers
123 views

How to change site-title-url for specific category or page in php?

In wordpress website, we have different categories like Collaboration, Healthcare, Economy etc. I have made separate blogs pages for each category. Required change is if user is on Healthcare blogs ...
1
vote
2answers
49 views

How to change redirection route to a php page for making it only accessible by logged-in members?

Background of my problem: I'd like to mask external download links as internal links and to be only accessible by logged-in wp users at htaccess level or with PHP script but when redirection happens ...
0
votes
1answer
24 views

Adding query string to multiple page urls in a Wordpress function

I have a wordpress function that adds a query string 'nocfcache=1' to a single page url. function nocfcache_query_string( $url, $id ) { if( 42 == $id ) { $url = add_query_arg( 'nocfcache',...
0
votes
1answer
31 views

Disable Wordpress URL auto Redirect

Wordpress auto redirect http://example.com?lang=fa to http://example.com/?lang=fa how to stop that?
0
votes
1answer
21 views

Remove “Page” from Category archive

For the moment my site category archive URL show as example.com/blog/category/all/page/2/ I want to remove "page" from slug so it should display as: example.com/blog/category/all/2/ Any tips how I ...
0
votes
0answers
48 views

Allow commas in permalinks

I need to make some URL with a few commas in it. But when I change the URL field in the admin page it removes it automatically, when I save the changes. How can I make it stay and not removed?
0
votes
1answer
31 views

Getting Turkish alphabet characters in the URL field in webbrowser

I want to make a WP website in Turkish that shows the proper Turkish alphabet characters in the URL fields in the webbrowser and in WP instead of the English alphabet ones. I tried it already but I ...
1
vote
2answers
284 views

wp search-replace (not executing)

I'm running multisite. Looking to replace old URLs with new URLs for pulling a copy of the site form one environment to another environment. Here is my command: wp search-replace --url=domain.com ...
0
votes
0answers
16 views

How to manually archives and display posts of categories?

I'm trying to do the following steps, it will be a process of end of the year : The category "This year" has to be in the "Archives", the oldest archives has to be delete, and i had to re-create a ...
2
votes
1answer
39 views

How to get “extended” path info from URL in a plugin

Working on a plugin that creates short codes to embed into a page. I have permalinks set to "Post name", so http://example.com/post-name/ I want to be able to pass additional information in the URL ...
0
votes
0answers
247 views

How can I programmatically add WooCommerce product photo from external URL

I searched for this but couldn't find anything I already saw this post Programmatically adding images to media library the problem is you cant get the new media url right away and put it as meta data ...
0
votes
2answers
42 views

CPT category hierarchy

I'm working on a _products catalog` WP theme. I have a issue where my CTP has multiple subcategories, like for example: Vehicle -> Vehicle type -> Vehicle type -> Vehicle year -> Vehicle ...
0
votes
1answer
46 views

Two URLs of one post is available

I have WordPress blog with permalink /%category%/%postname% it is OK when i have one category. but when I add another, the post is available with two URL and i think its bad for seo for Example: ...
0
votes
0answers
81 views

How do you remove question mark in URL in get method?

I'm trying to create a plugin for Wordpress and in the plugin, I am using the Get method to store a string which I will use to call an API. I created a custom page and the url is: http://localhost/...
0
votes
0answers
12 views

Wordpress Media URL is showing // in URL

I am facing a problem my website media URL are showing like domain.com//media due to this my website is working fine without SSL but when i open it with https:// all my media images disappear. I want ...
0
votes
2answers
13 views

Add addtional page parameter before loading the page

the problem I got: I need to force a list view for products which are shown on a specific page only for mobile devices, for me the perfect solution would be an additional url parameter -> '&...
0
votes
0answers
71 views

Not able to get my callback URL to work with my wordpress plugins

I have installed a Wordpress Plugin (Revive old Post). This plugins on my wordpress website to send old post to my twitter account.. I have setup my developer account with twitter.. for this plugin ...
0
votes
1answer
19 views

Cant access my wordpress.org locally

Hi I have created a wordpress.org website with phpmyadmin where it is located locally on my computer. I went to transfer my domain purchased through namecheap.com and I put my recently purchased ...
0
votes
0answers
90 views

Can I add a rewrite rule in htaccess to remove the multisite subdirectory from the URL?

I am working on a Multisite that was installed and activated on an old version of WordPress. The WP files were placed in a subdirectory named /wp/ and now a request has been made for the subdirectory ...
0
votes
1answer
29 views

Modify Url for Edit Post Screen in Custom Post Type

Ive looked at the questions that may have already answered what im needing and came up short...Im modifying a plugin and the custom post-type name shows in the url when adding a new post. But..when ...
0
votes
1answer
821 views

Change URLs depending on alias

I have two domain names: themaindomain.com and thealias.com. Wordpress is located under themaindomain.com. I was wondering if it is possible to change the urls to posts and pages when there is a ...
0
votes
3answers
23 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
2answers
1k views

Creating customized php files in theme folder

I am developing a e-commerce theme that requires an order page. I created a php file inside my theme folder named order-page.php and hope to access this page from the wordpress root url (example.com/...
0
votes
1answer
1k views

Need to convert image url to a Base_64 data url with wordpress function..

I need to convert an image url (wordpress avatar) to a base_64 encode data using a wordpress function . I have a shortcode that has the image url for all wordpress users... For example... [...
1
vote
2answers
632 views

Why am I getting a white screen without a slash at the end of the address?

I am currently building a custom Wordpress theme for my rugby team. I just noticed something and I can't work out whether this has been happening for a while and I have only just noticed it or it is a ...
0
votes
3answers
1k views

Call featured image url

How do I get the URL of my featured image? I am using buffy and I can Call The URL of The post and so on, but can't figure out how to Call The URL of The featured image.
0
votes
0answers
29 views

Post links broken after migration

I just moved my wordpress site from one server to another. Moved all the files, moved the database, reconnected everything and it (almost) works perfectly fine. Except for this: The links to the ...
2
votes
2answers
432 views

How can I rename the WordPress AJAX URL? [duplicate]

I'm currently looking for a way to change / hide the default WordPress admin-ajax.php URL. I want to do this to remove the admin from it to prevent misunderstandings by my customers when I use the ...
1
vote
0answers
29 views

How to show the root webpage on all subpaths

I want to show the same page on all the subpaths on my web site /events/ /events/firstOne /events/secondOne/edit /events/whatever/blahblahbla/helloworld All that urls must load the same root page. ...
2
votes
1answer
395 views

Password protected page Hash url

I am using owl carosel which takes a hash url to go to a specific slide (http://www.owlcarousel.owlgraphic.com/demos/urlhashnav.html#five) Lets say I want to visit a password protected page with the ...
0
votes
1answer
112 views

Remove filter parameter from Link URL

I found by scanning my website with tools like ryte.com, that i has over 48k Sites / Links. I only created like maby 25 Websites. After searching for the issue, i found out the the category pages, ...
0
votes
0answers
25 views

I have Akamai pointing to a WordPress installation with a different URL. Is there a way to make WordPress use this for link generation?

I have a WordPress website at, lets say, http://a.domain. For reasons beyond me, I needed http://b to be the URL and the way they found was to put Akamai in front of the website. It works, as I can ...
-3
votes
1answer
52 views

Lost WordPress website access after changing URL [closed]

I have changed the Site URL and Home URL of my website, after that I am not able to access it. The message appearing on the screen is "this site can’t be reached" How do I get the access back?
7
votes
3answers
8k views

User redirect to destination URL after login

Scenario: if user not login, user redirect to customize login page and redirect again to destination page after login. I don't use a function or plugin. This code to restriction page: if (!...
6
votes
1answer
31k views

How to reference a theme image in a stylesheet?

I have a global element as part of my theme and I need to reference and image as a background image. I need the URL to the image. I assume that it's bad practice to hard-code the URL and that the URL ...
1
vote
3answers
140 views

How to use $_GET function Wordpress backend

I use Plugin Boilerplate for my project. I searched the internet and read all the questions but I couldn’t find what I need. I also read the WordPress Codex. I think I couldn’t get the idea. I have ...