Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

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
31 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
19 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
16 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
13 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
130 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
12 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
162 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
14 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
26 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
15 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
154 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
13 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
31 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
34 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
13 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
65 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
73 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
40 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
203 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 ...
0
votes
1answer
25 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
83 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
21 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 ...