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
131 views

Plugin generated taxonomies' permalinks with custom placeholders

I have a problem with permalinks for custom taxonomies generated with Types http://wordpress.org/extend/plugins/types/, a plugin for creating taxonomies, custom posts and custom fields. The problem ...
0
votes
1answer
51 views

How to link post titles on page A to its posts on page B?

I set and reversed the order of a list of post titles on my front page with: <?php global $post; $args = array( 'category' => 6 ); $myposts = get_posts( $args ); $reverseposts = array_reverse( ...
1
vote
2answers
2k views

Custom Permalink with Dynamic Taxonomy for Custom Post Type - Works, but breaks other permalinks

My custom permalink with dynamic taxonomy is working for my custom post type. However, it breaks all my other permalinks. They display a 404 error in the content area (header and sidebar still ...
2
votes
1answer
4k views

Permalinks for custom post-types within custom taxonomies not found

I have tried to apply the advice offered by TheDeadMedic in this post to achieve the following URL structure: example.com/activities = a WP page example.com/activities/type-term = a custom archive ...
0
votes
1answer
292 views

Auto 301 to full post permalink? (using /posts/%post_id%/%postname%)

I update my permalink structure to /post/%post_id%/%postname%, but if someone uses a URL like /post/1234 instead of the full URL of /post/1234/bingo-rulz, WordPress shows the post without giving a 301 ...
1
vote
1answer
1k views

Permalink doesn't get displayed in Twitter button (Local WordPress problem?)

I'm trying to add a custom "Tweet this" button to my WordPress posts. I'm sticking to the official Twitter guidelines. Here is what I'm actually trying to pull of; I don't want the button, I want a ...
1
vote
1answer
1k views

Strange Anchor Tag Behavior (in-page links work, external pages do not) [closed]

I've got a strange issue in that anchor links on the current page work fine, but that the exact same link doesn't work if clicked from another page. If you go here, and click on any one of the ...
0
votes
1answer
482 views

Permalink Structure not updating .htaccess

I am trying to update the permalink structure using the back-end and Settings -> Permalinks. The .htaccess file is not updating. I have given .htaccess full access with chmod -R 777 .htaccess and ...
0
votes
1answer
111 views

when I create a page with a /blog permalink the css gets messed up

When I create a page with a default template and parent set to no parent, with the permalinks name being sitename/blog the css on that page gets messed up(including the admin bar is all messed up), if ...
0
votes
1answer
366 views

Generate multiple tag query URLs

As we know WordPress supports multiple tag queries (',' and '+'). The only problem with this add_query_arg() doesn't handle these methods if a query param is already exists in the URL. From the ...
1
vote
4answers
2k views

Changes to permalink structure results in 404 error for all pages other than home

When changing the permalink structure on my site, I get a 404 error for every page except the home page. I've see other questions that mention resetting the permalink structure to get it work, but ...
0
votes
3answers
1k views

Problems with 404, .htaccess, permalinks and Wordpress custom posts locally on Snow Leopard

I have a custom "about" post: function about_register() { $labels = array( 'name' => _x('About Page', 'post type general name'), 'singular_name' => _x('About ...
1
vote
2answers
2k views

How do I turn off 301 redirecting posts (not canonical)?

I noticed a strange behavior in WordPress where it automatically 301 redirects certain URL structures for posts. For example, I have a post entry for: mysite.com/999/about-us Then, you would think ...
0
votes
3answers
1k views

Wordpress home page showing 404 error

I've had a look for anyone experiencing the same issue but to no avail. I am currently working on a Wordpress site that previously did not have permalinks, so have added these (i.e. to change the ...
6
votes
4answers
2k views

Strange permalink issue: can't rename /company-2/ to /company/

I created a page titled company. But the permalink turned it into /company-2/, trying to change it to just /company/ doesn't work. The website just has 8 pages and none is called company (don't know ...
2
votes
1answer
6k views

Why is “/page/2/” not working?

Finally got pagination to work with the below code, but now the pagination links to /videos/page/2/, which doesn't exist. How do I get page 2 to work? <?php $temp = $wp_query; $wp_query= null; ...
1
vote
1answer
2k views

Function to get permalink of custom post type archives?

Is there a function that will return the permalink to a custom post types archives that is available to use in WordPress? Something like: get_cpt_permalink("events") which will return ...
0
votes
1answer
589 views

Dynamically change Custom Post Type Template OR Change Permalink?

I have built a plugin that uses a custom post type and a single-.php file for a template. My issue is the custom post type template needs to take on the name of the post type and I need to change ...
1
vote
1answer
540 views

Permalink changes gives me 404 [closed]

Up til now, I've used /%postname%/. Now I have changed this to /%category%/%postname%/. I know WP does not recommended to use category / psotname, but it makes a lot more sense for users. Opening ...
3
votes
1answer
1k views

Custom post types - Use post_id in permalink structure when using has_archive => true

I recently asked this question Custom post types - Use post_id in permalink structure and solved it but as I have enabled 'has_archive' => true the solution given no longer works. Let me explain: ...
0
votes
1answer
2k views

How to prevent WP overwriting my custom htaccess rewrites?

I've used some custom rewrites implemented by the Roots framework. Occasionally they get wiped: certainly if I visit Settings > Permalinks, but also at seemingly random times. My htaccess reads so: ...
3
votes
2answers
897 views

Custom post types - Use post_id in permalink structure

I'm registering my CPT like so: $args = array( 'labels' => $labels, 'public' => true, 'hierarchical' => false, 'rewrite' => array( 'with_front' => false, ...
4
votes
1answer
852 views

WordPress search: pretty URLs (permalinks), custom post types and pagination

I have three separate search boxes on my website: species CPT search, glossary CPT search and a general search which I'd like to search post and species post types. My questions are threefold, ...
1
vote
1answer
1k views

Subpages return 404 error [closed]

I set permanent link as http://site.com/%postname%/. I'm talking about this type of pages: http://codex.wordpress.org/Pages_Screen. All first level pages work fine. But subpages don't. For the first ...
2
votes
2answers
11k views

WooCommerce permalinks [closed]

I got the following question: When I go to a WooCommerce category, the link displays like this: http://www.example.com/product-category/category/ Where the bold text is the link like it is and the ...
0
votes
2answers
202 views

Comparing permalink to url

I'm trying to compare the permalink with a url and then output stuff depending if they match. At the moment I have the code below. On the page it's visibly showing that the permalink and the url (i.e ...
1
vote
1answer
2k views

How to remove custom post type name from base url?

How can I remove custom post type slug from my base url ? for eg : mywebsiteurl.com/custom-post-slug/postname I would like to make it mywebsiteurl.com/postname instead .
3
votes
1answer
1k views

How can I set up a category “overview” page?

I know I can use the Template Hierarchy to set up custom theme pages for terms inside a category, like these: mysite.com/category/tech/ // category-tech.php mysite.com/category/blog/ ...
0
votes
3answers
343 views

How do I get thumbnail generator to recognize the_permalink tag?

Help! I am trying to create a Digg-clone by integrating "BM Shots" (a webpage thumbnail generator) with "Recommended Links" (a social voting plug-in for Wordpress). Recommended Links allows for user ...
0
votes
2answers
60 views

Why do I have “category” in my permalinks?

I added two category pages to a site I am working on and I found out the permalink in the url is wrong. I set the permalink as /%category%/%postname% and I created two categories "News" and "Offers" ...
1
vote
2answers
2k views

Automaticly add slug to posts

I'm using a us/news/%postname%/ structure for my permalinks. This works great for regular posts. However, I have a few different custom post types, and I don't want the us/news part in their slug. ...
0
votes
1answer
503 views

Post custom permalink results in 404 for archive page

I have set the following custom permalink structure (for my blog): /news/%postname% When I browse to /news I was expecting for the archive.php template to be served up, unfortunately, I'm presented ...
0
votes
1answer
371 views

Is get_permalink also the canonical URL?

The question says it all. Does permalink equal canonical URL? Or is there another way to get the canonical URL?
6
votes
1answer
1k views

Permalink not working for page without title

I am testing a Wordpress theme using the Wordpress Theme Unit Test test data. One of the test posts has no title. Wordpress generates a permalink of the form: <my-site>/posts/14/ (my ...
0
votes
1answer
181 views

Hide the word 'category' from my permalinks

How can I hide the word 'category' from my permalinks? Regards.
4
votes
2answers
10k views

How to get permalink and title from post ID?

I have stored an array of post IDs and I would like to list the posts as links, meaning I need to get the title and permalink for the post ID - $id. The list should be echoed out by the following if ...
0
votes
1answer
190 views

Plugin for TinyMCE to create reference to other posts

Is there any plugin that would allow me to easily insert reference to another post for TinyMCE? I want to be able to reference another post by permalink and the link text to be the title of the post. ...
1
vote
1answer
151 views

Making permalinks to /%postname%/ by default in installation

I am making a custom wordpress distribution I will use for my own sites including my language and a child theme. But, I want the permalinks to be /%postname%/ by default so that I don't need to change ...
4
votes
1answer
2k views

Passing variables through permalink structure

I have a WordPress page which is accessible via /accommodation/. What I want to be able to do is pass in a parameter using the URL - ie going to /accommodation/value1/ would load the same page as ...
2
votes
3answers
388 views

Must permalinks always point to single post pages?

Suppose that I have a blog with few posts per month, and no comments, and I don't want to show posts in single post pages, but always "in context" (say, together with the posts in its month - or ...
0
votes
2answers
1k views

Multiple sites with pretty permalinks with nginx

I'm trying to set up a new local development server and instead of Apache I've decided to go with nginx. What I'd like to do is have each WordPress site live within its own directory inside ...
2
votes
1answer
4k views

Custom post type permalink endpoint

I have a custom post type called "destinations" and I have set the EP mask for the post type to default EP_PERMALINK. I have added a couple of endpoints as follows : add_filter( 'query_vars', ...
4
votes
5answers
4k views

Remove slug in taxonomy url

Just wondering, how can remove slugs from some URLS. I'm using a custom post type called exhibitors, and some taxonomies to define those exhibitors (eg: featured-guests, publishers etc.): Right now ...
0
votes
1answer
107 views

Stop Attachment image names from taking top level permalink

I don't know why but images uploaded to my site in posts are getting a top level permalink. So if I upload an image into a post called "Apple" then it gets an attachment page at mysite.com/apple and ...
1
vote
1answer
157 views

menu link to custom post_type?

is there a way to add a custom post_type (directors) link to a menu? I can add the individual director posts but not the link to all of them. I'd like to avoid using custom links as this will be ...
0
votes
1answer
57 views

Wordpress switch servers

So I switched servers from localhost:8080 to a domain, now I followed the instructions by updating the config, and updating the permalinks and everything. Even updated the database. I can go into my ...
0
votes
1answer
45 views

Word Press Permalink Change

I had the following permalink structure in my WordPress blog: /%category%/%post-name%/ I changed it to: /%post-name%/ Everything is fine as I am using the permalink finder plugin, which ...
1
vote
3answers
3k views

Group Posts by First Letter of Title

I am working on a website that is using posts as a way to manage glossary articles similar to the example website below. I would like to find a way to display articles alphabetically and grouped by a ...
0
votes
3answers
896 views

hiding permalink in admin if the user is subscriber

I don't want to show the permalink if the user is subscriber. Can anyone help me to achieve that? PS: I'm talking about the permalink which appears below title while creating new post. PPS: I ...
3
votes
2answers
1k views

How to get the clean permalink in a draft?

When I use the_permalink or get_the_permalink in a draft or scheduled post, the URL provided is not the "final" permalink—it is the unpretty ?p=xxxxx version. How can I get the final, "clean" ...