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
444 views

Embed image in post from external url

Is there a way in Wordpress that I can embed an image to a post when I want to include it like this: <img src="....." /> So I want to add this manually. Is this possible? Now, I get the URL, ...
0
votes
0answers
42 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 ...
1
vote
1answer
472 views

Remove Trailing Slash from Category Base and Tag Base

I'm working on a custom static site generator using WordPress. I can't figure out how to remove the slash that comes after the category base and the tag base. I want to replace each with a dash. I'm ...
2
votes
2answers
2k views

Add a query string to ALL links on site

Our client would like to embed his site into an iframe in their software backend. I get a query string on the first link but need to make sure that string persists across URLs for all links and ...
0
votes
1answer
1k views

Page with the same name of a category

I've a category, let's say "testcat". I want to create some pages which the final url should be "http://example.com/testcat/pagename". To do this, I should create a page named "testcat" and then a ...
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 ...
9
votes
3answers
30k views

use query string in URL to display content on the page

I'd like to say something on my page based on what page the person got there from. I can set up the link to that page to be: www.example.com/page?parameter=myparameter Is there a way I can access ...
0
votes
1answer
468 views

How to properly setup MAMP and XIP

I have a local WordPress install running through MAMP. It's local domain is example.dev I also have the install working with xip.io. It's at example.dev.0.0.0.0.xip.io (0's being my ip address). ...
0
votes
2answers
5k views

Use an anchor link to open an iframe inside a Wordpress page

My Question: How do you make an anchor link to an offsite webpage that when clicked opens up the offsite webpage as an iframe that is inside a new Wordpress page where the Wordpress header and footer ...
0
votes
1answer
143 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 ...
9
votes
7answers
18k views

Get current URL (permalink) without /page/{pagenum}/

How can I retrieve the current URL (whether homepage, archive, post type archive, category archive, etc) but always without the /page/{pagenum}/ part if it's present? So, if the real URL is: example....
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
37 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/?...
1
vote
2answers
237 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 ...
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
585 views

Double slash in the_terms URL

I recently moved a parent category and its children from the default categories taxonomy to a new custom taxonomy. The data moved over just fine and posts are properly associated with the company name ...
0
votes
1answer
57 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
1answer
37 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
30 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
18 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
50 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
1answer
103 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
13 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 ...
0
votes
1answer
17 views

correctness of URL

if I call shortcode in some page, then this address is correct? http://mypage.com/recipes_page/?strona=2 Wordpress automatically add "/". As far as I remember, it has always been: http://mypage....
0
votes
1answer
22 views

Get arguments from URL

I have example link http://mysite/login?user_id=6?reg=true how get user_id and reg values form $_GET? if i write: echo ($_GET['user_id']); Then get this: 6?reg=true And i try : echo ...
4
votes
1answer
10k views

why does anchor name add a slash to url?

I am trying to do what should be some the most basic html, but it's not working for me. Here is my code: <a name="rocket"></a> <div> <h3>The Title</h3> <p>some ...
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
0answers
21 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
24 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
38 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
89 views

Require advice handling a URL redirect from a Third Party. URL Params need to populate and then forward to payment

I'm looking for some advice in regards to how I approach dealing with a redirected URL with params. I have a client, let's say Client #A. They have a WordPress website we previously created with ...
0
votes
1answer
32 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
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
732 views

Change Wordpress comments url / word

Is this possible? For example, I want to change http://mysitesitesite.com/post-name/comment-page-1/#comment-452 to http://mysitesitesite.com/post-name/custonname-1/#customname-452 What should I ...
0
votes
0answers
20 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
235 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
1answer
198 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/...
0
votes
0answers
62 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 ...
4
votes
1answer
3k views

Add forward slash on categories url (serve one version of a url)

How can I a add forward slash on categories URLs and serve only that version of a category (meaning URLs not ending in forward-slash will redirect to URLs ending in forward slash). I manage to remove ...
0
votes
2answers
41 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 ...
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&...
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 ...
1
vote
3answers
6k views

WordPress and $_GET Params

This is an odd problem that I have never run into before with WordPress. I have a site, permalinks enabled. The url can be http://mysite.com/page-name/?anyParamName=testing then when I use print_r($...
1
vote
1answer
36 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
62 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 ...
48
votes
10answers
73k views

Remove slug from custom post type post URLs

It seems that all web resources based on the subject of removing a custom post type slug ie yourdomain.com/CPT-SLUG/post-name are now very outdated solutions often referencing pre WP version 3.5 ...
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, ...