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
votes
2answers
293 views

How to add wordpress username after url?

maybe u can help to solve this problem. for example i have this link https://direktoriku.com/shopping/?user= and i want to add username after login, like https://direktoriku.com/shopping/?user=admin ...
0
votes
0answers
16 views

Add #primary at the end of navlink permalinks on single posts

I'm trying to add #primary at the end of the permalinks to the previous- and next post on all single post pages, to jump past the header directly to <div id="primary"> when going to the previous ...
0
votes
1answer
693 views

Scrape external webpage for first image and add it to new post

I'm looking for a way to scrape an external page for its first/best/largest image and insert a copy of that image as the featured image of a new post on my Wordpress site. The way that I was hoping ...
0
votes
1answer
21 views

Can a link in WordPress contain a query string that is picked up as $_POST

This question is about a very specific circumstance. The site has one template file that can run a default category query with thumbnail, linked title and excerpt, or it can run a linked title only ...
0
votes
3answers
1k views

Preventing Canonical Redirect for CDN

I want to run my entire WordPress site through a CDN to improve performance (HTML, not just static CSS/JS/media). Lets say the origin server is example.com and www.example.com is the URL where traffic ...
0
votes
1answer
12 views

Dynamic URL with rewrite rule not working

I'm trying to update my link from this: https://dev.brunchwork.com/next-event/?eb_event_id=106098978902 To this: https://dev.brunchwork.com/next-event/[guest_name_here]/[event_id_here] Following this ...
0
votes
0answers
7 views

google search console excluded urls [closed]

I submitted sitemap in google search console. Now in coverage it shows 190 excluded urls. Why google excludes url and how to reduce or minimize excluded urls? why google doesn't want to indexed that ...
0
votes
1answer
25 views

Wordpress get parameter 'unapproved' and 'moderation-hash'

I have a blog site. And I found a suspicious access to my blog post from log. The url format is like this. https://example.com/my-post/?unapproved=420&moderation-hash=...
0
votes
1answer
9 views

Current WordPress Page Title as Search Parameter into A Tag <a href=“www.domain.com/s?=currentpagetitle”></a>

i would like to include an affiliate link as a widget which inserts the title of the respective page as search parameter. <a href="www.amazon.com/s?=titleofthepage">Link</a> I have ...
0
votes
1answer
515 views

wp-admin remove part of the url

This looks like wp-admin remove the subfolder URL but it's not the same problem, because the subfolder part is not a subfolder. I'm working on a clean VM as a host for Docker containers. I have a ...
0
votes
0answers
6 views

How to force non English url slug share to be decoded when pasted?

Is there any solution to copy and paste a non English letters URL and to see the actual decoded link instead the encoded one? Right now when you copy a link mysite.com/non-english-letters from the ...
0
votes
0answers
9 views

How to filter post content and force every link (<a>) made in blocks to return urldecode(<a>) with readable value?

Will really appreciate your help with something. I'm using non English letters in my URL slugs. So every time I add an internal or external link with non English letters to my post (via blocks editor ...
1
vote
0answers
17 views

Why Wordpress plugin url ajax doesn't work?

I need to send information to the plugin folder via ajax. Wordpress has a function for the link "plugin_dir_url (__ FILE__)" which works properly but if I put it in ajax it doesn't work. Function: ...
-1
votes
2answers
18 views

apply styling only to a specific url

I want to apply styling only to a page with a specific URL(not id) in Wordpress. for example to .../something/events kindly suggest only PHP solutions, via funtion.php (not CSS id or class) I've ...
1
vote
1answer
699 views

Per Page Permalink Structure for Page Post Type

I am trying to Re-Write Page URL's so that they END with .htm I was able to do this using... /* Add .htm extension to Page URL Links */ add_action('init', 'htm_page_permalink', -1); function ...
0
votes
1answer
2k views

Change dynamically URL to SEO friendly via .htaccess?

Is it possible to change the URL structure for the specific URL only? Currently: https://www.website.com/brochure/?brochure_id=new-year-guide Desired: https://www.website.com/brochure/new-year-guide ...
1
vote
1answer
14 views

How may I see all the pages on my wordpress website and see when they were created?

My wordpress website has been hacked with malware and it has generated unwanted spam pages on my website without me knowing. I need to remove the spam pages. Is there a way to see a comprehensive list ...
0
votes
0answers
34 views

URL re-direct (without changing the structure)

I need to somehow set a redirect on my site. Let me explain: when I go to www.example.com/aaa/bbbbbb/ and click on "ccccccccc", I get: www.example.com/aaa/bbbbbb/ccccccccc Instead, I need the URL to ...
0
votes
2answers
104 views

How to remove my website link when adding a link?

I'm trying to add links to social media pages on my WordPress website. However, when I add the icon and the link to the social media page and save it, the link automatically adds my website. Example: ...
0
votes
2answers
23 views

wordpress api using rest_route for other pages

Ok, so I am using WordPress rest API to fetch the data using front-end. I am having the plain permalinks and unfortunately, I am not allowed to change the permalinks. So, for https://www.example....
0
votes
0answers
16 views

how to remove this #.XsZOUWhKjIU from my wordpress url

i need help on how to remove this line of code #.XsZOUWhKjIU on my WordPress link, sometimes the code changes but the #. remains the same, whenever i click on a post that code will attach to the link ...
0
votes
2answers
2k views

Use wp_redirect to add a parameter

I am trying to add a function to my child theme to append the currently logged user as a parameter. For example, when the user test1 logs in and clicks on the following page: http://www.example.com/...
-1
votes
0answers
8 views

Can image permalinks be made eqaul to the image urls?

I've uploaded 100 jpg's to my wordpress media library, thinking that the resulting url would be accessible in a companion uploaded (as a web page) Word document containing the 100 hyperlinks to those ...
0
votes
0answers
5 views

Display different content depending on subdomain

I have a main website with the domain azerty.com, I have attached another subdomain which is uio.azerty.com. I'm looking for a solution that let me able to display different content on page depending ...
15
votes
4answers
17k views

Disable Wordpress URL auto complete

I recently noticed that Wordpress tries to auto-complete a URL when it's not submitted in its entirety. E.g. I have a post URL that looks like this: http://www.mysite.com/some-post-title If I browse ...
0
votes
1answer
9 views

URL for archive of custom post type with 2 taxonomy terms

I need to generate the URL of an archive page of custom post types with terms from 2 different taxonomies. The post type slug is "technologies", and the 2 taxonomies of this post type are "...
1
vote
1answer
16 views

Added slug after URL permalink last slash returns different content

I'm a webdev but have zero wordpress experience, and I'm helping a friend. So I have permalinks to posts in this format: https://example.com/some-slug/ However for some reason there are also links ...
0
votes
0answers
13 views

Change URL on Wordpress

On a WordPress blog, to show all items on blog https://client.com/blog/?taxonomy=all, but I want to change to https://client.com/blog/ Is it possible to change URL for this https://client.com/blog/ ...
6
votes
4answers
21k views

Using custom/dynamic “slug” for a page

I have a custom page which uses a template called "Stores" http://example.com/stores/. This page will have a list of states and/or companies as categories. For this system I have a custom post type "...
0
votes
0answers
12 views

Rewrite rule not working, but only when parameter is text

I have a simple rewrite rule that changes something like /locations/?slug=times-square to /locations/times-square/. The same "location" can be retrieved by ID, so the following URL's all work and ...
0
votes
0answers
22 views

i want to change URL of WordPress image or rewrite in runtime

this my images url and I want to change( https://oneclickwebsites.co to https://oneclickwebsites.site) https://oneclickwebsites.co/0373990752233591/wp-content/uploads/sites/489/2019/11/image-from-...
11
votes
6answers
82k views

Redirecting to old domain after migration

I have moved one of my website to a new domain, below is what i did. Backed up database Uploaded all the files to the new server. Imported sql into new server via phpmyadmin Now i have used this ...
1
vote
0answers
26 views

A clean custom rewrite rule for weekly archives

Weekly archives are nearly undocumented, but WordPress can produce them, which I want. Good. But the URLs are ugly, eg. http://example.com/?m=2020&w=18 This gets partially rewritten to /2020/?w=...
2
votes
5answers
6k views

How to update media links in Wordpress after migration?

I migrated my WordPress site to a new host and new URL. I've done all the typical search and replace in mysql and the site works great. However, the links of my images are all missing .co.uk, thus ...
0
votes
1answer
1k views

Use Parent Pages for URL Structure without Landing Page

So this is more a philosophical question than anything, and if I'm asking this in the wrong place, I'm happy to remove the post: What's the best way to use a parent page for structure while keeping ...
11
votes
3answers
48k views

Function to get URL of original uploaded image - full size

I am currently using the following code to get the URL of the featured image of a wordpress post: URL="<?php if (function_exists('wp_get_attachment_thumb_url')) {echo wp_get_attachment_thumb_url(...
0
votes
1answer
1k views

How to remove Base URL Duplication?

I have an issue in the download link, the URL getting duplicate. Like this http://localhost/test/files/http://localhost/test/files/2016/05/testonly.docx same as the live website: http://www....
0
votes
0answers
23 views

Archive filter by custom taxonomies

I have a custom post type (product) and a custom taxonomy (platform). I am also using the base category taxonomy to categorize products. I have registered my custom taxonomy as a query_var by using ...
0
votes
1answer
1k views

Previewing/Updating some Pages causes “The requested URL was rejected” Error

The wordpress site is suddenly having a problem where on some (not all) of the pages, when you click preview page or update changes it gives an error message: "The requested URL was rejected. If you ...
0
votes
0answers
14 views

How to rewrite this custom taxonomy URL?

I have url structure like this: http://localhost:8888/standard/behold_services-range/term but I need it like this: http://localhost:8888/standard/services-range/term in first case 'behold_services-...
0
votes
0answers
7 views

Can a Woocommerce product category URL contain “&”?

I am trying to display a product archive page and the product category slug has a "&" in the title but it doesn't work. I understand the & is used to do URL queries and works as a sort of ...
1
vote
1answer
567 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 ...
0
votes
0answers
12 views

Bulk image link changer

I have been searching for a solution to the below problem, for the past 2 days. I've seen some useful code related to similar issues, but none that addresses my specific requirements. I've tried ...
0
votes
0answers
19 views

Can't GET Variable from AJAX URL

Trying to $_GET two variable from a URL generated by a HTML5 Construct 2 embedded game. http://wordpressexample.com/savescores.php?name=NAME_HERE&score=1337 Using <?php /** Sets up the ...
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
0answers
9 views

Uploading multiple images from url list with php - Wordpress

I have a list of xxxx image urls. 1- I want all images from a field where I can enter a url list to be uploaded to the wordpress media library. 2- The attachment ids of all uploaded images will be ...
0
votes
1answer
12 views

Why does one of my pages not have the option to edit the link?

a colleague of mine broke the ACF functionality of one of our pages by editing it in Elementor, so I recreated it. I should clarify that I am not the admin of the site, just a semi-technically savvy ...
1
vote
4answers
4k views

How to remove “http://” When Echoing URL?

I'm seeking to echo the domain name (url) without the 'http://' (or 'https://'). I've created the following: <?php $surl = bloginfo('url'); $findh = array( 'http://' ); $replace = ''; $outputh = ...
0
votes
1answer
541 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, ...
1
vote
1answer
16 views

password reset link being sent as HTTP?

I was just added as an admin on a WP site. The first thing I noticed is that the "(re)set your password" link in the email starts with http:// How do I fix that? The "View Post" link in Comment ...

1
2 3 4 5
28