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
1
vote
1answer
14 views

How to edit URL Slug?

Some of my blog post slugs show abnormal characters within the edit post screen (ie. 3%e2%80%8b-%e2%80%8bperks%e2%80%8b-%e2%80%8bof%e2%80%8b-%e2%80%8bsmartphone-based%e2%80%8b-%e2%80%8belds) but shows ...
0
votes
1answer
34 views

How to rewrite https://www.example.com/post-new/ to https://www example com/gadget/post-new/ [closed]

On a custom post type, my url sample was https://www.example.com/post/. Now I have added amp, so I want to rewrite the custom post url from https://www.example.com/post/ to https://www.example.com/...
0
votes
1answer
24 views

wp_get_referer() returns url strings from wp-cron.php instead of desired visitor page url

wp_get_referer() from the wordpress codex: Retrieve referer from '_wp_http_referer', HTTP referer, or current page respectively. The current page url being visited is what I want. I want to add a ...
0
votes
1answer
62 views

Set A Cookie To URL Parameter, Pass Cookie From Page To Page To Alter Post

I have a function that makes the post multipage based on a URL Parameter with a specific value: ?content=multipage The problem is that when a user clicks to the next page the URL parameter is ...
0
votes
1answer
36 views

Set URL Parameter Post Layout As Default

I have 2 urls: www.site.com/post1/ www.site.com/post1/?content=onepage I have the following function that controls the layout of the post through the URL parameters in BOLD: www.site.com/post1/?...
0
votes
0answers
17 views

How to remove category url from particular post url?

Initially, I were not using category and subcategory in permalink but now its recruitment to add category and subcategory in URL. My old URL is this https://www.thegyansagar.com/spirituality-...
0
votes
2answers
40 views

Passing parameter through permalink structure

I have a WordPress post which is accessible via domain.com/test/ What I want to be able to do is pass in a parameter using the URL - ie going to domain.com/test/ would load the same page as domain....
0
votes
1answer
29 views

Redirect non existing page to frontpage

When a user type inn www.mypage.com/x (which does not exist) the result show an empty body with the header and the footer intact. Most redirect plugins let me redirect one specific URL to another ...
1
vote
2answers
173 views

Change URL structure of subcategory archive pages

I have my permalink structure for posts set up like this: /%category%/%postname%/ This generates URLs like this: mysite.io/category/sub-category/post-name Thats all fine. However, the archive page ...
1
vote
1answer
34 views

How can i have a custom post type with more slugs for each post?

I have a post type /city/ .. lets say i create a city called toronto with the slug toronto-canada. now i have /city/toronto-canada/ is there a way i can have more paths for each post in the custom ...
0
votes
1answer
24 views

Embed ACF URL Field in WP title field

I have a small listing-type block on a website that displays editorial titles which when clicked I want a new browser to open and the resulting page display the external page related to the clicked ...
0
votes
1answer
14 views

jquery anchor effect does not work properly

I have the following script that provides an anchor effect: // Smooth scrolling when clicking on a hash link $('a[href*="#"]').on('click', function (e) { e.preventDefault(); var ...
0
votes
1answer
44 views

Wordpress 404 unless there is a space in url

I got a previous question answered and I tried amending the solution, but now the problem is when there is NOT a space in my custom post URL the tag at position /location/ (in domain.com/malta-...
0
votes
0answers
12 views

Prevent multiple URL instances of homepage

I added simple enhanced blog capabilities to a site two weeks back, using modified index.php, single.php and sidebar.php files in a child theme. A few days later and googling the business name I've ...
1
vote
1answer
23 views

Save URL into database

I apologize in advance. I don't know even how to ask, what to ask, or what search for. Let say users can access my website from different URLs. https://www.mywebsite.com/something1 https://www....
0
votes
0answers
7 views

Do post id URLs [somesite.com/?post=123] ever fail?

Our app is tracking remote WordPress post URLs. The current solution tracks full URLs. I think it would be better to track them based on their local ID numbers instead. I can get the postID of a post ...
0
votes
1answer
80 views

remove post-name from title in custom post type

I simply want two custom post type meta propertys to be the identifiers for the URL. I implements a solution but it just 404's registering post type: final private static function ...
0
votes
0answers
19 views

custom post type url rewrited redirecting to home page

So I'm in the position where I thought I had setup my custom post types custom url correctly (it should be in the format domain.com/malta-property/locationofproperty/referencenumber). I don't want the ...
0
votes
0answers
15 views

stop redirection on /wp-login

I've installed a modified version of Wordpress with "Duplicator" There is a problem loading the page I think it's in the redirection How can I stop it? http://mysite/wp-login.php?redirect_to=http%3A%...
0
votes
1answer
20 views

Some resources of my website are pointing to www.mysite.com/dev/ and trying to get rid of that append has been a headache

The problem: I'm in the process of migrating a website to another server, so the maintainer of that page gave me the code and the database, so I could install it on my server. The problem is that ...
0
votes
0answers
37 views

How to add a 'News' section to specific posts in WordPress

I have a question regarding the WP post structure. How can I add "News" or "Technology" to specific posts in WordPress? I think this technique is very different from "post category" as categories are ...
0
votes
0answers
20 views

URL redirect regular expressions redirecting all after first viriable

I would very much like to redirect https://www.store.nl/?prodcategory=literal%20category%20name&productid=12345 to https://www.store.nl/literal-category-name/ I'm trying to add the redirect in ...
0
votes
1answer
29 views

Function to replace the url of featured images in the wordpress database?

Sometime ago I uploaded all images of my wordpress installation to the /media/ folder. So urls where something like this: http://example.com/media/featured-image-2010.jpg This folder is very, very ...
0
votes
0answers
13 views

How to load images from another URL (loading WP images from another WP instance)?

I have two WP sites (two WP instances). One is the new version of the site on the main domain - sitename.com, and another one is old version which I am trying to move on subdomain archive.sitename.com ...
0
votes
0answers
48 views

Insert “javascript:void(0);” into URL

I am no beginner Wordpress developer by any means but I am completely stuck with this. I have tried an array of alternatives without any result (href="#", href="#void", etc.). I need "javascript:void(...
0
votes
0answers
13 views

How to create a custom link for menu notifications for all users, not just a specific user

I'm currently building a menu on my Wordpress site, on which I am running the Buddypress plugin. I've been adding menu items via custom links, which have all worked out, except for notifications and ...
0
votes
0answers
29 views

Wordpress/NGINX not respecting the category URL for new posts

Only recently noticed this issue with my site configurations, it seems as though on my NGINX Wordpress sites the category base of a URL is not being respected and instead being redirected to another ...
0
votes
2answers
25 views

How to use query string in URL to display content on the wordpress page

My wordpress page URL is like this https:www.com/thanks-page/?origin_name=Sydney&origin_iata=SYD&destination_name=Ahmedabad&destination_iata=AMD I need to display SYD and AMD in to the ...
1
vote
0answers
18 views

Changing the search url according to language

I'm using Search and filter, Polylang and Custom post type UI plugins. I have a problem with the project's search in a specific language. The search form allow you to select category and location of ...
0
votes
1answer
35 views

How does one make a URL return dynamic JSON with custom Content Type?

Some background first, I'm trying to follow the directions here: https://developer.apple.com/library/archive/documentation/General/Conceptual/AppSearch/UniversalLinks.html#//apple_ref/doc/uid/...
1
vote
1answer
18 views

Add language prefix to permalinks

I have a wordpress website that has multiple translations, and i was trying to get the website to determine the language to load from the URL e.g. if its https://website.com/sp/about-us, load contents ...
0
votes
1answer
35 views

Custom Taxonomy rewrite rule causes 404 error on page or single post depending on if it's set to “True” or “False”

I've been googling, tinkering around and investigating/testing settings however nothing seems to work so please bear with me on this and please help me if you can. Thanks so much! I have the custom ...
0
votes
0answers
39 views

How to create a standard WP Page that has the same url as an archive

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
21 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
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
1answer
32 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
12 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
0answers
22 views

Can't figure out how to rewrite this URL : http://mysite/mypage.html?myVar[]=item1&myVar[]=item2

i explain what i try to do. First i have WP 5.2 and Php 7.2. i have a form which send a variable array like myVar[] to another page template. the url is http://mysite/mypage.html?myVar[]=item1&...
0
votes
1answer
22 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
39 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
39 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
8 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
1answer
30 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 ...
0
votes
0answers
25 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
1answer
19 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
0answers
59 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 ...
0
votes
1answer
25 views

Disable Wordpress URL auto Redirect

Wordpress auto redirect http://example.com?lang=fa to http://example.com/?lang=fa how to stop that?
1
vote
2answers
45 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
17 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 ...