A uniform resource locator, abbreviated URL, also known as web address, is a specific character string that constitutes a reference to a resource.

learn more… | top users | synonyms (1)

0
votes
0answers
21 views

get_query_var(“page”) empty if page is 1

I have a paginated search that is set to clear its search parameters if get_query_var("page") is empty. This works fine for every page except 1. I have set my page links as http://www.domain.tld/page-...
2
votes
0answers
35 views

How to create a custom page base on URL for Wordpress?

How can I achieve the following: example.com/mycategory/my-first-page example.com/mycategory/a-random-file-name-page If the user enters http://example.com/mycategory/*, it will load a standard ...
-1
votes
1answer
21 views

map urls to plugins

I'm just getting started in plugin development and written some admin functionality by referring to the codex. However, I now want to add some functionality to the front end, but using some URLS such ...
2
votes
1answer
31 views

Check what is at URI (post, archive, etc…)

Is there a way or function where you can pass in a custom uri like uri-part/uri-part2 and we can check what is under this address? I want to check if a uri hosts a post, page, archive, category, ...
0
votes
3answers
17 views

Create Custom Post Type as page

I need to save URL's from old site, in options-permalink in admin wordpress i use /blog/%category%/%postname%.html I do it for blog posts. But i don't need to get it for CPT I have created CPT ...
0
votes
3answers
51 views

What does this structure of the URL mean? http://www.example.com/?i=0

I have been asked to switch between the existing front/home page of a website which has the URL http://www.example.com to a differnt page with the URL http://www.example.com/?i=0 It's a very old ...
2
votes
3answers
2k views

WooCommerce change category url and product base

I want to display the url's like this: for Category: /webshop/categories/hoodies/ for products: /webshop/categories/hoodies/test-product how is this possible without giving me 404 not found ...
0
votes
0answers
33 views

Accessible Subcategory URL's pages without using .php hack

I'm attempting to setup a custom URL structure within posts that makes all parents and sub child's accessible, but all attempts have failed with various errors. My category structure looks something ...
0
votes
1answer
47 views

Change permalinks for specific pages

How can I change permalinks for selected pages? For example, static page will be like this example.com other sub pages will be example.com/postname/ Right now I can't achieve what I want with ...
0
votes
0answers
29 views

Custom Post Type Re Write not working

I am trying to get my custom post type single.php URL to have the category in it. I am using the default wordpress categories (I didn't register a custom tax.). My current URL (from the base) looks ...
0
votes
1answer
30 views

Get custom posts by segment of the URL

Please give me a suggestion this situation of mine. I have a custom post type "house". It comes with 2 custom taxonomies: "region" and "status". I would like to get out all the "house" which are "for ...
4
votes
1answer
38 views

How to remove /index.php/ from URL's

I'm a pretty basic WordPress user and know enough to install a theme and customize it. I'm helping a friend out with a new website and installed WordPress 4.4.2 in the root directory via cPanel on his ...
0
votes
2answers
36 views

Problem with images URL after filter applying

I have this code in my functions.php file: function user_content_replace($content) { // it's not a URL, let's apply the replacement if (!filter_var($string, FILTER_VALIDATE_URL)) { $...
0
votes
0answers
26 views

Passing variables through links?

On my website, www.tremarctos.com, I have several photo galleries sorted by category. Clicking on a photo sends one to an individual photo post, and one can navigate between individual photos using ...
29
votes
5answers
37k views

What's the difference between home_url() and site_url()

My understanding is that site_url() returns the location where the wordpress core files are. So, if my blog is hosted at http://example.com/blog then site_url() returns http://example.com/blog But ...
0
votes
1answer
18 views

Post URL duplication adds numerical value

I thought that belonging to these different categories url naming posts the same would be treated as distinct. Categories: Home Hotel Posts: street street URL generated: www.my.com.br/...
0
votes
1answer
45 views

Generate one time URL

I need to implement one time URLs in a wordpress website. I found this script on phpclasses website and I integrated it in wordpress and it seems to work. I think this script can also be useful to ...
0
votes
0answers
13 views

Custom rewrite rules on custom posttype

I've got a problem presented to me by a client which I can't seem to fix. They have a Wordpress website with a custom posttype 'projects' This custom posttype has a custom taxonomy 'categories' What ...
0
votes
0answers
47 views

taxonomy child term url change

Currently I have custom taxonomy called "client_categories" under custom post type "press_centre" I want to change url from www.mysite.com/clients/client1/image_library_1/ to www.mysite.com/clients/...
0
votes
1answer
61 views

Remove All Query Arg

Is there a way to remove all query arg parameter in the URL added via add_query_arg(); without knowing the query key available for removal? I'm looking for this kind of function remove_query_arg_all()...
2
votes
2answers
2k views

Update media file url in wordpress media library

Currently my videos are hosted within my wp installation. I want to move all videos to my new server. Currently, my media url are as follows http://mysite.com/wp-content/uploads/video01.mp4 I am ...
1
vote
1answer
26 views

URI returns a post when it should return a 404

Morning All I have a question and I think I have a solution as well, but I wanted to ask to see if my thinking is correct. I have wp site live at http://www.phmotorcycles.co.uk and I have just found ...
-2
votes
2answers
46 views

How to change Ugly link?

How to change Ugly link from www.test.com/?p=123 to test.com/123 I want to make two types of links: www.test.com/123-my-post-title-name www.test.com/123 The latter should lead ...
1
vote
1answer
85 views

My php header() function is not working [closed]

// Edit: I figured it out. Hours and hours of banging my head against a wall and it turns out all this needed was one simple line: ob_clean(); Somewhere in some included file there's probably one ...
1
vote
0answers
25 views

Adding target and _blank as it's value to the allowedtags

I know that WordPress uses KSES to parse HTML and strip invalid XHTML so I took control of $allowedtags in my themes functions.php file inside a function then added 'target' keyed to an array which ...
1
vote
2answers
257 views

Start post pagination at 0 instead of 1

Is it possible to start post pagination count at zero instead of 1? I want the URLs to be like this: ../page (Foreword) ../page/1 (Chapter 1) ../page/2 (Chapter 2) But by default the ...
0
votes
1answer
29 views

Correct (and secure) way to escape url when using href attribute

maybe it's not such a big deal as I think it is, but I want to escape href attribute with some text. Which one of these examples is the "correct" one - and does it actually matter? <?php printf( ...
0
votes
1answer
36 views

Nginx WordPress and another Web app URL structure

I have got WordPress installed on my root example.com/ Website. Also I have another Web application that on example.com/my-app/ which has got ugly links like example.com/my-app/file.php?arg=value to ...
0
votes
1answer
16 views

Wordpress URL question

I have a web page that I created and in doing a google search for the company and my name a weird page came up. For private reasons I will not reveal the company name so I will use a fictitious ...
1
vote
1answer
25 views

How to handle this URL Structure. Keep getting “page not found”

I have created two Custom Post Types, named "test" and "articles". I am trying to achieve below URL structure: site.com/test/post-title - for post type test. Works fine. site.com/test/articles/post-...
0
votes
1answer
586 views

Best way to hook a custom url?

Let say I've a custom page with slug created "/products", I want user will be able to POST to a form with url "/products/create" and allow us to render some JSON output. The "/products/create" page ...
8
votes
7answers
26k views

Redirect user to original url after login?

I have a function that redirects users to the login page (home) if they're trying to access any other page without being logged in, here's how it works: function restrict_access_if_logged_out(){ ...
0
votes
0answers
35 views

Remove digits from slugs in post or category permalinks

Assume we have two products with same name from two different vendors. For example, it's "Juice" from "vendor1" and "vendor2". "vendor1" and "vendor2" are created as categories, and if I create two ...
1
vote
1answer
71 views

pass user id in slug and get user information

I have user id and I am getting all information using user id on page with slug. When I pass the user id in slug then I am not getting user information on page. For example I have www.mysite.com/...
1
vote
2answers
663 views

Remove subfolders from URL

I am having a tough time removing the subfolders from the URL in my WordPress site. Currently, the URL format is: www.mysite.com/subfolder/index.php/category/postname I would like to remove both the ...
1
vote
2answers
22 views

Avoid the removal of “https:” from URLs

Wordpress is changing all my urls from "https://www.example.com/..." to "//www.example.com/..." for example: <link rel="canonical" href="//www.example.com/"/> I don't want this to happen, ...
0
votes
0answers
28 views

change url for static files in /wp-admin with a cdn url

I recently purchased a CDN and used a plugin to change the site url for all static files in the "/wp-content" and "/wp-include" folder to the cdn url. Is there a way to change the site url for ...
0
votes
1answer
262 views

Accessing a file saved outside webroot in a wordpress post

I have some files saved outside the webroot and need to allow posts in WordPress to be able to access the files. Following is the location of one of the files: /home1/Mathone/TESTS/Test1/index1....
0
votes
0answers
17 views

Picture 404 error for all absolute images when moving off localhost?

I recently moved to a server for the first time away from localhost and after changing all of the localhost references in the database and wordpress project none of the pictures uploaded work that ...
2
votes
5answers
6k views

Add menu and submenu in admin with a URL instead of slug?

I use this function and hook: function mysite_admin_menu() { add_menu_page( 'Categories', 'Catégories', 'administrator', 'categories', 'a_function' ); add_submenu_page( 'categories', 'Manage', '...
0
votes
1answer
65 views

How to capture a variable query string, then append it to all URLs in a Wordpress site

I have a site in which people will be sent there with various promo code query strings (that will change all the time), i.e., www.example.com/?source=emailad How would I capture the query string, ...
0
votes
0answers
34 views

Modify custom taxonomy permalink to allow 2 additional parameters?

I have a custom post and taxonomy set up. The only section I have in my website are taxonomy archives. The archive page lists the posts from the current taxonomy term. Each post is viewed in a modal, ...
1
vote
1answer
93 views

How to make draft posts or posts in review accessible via full url / slug?

I am running a website with WordPress 4.2 and have changed the way draft posts or posts in review status are displayed to non logged in users (these posts are, too, visible to anyone who visits the ...
0
votes
1answer
24 views

WordPress Address (URL) Reverts back

I've changed my WordPress Address (URL) to just http:// it was http://www. which is causing issues. However once I've changed it to http:// it reverts back to http://www. I've tried doing it from ...
0
votes
1answer
24 views

Content duplication issue with dynamic URLs

My WordPress blog creates many dynamic URLs, which creates a content duplication issue for my website. As each page gets a different live URL, it's being considered as a duplicate page. Why are ...
3
votes
1answer
4k views

Is it safe to use $_SERVER['REQUEST_URI']?

I've looked at other answers and I see that $_SERVER['REQUEST_URI'] is usually recommended and is the accepted answer for getting the current page URI along with $_SERVER['HTTP_HOST']. I looked at ...
0
votes
0answers
14 views

How to write custom rewrite rule for custom post

I have make a custom template which fetching result from sugarcrm. and its url is following : http://www.ideadunes.com/newideadune/career/apply-form/?category=Android&job=Android%20Developer&...
0
votes
1answer
27 views

How to create URL for Pages/Posts

I am not able to create a URL in WordPress like: www.example.com/lp/time-cost/free-trial When I add this URL, it's automatically changes to: wwww.example.com/lptime-costfree-trial Why are the ...
0
votes
0answers
19 views

Developing site locally and “-2” is appearing next to a few custom template URL's

I'm looking for some advice with this as I'm not sure why it's happening or how to fix it. Following the instructions here: Editing the Number at the end of Page URLs / Editing Page Slugs does not fix ...
2
votes
1answer
51 views

Is revealing just the AUTH_KEY a security issue?

I am troubleshooting a Wordpress plugin issue. It is a plugin that generates a zip file of existing files on the server and returns a link to download the file. The plugin https://wordpress.org/...