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
2answers
998 views

Custom URL rewrites for templates

I need to rewrite some URLs to custom templates. For example, I have a page at domain.com/page, and when a user clicks 'remove' on an element, it goes to domain.com/page/?remove=54. I'd like it to ...
0
votes
2answers
621 views

WordPress author.php template does not work with custom permalink structure! Help!

I just discovered a weird problem in my WP. The author archive (author.php) returns 404 error ONLY if i use custom permalink structure like /%postname%/ it shows up fine when I use the Default ...
0
votes
1answer
2k views

Writing Custom Rewrite Rules that Incorporate Category for Custom Post Types?

I'm registering a Custom Post Type and in the rewrite array I am trying to do something like this: 'rewrite' => array('slug' => "explore/resources/".$CATEGORY, 'with_front' => false) I ...
0
votes
1answer
41 views

Load custom PHP on a custom URL via a plugin

I am looking into having a plugin developed that loads a PHP script (myscript.php) on a custom URL. It's very important to achieve this functionality with a plugin. Example: example.com/myscript - ...
0
votes
1answer
26 views

Get a link to paged(<!--nextpage-->) part?

I want to get a link (like get_permalink($id) ) to it's specific page of a post (created by <!--nexpage--> tag).. how to achieve this?
0
votes
1answer
23 views

Should there be a trailing slash in the permalink

So which is better ?? /%post_id%/%postname% or /%post_id%/%postname%/ from a wordpress point of view in terms of performance and SEO. Does it matter. Google has big discussion here. But its not ...
0
votes
1answer
26 views

Modify get_permalink with a specific filter

I'm trying to modify the get_permalink function to return a custom url, as: function my_function( $permalink, $postID ) { $external_link = get_post_meta( $postID, 'external_link', true ); if( ...
0
votes
1answer
22 views

how to find duplicated permalinks?

I've got a duplicated permalink somewhere, so I can't name the new one like that. Normally, I simply check the other posts, categories, media, even on the thrash. But this time I can't find any ...
0
votes
1answer
55 views

Custom permalink structure with %postname% in front of domain name

We are running a software review website, and we have a very large amount of reviews currently done, and we would like to restructure if its at all possible. I would like to know if there's a chance ...
0
votes
2answers
34 views

Configuring Home Page Address

I though this was a simple issue. When i type in the browser: www.example.com it changes to: www.example.com/home/ This delivers the proper contents from the Home page, but i wish to stay showing ...
0
votes
1answer
21 views

How Can I Use a Custom AccessFileName?

I have a need to have a custom AccessFileName setting in my virtual hosts, however it appears that save_mod_rewrite_rules function assumes that .htaccess is the name for everyone. How can I override ...
0
votes
1answer
21 views

Would it be wrong to save the permalinks as a postmeta and regenerate it on save post? [closed]

I was wondering about the permalinks. They are built on the fly but they are pretty much always the same. It seems like a waste of processing time and databse queries on every request. Why not store ...
0
votes
1answer
36 views

How to: change permalink by category?

i'm have 2 category: News & Games How to change permalink by category as: if is category News permalink as: domain.com/news-%postname% if is category Game permalink as: ...
0
votes
2answers
89 views

Page and Category With Same Slug - Looking To Silo Website

Not sure how to do this, I want to silo structure my site and I have created a category and put all my posts under that category. I want to now create a page that has the same slug as the category ...
0
votes
1answer
21 views

How can you create a Permalink structure on a WordPress site?

Let's say I want to create a wordpress site that has a folder structure such as: http://www.example.com/cars/ http://www.example.com/cars/red-cars/ Yet I want people to be able to comment on both ...
0
votes
2answers
64 views

Only the latest post shows up on post page?

disclaimer: this is my first foray into wordpress I'm creating a custom theme and in the single.php file, i have the main loop, however if i navigate to different posts, all that shows up is the ...
0
votes
2answers
46 views

Custom permalink structure for remote content pages

I'm trying to create a WordPress site that integrates with a very specific CRM in a remote server. The CRM holds a number of entries that should be displayed on the site, but if possible I'd like to ...
0
votes
1answer
49 views

Custom Post Type Pretty Structure

I am customizing a wordpress installation with a custom post type and have a problem with the permalink structure. I added a team_member CPT, and the contents should be visible in a specific URL: ...
0
votes
2answers
35 views

How to stop permalink redirects for a particular slug

I have a large number of posts that each represent a very specific type of data. Each post title is the SKU for the data & information. Folks have become pretty savvy on the URL structure and ...
0
votes
2answers
624 views

Is there a way to regenerate page permalinks without a plugin?

I'm working on a site which has some incorrect permalinks contains 'home-2' e.g. http://example.com/home-2/pagetitle/. I have no way of knowing where home-2 came from and manually editing the ...
0
votes
1answer
150 views

Can't edit Custom Post Type slug/permalink

I have a custom post type and the permalink shows up but I am unable to modify it like I can with Pages and Posts. Is there a way to enable this? I have a few conflicts with some pages and I'd like to ...
0
votes
1answer
50 views

Redirect after permalink changes

In old site I had the permalinks like: www.example.com/q-html.html When I change my old site to WordPress 4.0, I set the like: /%postname%/ When the URLs come up in a Google search, the user is ...
0
votes
1answer
1k views

Wordpress Permalinks not working in Apache2 Ubuntu 14.04

In my local machine, wordpress permalinks not working. After research I found that wordpress not creating .htaccess file. For this I followed below steps. Manually create a ".htaccess" file and ...
0
votes
1answer
151 views

Big arabic permalinks not work

I have error in permalink, I have post that title is big like :- مراجعة : Sony Xperia Z2 و إيجابياته و سلبياته و كل ما تريد معرفته عن الجهاز ! Now when open the post in my site i see permalink like ...
0
votes
1answer
121 views

Enabling permalinks disables custom page template

I have assigned a custom template on a page in wordpress, but it's not working anymore after I enable permalinks. Instead of the custom template, the "post-type-archive-portfolio" template is used. ...
0
votes
1answer
161 views

Bulk update post slugs through database

Is there a way to bulk update permalinks through the database? cause I have like 20k posts and all I want to do is add a prefix to the permalink. I could just manually update but that's too tiresome ...
0
votes
2answers
507 views

Get link of inserted media file of post within loop

Inside the loop I would like to retrieve the URL of an inserted media file of each post. My attempt was: <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <a href="<?php ...
0
votes
1answer
33 views

Creating a Category Taxonomy

I have this entertainment site for TV shows. I cover at least 27 shows so far. I use so many different post types for the shows and it slows down the site, I eventually want to add more shows. I ...
0
votes
1answer
17 views

Post/page title to permalink transformation - what is behind the scenes?

If the post name is used as the permalink, what "transformations" does Wordpress do to it when using it as the URL and when does it perform these transformations? Like stropping spaces and special ...
0
votes
1answer
20 views

How can I add a custom permalink to a term?

How can I make a taxonomy term have a custom permalink? (on a term basis, e.g. /anything/here for a taxonomy called food and a term called burrito) I don't think there's much more to explain so, my ...
0
votes
1answer
67 views

External PHP file & Pretty Permalink

I'm working in developing REST API for a WP based website. Endpoint is http://example.com/api.php I've included wp-load.php in the top of the file to access WP functions etc. However, ...
0
votes
1answer
305 views

Change the custom post type permalink

I have projects category in my theme ( custom post type ). my link goes like this http://shaowtriger.com/project/naim/ my required link is http://shaowtriger.com/brands/naim/ I also ...
0
votes
1answer
34 views

How to enable http (not just https) in wordpress?

My wp-config.php file contains define('FORCE_SSL_ADMIN', false); but all my permalinks are https: by default. I want the site to be accessible by http. What do I need to change please?
0
votes
1answer
152 views

Permalinks using event date (year & month) instead of publication date

The site http://www.bikefun.org is live and working, but the permalinks are not quite right. It is an event calendar site. Events are stored as a custom post type "bf_events", with dates stored as ...
0
votes
2answers
739 views

Custom Post Type with Nested Taxonomy and Template Files

I have a custom Post Type of "Portfolio" with a rewrite slug of portfolio. So the URL on the frontend is: domain.com/portfolio. I have a custom Taxonomy of "Categories" with a rewrite slug of ...
0
votes
2answers
70 views

WordPress Custom URLs

Based on the link maioman posted, below I have revised this question: I am having trouble getting a custom post type/taxonomy to work. I want a custom post type of Episodes, and the taxonomy for the ...
0
votes
1answer
20 views

Which is the neatest way to have homepage articles and a blog?

I have a homepage that should display a few different posts from different categories. I use the "Stick this post to the front page" option to this matter and each post permalink looks like ...
0
votes
2answers
803 views

Why I can't change the permalink of this page?

I have the following problem with a permalink: if I open this page (it is implemented as a static page) on my local website: localhost/wordpressAsper/archivio it automatically change it into ...
0
votes
1answer
194 views

Custom permalink structure only saves with index.php inserted

So I'm having this weird issue on the dashboard where custom permalinks only (default, day and name, month and name etc. those all work fine) doesn't save. I can choose the radio button and click ...
0
votes
1answer
3k views

Why does enabling Permalinks make pages not found?

I'm new to Wordpress and am creating a site using v3.9.1 of WordPress. When I create a new page, I can see it in edit mode, but the URL it is supposedly creating is not found when permalinks is used, ...
0
votes
1answer
51 views

Setting a homepage - doesn't seem to work

have a page (home) that runs a template page-home.php that I can access at mydomin.com/home. I am wanting to have this as my static homepage page, so accessible at mydomain.com/ however I cannot seem ...
0
votes
1answer
29 views

Can I access Posts of custom-fields via URL?

Is there a way to access all posts where the value of a given custom field is concurrent? like you can access all posts of a category like this: http://yoursite/category/<category-name> so I ...
0
votes
1answer
237 views

Changed sub-site to its own domain trigger 302 redirects for all page links

Below, I'm calling the development site mainsite.com (containing the WPMS install) and the domain that will point to a Norwegian sub-site of mainsite.com, I call launchsite.no. A Norwegian sub-site ...
0
votes
2answers
106 views

When WP_Query only returns 1 post, how do I automatically redirect to that post?

I've been searching around for a few hours now and can't figure out how to do this. Seems really simple. I've seen lots of redundant examples on how to redirect to a single post when a search result ...
0
votes
1answer
33 views

Wordpress Permalinks 404 bug with “next” button

I have changed wordpress to use permalinks for post names. /%postname%/ so that they are in the form wordpress.com/sample-post. The permalinks work great but it messes up the "next" and "previous" ...
0
votes
1answer
46 views

CPT, meta-data, url parameter

does someone could point me a lecture that could explain me how to create some "filter" passed by pretty link ? Let me explain my self, I have a custom post type called "spectacle" and I have a ...
0
votes
1answer
183 views

category link not working for a specific slug, works for others

I have setup several categories and set the permalinks to /%category%/%postname%.html with a category base of . to remove "category" from the url. All categories are working except for one with the ...
0
votes
1answer
511 views

Call to a member function add_rule() on a non-object

I want the page mysite.com/product to be accessed with the URL mysite.com/product/productname instead of mysite.com/product?name=productname I am trying to achieve this with the code in the ...
0
votes
1answer
68 views

Combine category AND custom taxonomy in permalink structure

It seems like this question has been asked not infrequently, but I still can't make heads of it. I followed the Rewrite API Guide to look at how to merge, but I want something like this: Category = ...
0
votes
1answer
116 views

Trailing slash at the end of permalink loads faster / better SEO?

Is it true that if you put a trailing slash at the end of the permalink, it would load faster for a single or a multisite WordPress post? Also, is this better for SEO?