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
0answers
13 views

file_get_contents(.ics file): failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request [on hold]

I'm trying to parse an iCal file from Google Calendars URL but it only works when I put the link as parameter. If I try to put a variable containing that URL as parameter it gives me the error: ...
0
votes
1answer
15 views

No url when downloading PDF

I've a password protected webpage where uses can download PDFs. When clicking on the Download button, the PDF is uploaded by creating a URL, which works nice but that URL is then visible for everyone. ...
0
votes
1answer
15 views

What happens when someone goes to the root URL in WordPress Multisite?

I'm going to set up a multisite for www.company.com/uk and www.company.com/usa. What will the browser show if someone just puts in www.company.com (which is the current widely used URL)?
0
votes
0answers
23 views

Create 600 links to separate files on google drive

For an educational project about climate change, I need to create 600 links pointing toward 600 separate files located on google drive. I have the list of all 600 shareable URL to the files but I don'...
0
votes
0answers
14 views

Only the index.php/homepage open while other pages are not opening

I am developing WordPress theme on local server. Only homepage/index.php is working while other pages in menu are not opening. I applied the following: change "AllowOverride None to AllowOverride ...
0
votes
0answers
11 views

Category url decoding problem, refresh page is 404

I am working on a wordpress v5.2.4 site that has Arabic language and words in URL which is causing an odd issue. I create a category: خطوط إرشاد which is creating a slug url: www.mysite.com/خطوط-...
0
votes
1answer
13 views

Incorrect page shown

I am creating a website for someone to replace their old site. I put the URL of the old site into into the site address in my general settings, and now I can’t get it to change back to the site I was ...
-1
votes
1answer
13 views

change pagination url

Currently I’m having URL for pagination pages as: http://www.example.com/category_name/page/2 But I need to change this URL structure as: http://www.example.com/category_name/?page=2 etc. any ...
0
votes
0answers
8 views

How can I create automatically changing urls?

I have following issue: I need to add CTA Buttons to my site, that generate, whenever someone clicks on them, a new url. The URL Structure has to be like this: example.com/ref/1001/test The part ...
0
votes
0answers
11 views

How to block the WP admin menus form loading depending on the current URL?

How can I block the WordPress admin menus and admin bar from loading depending on the URL. So that when a user visits a certain page in the admin area he will only see the wp-content block while the ...
0
votes
1answer
11 views

Adding Facebook's image and meta description retrieval capabilities to a WordPress post

When a URL is shared on Facebook, Facebook is able to automatically pull a relevant image and the meta description for use in the post. Would it be possible to code similar functionality into ...
0
votes
0answers
14 views

cURL timeout error 28 in Site Health and Sucuri SiteCheck

I run a server hosting multiple WordPress installations with the iThemes Security Pro plugin installed. One of the things that this plugin does is it uses Sucuri SiteCheck to scan the site for ...
0
votes
0answers
8 views

Url for random post (in specific category)

I know that a URL formed: samplewebsite.com/?random will redirect to a random post. Is it possible to create a URL that will redirect to a random post within a particular category? samplewebsite....
1
vote
1answer
33 views

Special domain for a page

I have a wp instalation on example.com and want to have secondary.com to show contents of example.com/b (b is a page) but keep secondary.com in the url (not secondary.com/b) I tried this approach: ...
0
votes
0answers
22 views

Allow duplicate slugs for pages and posts

My use case is: I have a two pages, they each have a meta information "language". Posts and pages having same language cannot have the same slug, but with different slugs it is totally fine. Currently ...
0
votes
0answers
30 views

URLs for (MultiSite) link images are always relative

How I can I get WordPress to stop making link-image URLs relative? I'm trying to add logos to the blog-roll widget, but WordPress makes the URLs of the images relative to the current blog. For ...
0
votes
1answer
14 views

bloginfo url in javascript

I'm trying to set <?php bloginfo('template_url'); ?> in a variable on Javascript, and then to set src of an img element, but in the html it's been printed as src="<?php bloginfo('template_url'...
0
votes
0answers
4 views

Add ?piura final url of products generated

I need to add via the functions.php at the end of the parameter ?Piura. Since I am using this code so that all users who have the ?Piura parameter have a special code. The problem is that the url ...
-1
votes
0answers
17 views

how would i have a Page on website with different URL

on my website, I would like the shop to have a different URL but still be part of the same website. when I visit the shop it will display the same menu as the original website is this possible without ...
0
votes
0answers
19 views

Change url based on logged in user/different root?

I'm not sure how to word this question so I'm sure the answer is out there but I'm using the wrong search words. I have a URL where the end remains the same, but the beginning changes based on the ...
0
votes
1answer
15 views

How to show a full page when someone links directly to an image on my site

My site contains a lot of custom images. I've searched the web and found a lot of websites that link directly to the images on my site. Meaning, they link to the jpeg itself, not to the actual page on ...
0
votes
1answer
39 views

Custom Post Type Category URL

I've created a simple CPT named shop which contains some shop items. After that I've added category support to it which works fine ('taxonomies' => array( 'category' )). Then I created template-...
0
votes
2answers
137 views

Giving specific category posts its own permalink structure returns 404

i am trying to give a specific category posts it's own permalink. Followed the steps from this topic (Give specific category its own permalink structure) but the posts are giving a 404 error. Cleared ...
0
votes
1answer
16 views

Does having category name in permalinks affect SEO when having a post in multiple categories?

If I change the permalink structure to the following in the Permalinks settings page in WordPress: www.example.com/%category%/%postname%/ Then I create a post with the slug my-post and add two ...
0
votes
1answer
163 views

sub menu link is not working

I am using a theme which is showing table of content by using this code : <div class="menu-panel"> <h3>' . __('Table of Contents', 'odrin') . '</h3> ...
0
votes
0answers
15 views

Dynamic URL with custom tag permalink

I'm trying to have some dynamic URL. I made a custom tag for my permalink to show the language of the blog, but i'm facing an issue with dynamic URL. The problem is that it only consider 'fr' in my ...
1
vote
1answer
27 views

Colon is Missing In My Website Url in Wordpress

add_action( 'init', function() { add_shortcode( 'site_url', function( $atts = null, $content = null ) { return site_url(); }); }); I'm Using The Short Code [site_url] and My Short ...
0
votes
1answer
15 views

Is there a way to test if a URL is part of the current blog?

In a scenario where, say, your plugin or theme has been given a URL. You want to know, is this URL a URL from this very blog? How would you test if it is?
3
votes
3answers
73 views

Why WordPress automatically removes http from the url of my website's sub domain?

I am witnessing a strange problem in WordPress which automatically removes 'http' from my sub domain link. I don't know why this is happening. Note that my domain is https while it's subdomain is ...
1
vote
1answer
18 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 ...
0
votes
1answer
24 views

Extra url paths as variable

I have this WordPress pretty permalinks structure: https://example.com/house/name (where house define post_type) I want this one url: https://example.com/house/name/2/3 (that works like https://...
4
votes
2answers
155 views

How to check if feed URL was requested?

I'm writing a plugin to block some pages to anonymous users on my site. I already blocked some pages but I can't get to identify the feed page my-wordpress-site.com/feed. I've tried: $GLOBALS['...
0
votes
0answers
14 views

Having multiple URL structure for wordpress blog

I'm moving a blog from hubspot to wordpress and i'm facing an issue, I would like to have multiple structure URLs for the blog, we are a company and the goal is to keep separate news about company, ...
0
votes
1answer
32 views

Query custom post type and custom field by URL parameters

I have a custom post type staff. and a custom field alphabet for posts in that post type. Each staff will be assigned to a letter either A or B ... Z based on the first letter of the staff's name. On ...
1
vote
1answer
9 views

Can I change the URL of a video, or upload a video to a specific URL?

Let's say a video has been uploaded to: https://www.example.com/wp-content/uploads/2019/08/2017-12-21_XXX.mp4 But the URL has to be: http://www.example.com/videos/12/2017-12-21_XXX.mp4 Is there ...
0
votes
0answers
7 views

How can I stop WP from appending a URL to a link that calls a JS function?

I would like to call a JS function on the onClick() event. The problem is WP keeps adding the URL. The function doesn't work because it results in a 404 error. Thanks in advance.
-1
votes
1answer
35 views

Why my wordpress site URL does not begin with my domain?

I'm hosting a web app on my-app.pro, and it's the main domain for the hosting. The containing folder is /home/my-app.pro/www. I'm using a framework, and it does the rewriting job, so all my pages are ...
0
votes
1answer
15 views

Creating a return url for getting data from external api

I am working on a plugin with a payment system. I need to provide a return url for the payment gateway in order to receive its answers. I don't want to create a specific page but to have a kind of ...
1
vote
0answers
18 views

Multiple permalinks for Wordpress post types

I've set a custom permalink on Wordpress so all my blog posts end up as example.com/blog/post-title Where post-title is the title of the post. This helps keep track of all the blog posts vs pages, ...
0
votes
0answers
74 views

Can I change the URL when form is submitted with Caldera Forms?

I have a form on my landingpage. Now, a thank you message is shown when the form is submitted with AJAX so the page isn't reloaded. Is there a way to change the url of the page when the form is ...
0
votes
0answers
15 views

Image from URL Wordpress Plugin

I'd like to know if there is an existing plugin in Wordpress that can do the following - Allows to upload multiple images from URLs - Has the feature to create a gallery/slider/carousel out of the URL ...
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
0answers
41 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
85 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
18 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
44 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
47 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
210 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
36 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 ...