A permanent link to an item (a blog post, an attachment, ...). The default structure is "?p=123", but WordPress can handle "pretty permalinks" and will rewrite them internally to the former version. If you have a question about special rewrite structures you should use the [url-rewriting] tag.

learn more… | top users | synonyms (1)

1
vote
1answer
47 views

How can I make sure attachment pages require a base url?

If I upload an image with the filename 8.jpg then the permalink becomes http://www.example.com/8 -- which I really don't want. How can I make attachments use their mime type as a base for the url? ...
0
votes
1answer
38 views

Stymied by 500.5 error for WordPress on IIS 8 / Windows Server 2012

I'm running WordPress on an IIS test server. mod_rewrite is enabled and I've modified my web.config to support permalinks. c:\windows\temp has been modified to allow Modify access to both IUSRS and ...
1
vote
0answers
21 views

how to change permalinks format for pagination?

Sorry if my question was basic or stupid. Please help me how to do this in wordpress, i m new to wordpress. I have permalinks for pagination page like this www.website.com/customtaxonomy.html/1 www....
0
votes
0answers
31 views

Can a post use a subdomain or different permalinks at the same time?

The design on the website I am working on includes the users being able to pick the location of their website. To me it's like a glorified profile page, but one user can have many websites, and they ...
0
votes
0answers
33 views

Wordpress Multisite htaccess redirect loop

I have a multi-site instance of Wordpress setup for a series of related websites. These work on a sub-directory approach (e.g. domain.com/team-events/). Within one of the sites, I have created a ...
0
votes
1answer
54 views

Top level Pages redirecting to homepage!

For some reason after setting the permalink to any other structure apart from default. The top level pages will start redirecting to the home page. I have disabled all the plugins and change theme to ...
0
votes
1answer
78 views

Different Permastruck Between Ajax Request & Normal Request

i create new post type and the slug can be changed from backend ex: register_post_type( 'job', array( 'rewrite' => array( 'slug' => $slug ); )); $slug is variable that i ...
0
votes
0answers
11 views

How can I add slug/category to portfolio permalink? [duplicate]

My portfolio URL currently looks like this: sitename.com/portfolio/ I would like to add the category slug after so it reads: sitename.com/portfolio/slug/ so that if I go to a portfolio item of a ...
0
votes
1answer
135 views

404 with post name permalinks

So, I have a pretty common problem - I recently upgraded to Ubuntu Trusty Tahr from Precise, and I had to upgrade apache as a result. Now, my wordpress site is accessible, but I am unable to access ...
0
votes
0answers
23 views

Permalink Setting Changes From Post Name to Default After Changing The Page Name

I had to change a page name through theme folder like /currentTheme/ page-eyeglasses.php to ---> page-eyeglasses-1.php to make the page not temporarily not accessible. But after returning the ...
1
vote
2answers
36 views

Replace taxonomy permalinks

I have this permalinks settings: /%postname%/ I have a custom taxonomy issue. I want replace all my taxonomy links (site.com/category/wordpress) to (site.com/category/wordpress/issue/any-child). ...
0
votes
1answer
58 views

Custom Permalinks with meta value not working. Why?

The following code is supposed to work, but it does not (no Plugins activated). In the backend the permalinks are correctly shown for the custom post type, but if called in the frontend an incorrect ...
0
votes
0answers
12 views

Use Post's subcategory in title tag

I changed my title to: %%subcategory%% %%sep%% %%title%% But WordPress doesn't seem to recognize %%subcategory%%, in the end it simply displays - My title How should I change the title to ...
1
vote
1answer
23 views

get permalink and append it

I have product pages which need a button to link to the related appointment booking page. So for example I'll create a page called 'glass-product', and I want to code its template so that there's a ...
0
votes
1answer
102 views

Custom post type and taxonomy permalinks - Structure

Been trying to get a nest of custom post type and taxonomy working (even took a look here) but couldn't get it working 100%. Here is the thing, I created a custom post type texturas_temp and a custom ...
0
votes
0answers
32 views

How to identifty post from its URL in 404 page?

Why GUID is such unstable? Some of the post's GUID are pretty permalinked, but most of them are default. I's using Pippin's function to get the post_id from its GUID, but it's not working if my site ...
1
vote
1answer
60 views

Why can posts never have a number as the link?

Here's something interesting I noticed today - it is not possible to name a post a number - no matter what theme you use, and even if you name a post a long number that has no tag or post-name or ...
0
votes
0answers
16 views

Error Nice url (permalink) ( 'ể' cannot create url 'e' )

Before a long time, i never get this error. Link image error: . When i type the title has my language => wordpress auto create a permalink very nice ( dont have Diacredical Marks ). But update 4.3.1 ...
8
votes
1answer
210 views

Best way to flush_rewrite_rules for custom post type, in a mu-plugins plugin?

I am writing a plugin that instantiates a custom post type (among other things). It is a multisite plugin and lives in the directory mu-plugins. What is the best practice for handling ...
0
votes
1answer
32 views

Can't access WordPress site in subfolder possibly because of .htaccess redirect from root installation?

I currently have one Wordpress installation in the root directory. I have now uploaded an entirely different (and second) Wordpress installation in /beta/ - connected to a second and separate ...
0
votes
0answers
69 views

.html and pagination for custom post type and category

I have a problem. I stand on the site of wordpress and I need to keep the URL. On my old site at the end of pages, of records, categories were .html extension. I have default permalink in wordpress /...
0
votes
1answer
54 views

Link to the post displays ID instead of slug

I've met a strange error on my page. After I do an internal link in my site, like that in the page editor <a href="/page-name"> then in the page source code it displays <a href="/?...
0
votes
3answers
177 views

404 error on subcategory pages

I have seen some other questions and answers on this but unable to resolve at the moment. I have some categories setup as follows: Blog -- Sub Cat The Permalinks are currently setup with custom ...
0
votes
1answer
186 views

Hide uncategorized when no category set

I have the following permalink structure: /%category%/%year%/%monthnum%/%postname% I'm using the code I found here to get rid of the "uncategorized" slug when I don't set any category. URLs are ...
0
votes
1answer
52 views

Search only working on front page (index) , not working on other pages

I'm currently building a custom WordPress template and I've run into a problem with the search box. When I use the searchbox from the homepage, it works as intended. It also works as long as ...
0
votes
1answer
34 views

Get Posts Based on Tag Matching Page Title

I have the following written to retrieve a list of posts that match the title of the page, by their tag. The problem is it does not play nicely with tags that have multiple words (and perhaps special ...
0
votes
1answer
15 views

Permalinks not working in Wordpress

In wordpress I've chosen "Day and name" for permanlinks but I am getting 404. The modrewrite module is loaded, the .htaccess is -rwxrwxrwx 1 www-data www-data 274 nov. 23 13:10 .htaccess i have ...
0
votes
1answer
35 views

All my Post don't show, only show headline on Hompage

I'm new to wordpress. I host my site on Godaddy. Recently, last night, all my post stop showing when clicked. Works fine on homepage, but when click it would respond "Error 404"... Please Help me out! ...
0
votes
1answer
62 views

add_external_rule - rules deleted when visiting permalinks page

In my plugin, I have the following function hooked to register_activation_hook. The rules are added correctly. public function add_rules(){ global $wp_rewrite; $wp_rewrite->...
1
vote
1answer
88 views

Rewrite rule to prettify two $_GET variables while in a new endpoint from a page

I'm trying to create a permalink rule which is a few levels deep. I have a basic page /page-slug/ - I'm appending to it a new endpoint: /page-slug/my-endpoint/ - from here I need to nest one id and ...
0
votes
1answer
64 views

Add URL Rewrite Rule To Wordpress

my link http://localhost/abm/?ct_city=la-jolla&search-listings=true i want to this http://localhost/abm/USA/la-jolla Could you help please.. htpaccss file # BEGIN WordPress <IfModule ...
0
votes
1answer
23 views

How to disable wordpress page rewrite rule?

I am having a problem with some rewrite rules. I am using a plugin that makes requests like this: /pluginname?nonce=123456789&action=submit the problem with this is that my wp installation takes ...
0
votes
0answers
45 views

Change permalinks for posts except those in excluded category

is it possible to change the permalink for certain posts only, depending on their category? The structure at the moment for posts is: Home: site_url (showing posts in category A) Custom page: ...
8
votes
6answers
331 views

Wordpress matching URLs with trailing tildes

I've been handed a vulnerability report(1) that seems to be implying that there may be a security issue in the way Wordpress handles URLs with following tildes. It seems the scanner thinks the website ...
0
votes
1answer
57 views

Permalinks/Pretty links aren't working on my site

I have kind of a complicated setup. When you go to my website you can see that on the menu bar each place is Home|Blog|Forum ... etc. Each of those are part of rewrite rules. IE: Blog is actually ...
0
votes
0answers
46 views

Changing wordpress permalink structure: 404s and blank pages

I have a WordPress website with this terrible custom permalink structure /%category%/%post_id%-%postname%.html and I want to change it to %postname% without losing all my links. I changed the ...
0
votes
1answer
59 views

Difference and usage of uri (e.g. get_directory_uri) and absolute path (e.g. get_directory)

What is the difference uri (e.g. get_directory_uri) and absolute path (e.g. get_directory) and when it the best time to use each?
-1
votes
1answer
40 views

PHP Button Custom link [closed]

At this part of code of a wp template I want to change the permalink url of the "Book Now" button to custom link example: "www.mywebsite.com" byt_render_field("description clearfix", "", "", $...
0
votes
1answer
29 views

Multiple archives for cpt, taxonomies, terms

I have a CPT "corso" I have more taxonomy for this CPT (argomento1, argomento2, ...) I've terms on them. Example: Corsi -argomento1 --mat ---post1 --geometry ---post2 -argomento2 --grammar ---...
1
vote
1answer
112 views

Add “page-a” slug to category link if user visit category link from “page-a”

I have Area pages like below: http://www.example.com/area1 http://www.example.com/area2 On each area page common wp menus are displaying categories. To illustrate: Menu Items: -> ...
1
vote
0answers
22 views

404 when going to /blog

I'm trying to merge an old wordpress blog with a new wordpress site. Effectively all I want is to bring across the posts and link off to them from a link in the navigation called "blog".... simple ...
0
votes
0answers
12 views

Is there a way to combine Permalink Settings?

Image from the Codex on using Permalinks: How might this relate to custom post type archives? They claim that you can create custom URL structures for archives, but the Codex page only talks about ...
0
votes
0answers
36 views

Pages as parents of Custom Post Types

I have currently used code to assign my CPTs a parent page. (This is the tutorial I have been using http://www.gravitationalfx.com/how-to-set-a-page-as-the-parent-of-a-wordpress-custom-post-type/) ...
0
votes
0answers
49 views

How to change permalink structure and keep permalinks for old posts

I'm migrating to WP from blogger and my old permalinks have the structure: /year/month/postname.html In wp for my future posts on I would like to use the /postname.html custom structure. I don't ...
0
votes
1answer
28 views

Custom post type as child of page

I am wondering if it's possible to have a page, let's say called 'books' with some listed books. Next to this normal page we create an custom post named 'books' were we collect our books. Nou I ...
0
votes
1answer
47 views

Custom Post Type Archive template not being called

My question is similar to a number of posts on this site, but I haven't found a solution to my specific issue yet. I'm trying to implement an archive for a custom post type, "ttwi_course". I ...
0
votes
0answers
44 views

add_rewrite_rule questions

I've read several tutorials on the subject, but am not seeming to be making headway here. Ultimately, I am trying to write the following url: example.com/parts/by_model/YEAR/MAKE/POST-NAME/# Where ...
0
votes
0answers
35 views

Non unique Slugs and permalinks

I am migrating a clients site from an old code ignitor app to WordPress, with one of the biggest project briefs being "keep original data intact and make WordPress work around it" ... For almost ...
0
votes
0answers
21 views

WordPress pages that begin with a number return 404

Customer tries to create a WordPress page with slug of the format YYYY-some-description the page 404s. in relation to this https://core.trac.wordpress.org/ticket/11917 I believe, but the difference ...
0
votes
0answers
64 views

WP Permalinks won't work without DNS in nginx (ip/folder)

I am trying to access some of my websites via http://ip.add.re.ss/domain.com so my client can update the website content BEFORE putting it online (pointing the DNS) The website is stored in /var/www/...