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)

0
votes
1answer
43 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
10 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
80 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
30 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
49 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 ...
6
votes
1answer
165 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
28 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
61 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
41 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 ...
0
votes
3answers
131 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
153 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
39 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
32 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
14 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
34 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
42 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; ...
1
vote
1answer
75 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
58 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
20 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
39 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
308 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
49 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
45 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
42 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
37 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
28 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
109 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
33 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
44 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
46 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
42 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
33 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
20 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
51 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 ...
0
votes
0answers
17 views

Pointing, two or more archived Blog posts to the same permalink (Single post page)

Can two or more posts in an archive each point/link to the same single post page (permalink). If so, how do I achieves this.
0
votes
2answers
36 views

WordPressMU: URL change and broken permalinks/links

The URL of our old WordPress MU (it is WPMU, not WordPress Multisite) installation with several blogs has changed. This URL change was updated directly in the DB in the wp_blogs and wp_site tables, ...
0
votes
0answers
20 views

Custom Post Type URL Rewrite

I am looking to create the following URL structure for a post type, /%post_slug%-blah/, and have an archive URL of /blah/. I can create this by doing custom rewrite rules, setting a post_type_link ...
0
votes
0answers
39 views

Create relationship between two custom post types and use in permalinks?

I have two custom post types defined: Store Product The URL structure for Product is example.com/product/product_title, where product is a static word. How can I add product to the store ...
0
votes
1answer
18 views

Custom post type permalink issue [duplicate]

I already have a 'custom structure' for my 'Posts', e.g. example.com/newsarchive, so my 'Posts' follow: example.com/newsarchive/welcometonovember Now I am expanding and created a new custom post type ...
0
votes
1answer
25 views

Ignore postname in permalink

I want to set my permalink as: www.example.com/category/postid/postname But I want WordPress to ignore the post name at the end, because I may change it later. How can I do it with .htaccess, or ...
1
vote
1answer
115 views

Replace menu permalink/hyperlink with only menu name/slug

I don't know if i am asking this correctly, but i will try. I am doing this for history pushstate purpose. Code to get menu wihout ul and li: $topmenu= array( 'container' => false, ...
0
votes
1answer
39 views

Custom post type and category permalinks

I would like the URL structure of my site to be like this: http://localhost/testwp/books/education/my-title-book I am using the WP Types plugin and I have created a custom post type, books, and a ...
2
votes
1answer
103 views

Remove Taxonomy Slug when No Taxonomy is Assigned to Custom Post Type?

I have a custom post type called ‘sets’ and a taxonomy set up under it called ‘project’. Most of the posts under this custom post type will be assigned one project term, but not necessarily. When a ...
0
votes
1answer
28 views

What happens to the permalink that use %postname% if I change the post name

In my permalink i use only postname What will happen to the links if the post name changes? Will it still work ? Otherwise what is the best practice? With love
0
votes
1answer
38 views

how to change single post link

I have made a website for a client which involves products tab in navigation. Products are the posts that being posted in "posts". I have a front-page.php which is static. posts are displayed in ...