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
0 answers
6 views

How do I add a tag slug to a category URL to filter posts?

I want to add an option to my site to filter posts by one specific tag on the category page and at the same time have a nice URL (no query strings). So something like this: https://example.com/%...
user avatar
0 votes
0 answers
21 views

who can help me to fix this agonizing problem? [closed]

I hope you are doing well I faced to one problem , when I want to change the url of blog I should change the permalink section to custum and when the url Is changing , url of whole site is changed how ...
user avatar
0 votes
0 answers
12 views

How to prevent to create same url of post, if the previous was deleted?

Let's say I'm creating a post, it's URL will be: www.example.com/posts/test-article so far so good. Then, I delete it and also remove from trash bin. Again, I create with the same title, and the URL ...
user avatar
0 votes
0 answers
7 views

How to display translated content with custom slug?

I used Polylang plugin to translate pages, So url of english page https://www.example.com/protfolio When I translated this page will be https://www.example.com/ar/protfolio-ar So I can't see content ...
user avatar
0 votes
0 answers
22 views

How can I make this cleaner or smaller? [duplicate]

This code works, but it's going to get huge! I have 150 "a href" to make and this is going to get rough, lol Each role has a custom url. How can I make this cleaner or smaller? if ( ! ...
user avatar
0 votes
0 answers
13 views

How do I structure my permalinks in Wordpress?

I am using wordpress and all I want to do is make the URL appear in the form where, Blogs is mentioned and then the blogname. But I want this structure only when someone visits blogs page. The blogs ...
user avatar
  • 1
0 votes
0 answers
12 views

Create Custom URL structure for specific Post category using Post ID instead of post name

My Custom Structure is set to "%postname%/" This works as expected, but for Posts with the Category "Latest News", I would like to change the URL structure to be "%postid%/&...
user avatar
0 votes
0 answers
14 views

How to redirect old permalinks from https://exmaple.com/category/post_id to https://exmaple.com/category/post_id.html

How to redirect old permalinks from https://exmaple.com/category/post_id to https://exmaple.com/category/post_id.html
user avatar
  • 1
0 votes
1 answer
37 views

Passing values through url for checkbox fields with same name to get?

Look to this images For example chose "Ajna" then select "Residential and Hotel Apartment" after click Search Properties => I need to show items that have these categories <...
user avatar
0 votes
0 answers
6 views

URL redirection

I want to config a button so when the user click it a new tab will open and the old tab should be redirect to another URL. How can I make this happen?
user avatar
0 votes
1 answer
16 views

How do you make homepage redirect to it's slashed version?

I'm running a clean WordPress 5.9.2 local setup. My permalink structure is this: /%postname%/ When I visit http://example.com/sample-page, I get redirected to http://example.com/sample-page/, just as ...
user avatar
  • 564
1 vote
0 answers
32 views

Best action hook for placing ical requests

I would like to offer an iCal or webCal request on one of my pages. Which hook would be best to intercept the request that comes via URL? At the moment I use the following hook for this: add_action ( '...
user avatar
  • 11
0 votes
0 answers
12 views

Weird urls after moving site from local env to a server

I've noticed after moving website to a server post slugs started looking something like 78a6a04c0d498postname78a6a04c0d498.
user avatar
0 votes
1 answer
12 views

The URL of images on my website changed after being set as featured image

When I upload the image, it is https://www.mywebsite.com/wp-content/uploads/2022/03/image-name.jpg After I set it as a featured image, it is like: https://www.mywebsite.com/wp-content/uploads/...
user avatar
0 votes
0 answers
5 views

How to get previous and Next Post Url in the_post_navigation

<?php the_post_navigation( array( 'prev_text' => '<div class="na-prevpost"> <a href="#"> <i class="fa fa-angle-left"></i><span>...
user avatar
  • 9
0 votes
0 answers
6 views

how to achieve this permalink abc.com/CPTName/CustomPostTypeCategorySlug/categoryname

I have created a cpt named blog. Registered taxonomy for blog as blog_category. I have a taxonomy-blog_category.php for displaying all categories of blog. When i click on a category the url i get is: ...
user avatar
  • 101
1 vote
2 answers
34 views

Append a query string to the end of every URL

I'm trying to append a query string to the end of every URL for logged in users for cache busting purposes. Here is the code I have but it doesn't seem to work. Any ideas? function add_admin_qs($url){ ...
user avatar
  • 21
0 votes
0 answers
22 views

How to hide particular plain text with link from different subscribers

I have a question about how to hide particular plain text with link from different subscribers? For example if user_A logins to dashboard page he will be able to see only text with URL "Client A&...
user avatar
0 votes
1 answer
21 views

get main URL from subdirectory with php

I have a WordPress site that contains multiple subdirectory installations of WordPress with individual databases inside one WordPress installation, and I want to link them together in the themes. But ...
user avatar
  • 15
0 votes
0 answers
14 views

How to fix broken URL - https://mywebsite.com/comments/feed/

I ran a site audit on SEMrush and it says I have a ton of broken URLs that are https://mywebsite.com/comments/feed/ I have installed a plugin called Disable Comments running. How can I fix this issue ...
user avatar
  • 1
0 votes
1 answer
38 views

How to get a page url segment on wordpress?

I've created a regular wordpress page named "user" which is using a custom template. This page is supposed to be called like so: www.site.com/user/<ID> Is it possible to get the ID ...
user avatar
1 vote
0 answers
29 views

Adding rewrite rule dynamically for search results redirecting to 404 URL

We need the search url structure like the below URL : https://siteurl.com/in/chennai/accountant/ We have already a post url with same structure for single post detail page URL : https://siteurl.com/in/...
user avatar
  • 11
0 votes
0 answers
9 views

query variables for custom taxonomies

Is there a way to encode custom taxonomy and term as query variables in URL? I need it for my custom table derived from WP_List_Table, where I construct links to filter according to terms. For example,...
user avatar
  • 381
0 votes
0 answers
20 views

Thousands of unwanted URLs/pages with "0" in slug created

We’re experiencing a weird problem which neither our specialized hosting provider WPEngine nor several WP experts could solve so far: Thousands of unwanted URLs/pages are created based on existing ...
user avatar
  • 71
0 votes
1 answer
40 views

Changing siteurl in the database not working

I'm trying to change siteurl and home in the database, but whenever I try to change after 5 seconds they automatically change back to the previous url. Is it related to the server?
user avatar
  • 13
0 votes
0 answers
28 views

Redirect unloggedin users

I added the following code via the cPanel to the function.php file. add_action('template_redirect','woo_check_loggedin'); function woo_check_loggedin(){ // this condition checks for certian ...
user avatar
0 votes
1 answer
44 views

How do you code a featured image into an XML as a jpg link, instead of using a data-id number?

All I want to do is get Wordpress's featured image XML code to use a jpeg link as the meta_value, instead of the image gallery data-id number. Basically change this code: <wp:postmeta> &...
user avatar
0 votes
0 answers
19 views

Change language on website and change currency with url query

I got plugins that change language automatically, such as loco translate and Gtranslate. I need help when the user changes language also the currency if someone chooses the Spanish language then the ...
user avatar
  • 1
0 votes
0 answers
35 views

Different url to same page (with dynamic content)

I have a custom php script that in a specific page of my wordpress website is generating a dynamic content (ie. page "mysite.com/citydetail" that will load a list of places specific for that ...
user avatar
  • 11
0 votes
1 answer
35 views

dynamic URL rewrite

I want to rewrite the dynamic URL https://example.page/detail-view/?mediaId=2316 and get the SEO-frendly URL https://example.page/detail-view/2316 instead. How can I achieve that? Thank you in advance....
user avatar
0 votes
0 answers
26 views

How Change URL in Pagination pagebreak no plugins wordpress?

i’m newbie wordpress developer and I have a problem with my pagination URLs, default url pagebreak wordpress like this https://stagingforweb.donot.net/perencana-keuangan/cara-tepat-klaim-asuransi-...
user avatar
0 votes
0 answers
30 views

How rewriting a url to make it SEO friendly

I have created a template page Filter in which I have a form for selecting a category and a tag for the posts. I use $_GET to retrieve the value of the selection. The link that is received is in the ...
user avatar
0 votes
2 answers
30 views

Will get_bloginfo('url') return URL with backslash?

Based on my test, get_bloginfo('url') will not return backslash, so it will return URL like this: https://www.example.com/blogs In this post What is difference between get_bloginfo('url') and ...
user avatar
  • 41
0 votes
1 answer
45 views

How to link current logged-in user to their author page via URL (Beginner)

I require a URL that links the current logged-in user to their author archive page. I came across some code from a similar question here (see below). It works for me but unfortunately, it links to the ...
user avatar
0 votes
2 answers
76 views

Add link to php field text on wordpress form

I have bought a wordpress template but the developers say they cannot help me with what I need. The theme has a hotel reservation system integrated, and the form brings a field to “place” the user ...
user avatar
0 votes
0 answers
23 views

Can I show category name in url for only one of my categories?

I have several categories in WordPress. I have set the Permalinks in WordPress Settings as https://www.example.com/sample-post/, without the category name. For some reason, I have to show the ...
user avatar
0 votes
0 answers
34 views

Fetch URL parameter

I have an URL http://127.0.0.1/wordpressbosta/team/?team=teamOne. I would like to fetch team value teamOne in functions.php like below. function get_data() { echo json_encode($_GET['team']); ...
user avatar
  • 377
0 votes
0 answers
9 views

Change the full permalink (URL) of a single post by connecting it to a specific page

I am using a WordPress theme named Doctery in which the posts are divided to a few separate categories including services, team members, clients, portfolios and default WordPress posts. Apart from the ...
user avatar
0 votes
0 answers
9 views

How to make a seo friendly URL of 2 different pages with same words

my current structure is like this: I have /Homepage/Insurance Category which is page that contain links to all sub pages (which are types of insurance products). for example: /Homepage/Insurance/Car-...
user avatar
0 votes
0 answers
20 views

WordPress posts have a different URL to the index

I'm at a loss here to what I may have missed but the URL structure of my posts (single.php) is different to the one for the blog index (home.php). The URL for the blog index is {DOMAIN}/news The URL ...
user avatar
  • 145
0 votes
0 answers
134 views

how can I change all wordpress media file url to custom cdn url?

any function can apply change all image URLs to CDN instead of modifying media.php in wp-includes folder ?
user avatar
0 votes
1 answer
50 views

Change of category structure will cause two kinds of URLs for one post

I have changed the category from "file-recovery" -> "zip-file-recovery" to "file-recovery" -> "archive-and-backup-file-recovery" -> "zip-file-...
user avatar
  • 41
0 votes
0 answers
22 views

How to save page URL as a favorite

I'm building a WordPress site with dynamic pages. I want to allow users to save each page like a favorite and then be able to view them and delete them. Since my pages are custom pages that are ...
user avatar
  • 1
0 votes
0 answers
19 views

Make a post inaccessible without a unique ID in the URL

I created a custom post type to build and send proposals. I protected the posts with password, the password being the email address of the client (value of a custom field). Even if this is already a ...
user avatar
  • 1
0 votes
0 answers
21 views

Wordpress option com_jce should not work

I have a Wordpress site that is getting hits from abusers trying to see if the site is Joomla. Can you tell me why their posts to index.php\option=com_jce returns HTTP 200 response code if Wordpress ...
user avatar
0 votes
1 answer
191 views

Get the URL of the page from which an ajax request has been launched within ajax callback

I'm calling a server-side function written in PHP via wp-ajax. The server-side function eventually redirects to another page for an authentication step, and then redirects back to the initially shown ...
user avatar
  • 286
4 votes
2 answers
100 views

Pulling a parameter out of the URL of a WP link without "?" or being sent to a different page

I have a specific requirement that my referral link be as simple as possible to type in manually (customer base is very low skilled) while simultaneously referring to an employee number who was ...
user avatar
0 votes
0 answers
24 views

Unable to display multiple parameters from url by javascript through shortcodes

From our CRM I can generate URL's for customers that includes parameters. I want to use the information stored in this parameters to show dynamic content to the customers. Example: www.example.com/...
user avatar
0 votes
0 answers
16 views

Taxonomy page loading wrong data

I am currently having trouble creating a taxonomy-{taxonomy}.php page. I already have one set up for another taxonomy but when i try to create the page for the taxonomy i want “thema” it doesnt load ...
user avatar
0 votes
0 answers
20 views

Custom route and extract data from slashes and parameter

some external website is going to send a specific data into a WordPress site and need to extract and process it. The data is coming trough URL (between slashes and as parameter): domain.com/login_sso/...
user avatar

1
2 3 4 5
30