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
3
votes
0answers
31 views

Taking a value from PHP_URL_PATH won't work after WordPress 5.5 update

A custom WordPress module takes certain int variable directly from the PHP_URL_PATH roughly like this: private function myIdVariable() { $myid = 0; // Support both URL formats: /path/123 and /...
2
votes
0answers
15 views

How to restore WP 5.4 behaviour where a numeric string could added to each page URL and parsed as “page” in WP 5.5?

In WP 5.4.x, I was able to add a number to the URL for any page, post, etc. (incl. custom post types), which WP interpreted as the 'page' for a multi-page post, even if that page or post didn't ...
1
vote
0answers
26 views

Assign category to new post via URL

There are two post categories in my WordPress site, Blog category and News category. I want to create two links in admin dashboard, each of the links will open post-new.php but a different category ...
0
votes
2answers
58 views

Woocommerce different URL for every table placed in the restaurant

my company is working with different restaurants to digitize their menus so that people dont touch the menu cards in this Covid 19 pandemic, so every table in a restaurant will have a unique qr placed ...
0
votes
0answers
12 views

How to rewrite rule and change product url to categories and product name?

Will really appreciate your help on how to rewrite products urls to be based on categories names (not category slugs). Let's say this is the structure of the categories and the product: Men (slug: men)...
-1
votes
0answers
6 views

WordPress in Image External url Source Add in attachment Custom Post and Post

// $filename should be the path to a file in the upload directory. $filename = 'https://ps.w.org/add-external-media/assets/icon-256x256.png'; // The ID of the post this attachment is for. $...
0
votes
0answers
17 views

Allowing multiple URLs for same Post

For a specific post, I want to create the illusion of child-posts. The current post permalink structure is set to /%year%/%postname%/. So using this post URL as an example: https://example.test/2020/...
-1
votes
0answers
13 views

Which link does Google index in my case?

I have a working plugin that filters and shows vehicle listings on a page using GET parameters. Every type of vehicle has it's own page: example.com/cars... example.com/planes... example.com/boats... ...
0
votes
1answer
12 views

How to construct a dynamic rewrite rule for child pages that passes more than one query var

I get a 404 error parent-page/any-child-page/?var1=x&var2=y&var3=z This is what I have so far: I want to have the rule cover any child page add_rewrite_rule('^project-centers/(...
0
votes
1answer
18 views

Why my URL has an unknown character string?

I'm working on a WordPress website which contains an unknown string of characters behind the actual URL (/?v=11aedd0e4327). I've tried deactivating all the plugins, but nothing changed. I've also ...
0
votes
0answers
11 views

How to show URL as /base/parentslug/childslug/

I am new to wordpress, I am trying to implement to include /base/parentslug/childslug/. in URL. (Example: domain/parent/child) Can u please help me on this.
0
votes
0answers
15 views

Create a “link preview” of cited URLs in my articles

Overview I'm trying to recreate a "link preview" of cited URLs in my articles. For example: my sentence [1]. The 1 in this case points to a site with biomedical publications. I would like to ...
0
votes
0answers
14 views

Is this process OK to replace URL structure?

I need to update the URL format from site.com/parent1/article to site.com/category1/article. I see the process as follows: Replace parent pages with category pages Assign the right category to each ...
0
votes
0answers
21 views

Product with multiple URLs in more than 1 category

I'm building a woocommerce site with Divi. Currently, I have a lot of product that parked under more than 1 category. Each category has its own colour style that differentiate them. As example. ...
1
vote
1answer
39 views

Translate custom post type and taxonomy slug in URL?

I need help how to translate the custom post type and taxonomy when using multisite and multi-language. I am using subdirectory a /en /sv etc. Are using the plugin (Multisite Language Switcher), but ...
0
votes
0answers
29 views

User name in referral URLs

I want to change the referral link structure  Currently it's: https://www.example.com?pkey=K9HBTKOYZ8 I want to change it to: https://www.example.com/?pkey=username User ID shortcode 
 $user_ID = ...
0
votes
0answers
18 views

append currency to URL

I have a wordpress site with multilingual content (WPML) and multiple currencies. What I want to achieve is that I can assign a specific currency through a URL and that that currency then stays "...
0
votes
0answers
13 views

Default link for new inserted image

New version of WordPress sets for the new added image default link to none. I wonder to use some lightbox wich needs to image be with link to media. There is no setting for now, how can i customize ...
0
votes
0answers
11 views

404 error on subcategry archive page

I wonder if you can help. This is, for me, one of the most frustrating aspects of WordPress. This question has been asked numerous times on various forums and there is never a satisfactory answer. To ...
0
votes
1answer
16 views

Remove slashes (both before and after) in relative post url

I've seen a few "remove last" slash, but not how to remove both the first and last slash. I've tried: $post_url_rel = wp_make_link_relative(get_permalink( $post_id )); ltrim($...
0
votes
0answers
24 views

How to create dynamic URLs on WordPress?

I have a site where users can download freeware software. I want to create a dynamic download page. How to prevent the https://example.com/software-name/download/ URL from returning 404. /download/ is ...
0
votes
1answer
174 views

HTTP 403 Error when passing parameters to URL

Our website uses WordPress. When we visit URL https://www.datanumen.com/outlook-repair/?utm_source=adword via browser such as Chrome and FireFox, we can see everything is fine. However, Google Ads ...
0
votes
1answer
28 views

Problems with WordPress multisite directories/url structures and admin access after migration

I'm trying to migrate a multisite WP installation to a new server. The network consists of a simple parent site that redirects users to one of four subsites based on their location. E.g. if a user ...
0
votes
1answer
15 views

what does the symbol “?” mean and how can i edit that page?

I have a site I can't edit the page of it the page contains the following link https://www.testsite.com/?booking how can I edit my booking page
0
votes
0answers
18 views

how to include my homepage and scc in to a plugin

<?php Plugin Name: Contact Form Plugin URl: https:/jeti.com/ Description: my first plugin aplication contact form Version: 1.0 Author: Admin Author URL: https://www.jeti....
0
votes
0answers
15 views

I want to change URLs structure of a classified ads site

I want to change URLs structures of my Classified Ads website and want to set as categories based links https://www.dashingworld.com/ad_category/mobiles-and-tablets/ TO For Main and SUb Categories ...
0
votes
0answers
20 views

Change Wordpress media image URL

I'm relatively new to wordpress development. I installed SSL certificate on my website. The SSL padlock is not visible on some pages and figured it was a mixed content issue due to image urls uploaded ...
0
votes
1answer
41 views

custom endpoints on Custom Post Type return 404 page not found

I am trying to add custom end point url to custom post type posts. After much searching I have added the add_rewrite_endpoints to functions.php function psf_game_endpoints() { ...
0
votes
0answers
53 views

Show/hide page content based on cookie from url parameter

I am looking to show some content on a page based on the parameter in a link. If a link is given to a user https://www.examplesite.com/example-page/?client_feeback=1 then they will see the content of ...
0
votes
0answers
17 views

i need to rewrite a custom URL

i want to rewrite this url: example.com/ygal/1 to be pointed to: example.com/?vk_callback=1 add_rewrite_rule('^ygal/(\d+)/', 'index.php?vk_callback=$matches[1]', 'top'); I have press on save setting ...
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
22 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
1answer
13 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
1answer
10 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
0answers
7 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 ...
1
vote
0answers
12 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
23 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
21 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 ...
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
1answer
74 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=...
1
vote
1answer
15 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
2answers
45 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
0answers
6 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 ...
0
votes
1answer
10 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
20 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
14 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
24 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-...
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=...
0
votes
0answers
25 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 ...

1
2 3 4 5
28