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
27 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
15 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
45 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
26 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
85 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
20 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
16 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
22 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
22 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
30 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
19 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
162 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
14 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
53 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
35 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
22 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
112 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
34 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
49 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
41 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
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
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
34 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
20 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
36 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
49 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
66 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
1answer
86 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
27 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
23 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
107 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
30 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
48 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
20 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
44 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 ...
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
163 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 ...
1
vote
2answers
250 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
2answers
38 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
37 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
66 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
1answer
449 views

Block a specific url request

I probably have a plugin that makes a request to an URL slowly down my website. At the moment I'm still debugging the issue but, in the meantime, is there a way to prevent Wordpress to request this ...