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

Changing Search Page Result URL

I want to change my search result page from: mywebsite.com/s=query to mywebsite.com/s=query&post_type=product. I have no clue how to do this though... could anyone kindly help? I'm not a coder and ...
0
votes
0answers
13 views

Converting URLs with spaces from AWS S3 to DigitalOcean Spaces

I am converting a Wordpess site that references a few thousand URLs whose objects are currently stored on AWS, and I would like to move them to Digital Ocean Spaces. The problem is that when the ...
0
votes
0answers
12 views

URL gives 404 error of my subfolder site when i change permalink

I have Created a subfolder site https://learnforget.com/hindi/, but in this, i am facing an issue. Url of the subfolder works fine when i use default url, but when i try to change my permalink to %...
0
votes
0answers
33 views

How can I make a post sub link?

I need to create a sub link for each post that will contain specific info about the post that I don't want displayed on the post page. I am thinking of making a link as follows, but I'm not sure how ...
0
votes
1answer
20 views

How to Override Page Template if URL matches query?

I have 4 Page Templates that my theme uses for all the pages - Default Template, Template One, Template Two and Template Three. When the relevant Page Template is selected, it loads an Advanced Custom ...
1
vote
1answer
27 views

What is an arbitrary URL?

I have created a plugin for wordpress but I don't understand what an "arbitrary URL" is. Here's what I've found: When installed, the plugin has to make a custom endpoint available on the ...
0
votes
1answer
33 views

How to generate expiring URL of the page?

I have a Wordpress site with sensitive private data and I email the link of the whole page to a client via email etc. How can I expire the link after 1 Session, So if a client opened the link to visit ...
0
votes
0answers
59 views

Encode URL for WhatsApp “click to chat” without loosing accented characters

I built a form with a textarea to write a message. This form is submitted via Ajax to a PHP script that saves data in database and return an encoded URL to send message via WhatsApp click to chat (...
0
votes
1answer
15 views

Getting back a permalink from custom url

okay i have made my own rewrite rule, with the add_rewrite_rule function in wordpress to get a custom url, for an plugin page. add_action( 'init', function() { add_rewrite_rule( 'login/?$', 'index....
0
votes
0answers
14 views

Change Project permalink to custom URL

how do I change the permalink into a custom url? I want to link the project items to another website. Anyone have experience with this? How can I change that permalink into a custom url? For example ...
0
votes
0answers
4 views

using url parameters for a search, but for custom post_type the date is missing from results. I checked the index.php and search.php

I am using search url parameters for a search, "www.gigs.com/?s=piano&post_type=post" and it works - but if I use a custom post type "www.gigs.com/?s=piano&post_type=xdays1&...
0
votes
0answers
8 views

How do redirect custom url to wordpress author page

I am trying to create a custom url and then redirect to the /author/username. Example: custom url :/{author's name} redirect to :/author/{author's name} The custom url is what the user will see as ...
0
votes
0answers
23 views

Multiple slugs for one taxonomy?

I currently have a taxonomy registered with slug moods. So I access the terms with mydomain.com/moods/happy. I also want to access this with mydomain.com/tags/happy. I don't want to redirect. I want ...
0
votes
0answers
19 views

Category base gone after Wordpress update

Problem: After updating Wordpress to version 5.5.1 I noticed that some URLs changed. The way it used to be: Links to the category page: my/website/category/my-category-name Links to the articles: my/...
0
votes
0answers
34 views

Custom taxonomy shared across two custom post types - url rewrites

I'm using CPT-UI to create my custom post types and taxonomies. I have two post types - aulocations and uklocations these work and show up as: /au/locations/{location-names} /uk/locations/{location-...
0
votes
1answer
37 views

How to link current user to their author page through shortcodes

I need a shortcode to link the current logged in user to their author page but I couldn't make the function workable. Found this code based on another similar question here: <?php if ( ...
1
vote
0answers
60 views

Help with Rewrite Rule for Custom Post Type with Query String

I'm trying to get a custom rewrite working: I've got the following URL pattern for a custom post type of 'product': /au/product/product-name-one/?type=customtype1 /au/product/product-name-one/?type=...
0
votes
0answers
15 views

how can I get metadata from .txt & xml files received via URL

I am in no means developper so apologies if this is a dumb question :) I need to get and display metadata in 2 different ways for a radio station website: From a .txt or .xml (I have both) file I ...
0
votes
1answer
23 views

index.php shows up in url

I run two websites on apache2 on ubuntu, site roots are in /var/www/site1/html and /var/www/site2/html. The url structure of both of them is like this: example.com/index.php/%year%/%monthnum%/%day%/%...
0
votes
1answer
17 views

Why my Wordpress website homepage automatically adding cs_preview=true query parameter to the url?

I took a help from freelancer to build a Wordpress website. Now whenever I go to the homepage at <website-name>.com it automatically redirects to <website-name>.com/cs_preview=true. I ...
1
vote
1answer
22 views

404 error when passing “cat” parameter to URL

I encounter a strange problem with our WordPress site. When I check the URL: https://www.example.com/outlook-repair/ Everything is fine. When I pass several parameters to the URL, for example: https:/...
3
votes
0answers
64 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
33 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
31 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
59 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
19 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)...
0
votes
0answers
18 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/...
0
votes
1answer
13 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
24 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
17 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
100 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
30 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
1answer
35 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
14 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
20 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
29 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
196 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
116 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
23 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
52 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
57 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 ...

1
2 3 4 5
28