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

Custom Post Type Permalinks with %category%

I Create New Post Types and Taxonomies. This is the script: add_action('init', 'my_custom_post_type_init'); function my_custom_post_type_init() { $labels = array( 'name' => _x('Roundabouts', ...
0
votes
0answers
85 views

Plus sign in query string to custom page gets 324 server error

OK, so I've created a page (http://justinhealth.com/testsite/error-signing-up). It's a custom error page for iContact. Now, when there's an error in iContact's signup, it actually goes here: ...
0
votes
1answer
289 views

Update permalinks after domain change

I installed my blog in a free hosting webpage, the hosting gave me a free domain and I used that domain in my blog, then I did buy a .net domain, I changed the URL in Settings->General of my ...
0
votes
2answers
187 views

Permalinks problem with custom theme

I am pretty much learning by doing a custom theme from scratch (not a child theme), and have had much trouble with permalinks. In the permalinks settings page on the wp-admin, if I put any option ...
0
votes
1answer
898 views

Custom taxonomy rewrite using tax name instead of rewrite slug

I Created a custom taxonomy for my projects custom post type. function projects_taxonomy() { $labels = array( 'name' => __('projects Categories'), 'singular_name' => ...
1
vote
1answer
3k views

why does anchor name add a slash to url?

I am trying to do what should be some the most basic html, but it's not working for me. Here is my code: <a name="rocket"></a> <div> <h3>The Title</h3> <p>some ...
0
votes
1answer
355 views

how to set up wp in folder within static website?

In my server I have the following file structure: www/ index.html js/.. css/.. img/.. index.html ... blog/ .htaccess index.php wordpress/ .htaccess wp-config.php ...
1
vote
1answer
149 views

Post preview gives 404 when permalinks are purely date based

I have an issue pertaining specifically to the situation in which permalinks are set to be based only on publication date. My permalink structure is as follows: /%year%%monthnum%%day%/ When I try to ...
0
votes
0answers
77 views

Search points to /search/?s=KEYWORD instead of /search/KEYWORD

I can access my search page and results correctly here /search/KEYWORD but when I click search it points to /search/?s=KEYWORD. I updated my permalinks in the admin.
2
votes
2answers
534 views

Change permalink for a single post type only

At present I'm using this permalink structure /%category%/%postname%/. There are some existing post type. I want to change permalink for image post type to image/%post_id%/, and don't want to affect ...
2
votes
1answer
892 views

Permalink redirection from 'Day and name' to 'Post name'

In my blog, I used the Day and name permalink structure for many days. Recently I came to know the SEO tips and made the permalink structure to Post name. So I migrated from: ...
0
votes
0answers
121 views

Custom Post Type and Taxonomy pagination permalink

I have a custom post type of galleries with pagination for the posts thumbnails. It worked great until I activated the permalinks in the WP admin panel. I saw many posts on this problem but none of ...
0
votes
1answer
160 views

Enable Minify in W3Total Cache using NGINX [closed]

I am having an issue with enabling minify with the W3TC plugin. I am using a LEMP stack and cloudfront as a CDN, and all of these features, except for the minify work fine. In order to enable fancy ...
0
votes
1answer
412 views

Using one slug/post-name for multiple pages

I'm creating a website and I'd like to be able to reuse the same slug/post name in the page's url. ex using /%category%/%postname% foo.com/bar/page foo.com/barz/page // Will not work. Instead it ...
0
votes
1answer
186 views

Post archive pages bringing me to a 404 page

When I try to use next_posts_link() and previous_posts_link() in my archive posts page I got a 404 error page. I'm using this permalink setting /%category%/%postname% and working well for all pages ...
0
votes
1answer
2k views

Permalinks by Post Name Are Not Working

My WordPress Project is hosted on fatcow. The Post Name permalinks, are not working, but the Default permalink setting does work. There are many options in google, but I didn't find a simple way to ...
2
votes
1answer
4k views

How to get permalinks with category base working with sub-categories

I ran into an issue with a site that needs the category base also included in the custom permalink structure. I know this is an issue and I have read many posts like this that gave me some insight... ...
0
votes
1answer
158 views

“set_front” => false on custom post type breaks wp_list_categories links [closed]

My question is related to this one. I would like my post permalinks to be prefixed by /blog/, but I don't want this prefix to be applied to my custom post type portfolio. In other words, I expect post ...
0
votes
1answer
65 views

Link categories to last post

I am using wp_list_categories() to show all my categories. But I would like that the child categories link to the last post of that category. For example: <ul> <li><a ...
0
votes
0answers
14 views

Preventing collisions between permalinks and subdirectories [duplicate]

I've deployed a WordPress installation on the root of my site. This site also has a few subdirectories that should remain accessible, such as /somefolder/. I've configured WordPress to use ...
0
votes
1answer
586 views

Getting the top level permalink using get_post_ancestors()

I have a function for displaying the title of the top-level page of the current sub-level page. It's working quite well, but I can't figure out how to also link to the same top level page that is ...
1
vote
1answer
86 views

How to use all tags in post permalinks

My site with pictures is set up so that the posts do not have a title and have only tags. I would like to know how to use all tags in permalinks settings?
0
votes
1answer
388 views

How to change pagination base from slash to query form?

Can this function... function custom_pagination_base() { global $wp_rewrite; $wp_rewrite->pagination_base = 'p'; $wp_rewrite->flush_rules(); } add_action( 'init', 'custom_pagination_base' ); ...
0
votes
1answer
45 views

Changing permalink of custom category

I've tried reading up on past posts here but my head is just spinning. My problem is I'd like to change my permalink structure for a custom full width posts under a custom category. For example, ...
3
votes
1answer
573 views

Is there an action for when permalinks are rebuilt?

In my plugin, I have a list of titles and permalinks in the options table. It's updated every time my custom post type is saved. Since I'm saving permalinks the option data can become bad if the ...
0
votes
1answer
236 views

Mamp pro permalink issues. Pages keep reverting to index.php

So I pulled a site down to my local machine to do some work on it. Copied the files, find/replace on the database to update the url, added a host. Everything worked fine until I changed the permalink ...
0
votes
2answers
38 views

implement separate templates for 1 post type

I have a custom post type 'courses', with a course description as post_content, and number of attachments I also have a custom post type 'course units', linked to the courses with a custom field ...
-1
votes
1answer
163 views

Can I specify template to use with the_permalink?

Can I specify a template to use with the_permalink()? Why I need this: when they click a link from a certain page, I want to show that user a different template (extra content) on the linked page.
1
vote
0answers
251 views

Rewriting single post url; add_rewrite_rule problem?

I have to customize single post permalink (the structure of the permalink) if posts have a certain value in a certain custom fields. I use the filter post_link to change permalink when needed, and ...
0
votes
2answers
744 views

How can I redirect this contact form to a specific permalink

I'm converting a HTML site to WP for a client and they have a simple contact form in place. If the submission is sucessful it currently, in it's HTML form, sends them to thankyou.html but I want to ...
0
votes
0answers
101 views

The problem is that it redirects to 404 page

The format of the link is ok, it works. But when I open the post did not lead me to the single-customtypes but the 404 page. add_action('init', 'tdd_add_rewrite_rules'); add_filter('post_type_link', ...
0
votes
1answer
104 views

WP Custom Permalink Filter

I've got a custom filter which appends the image #ID to the end of the image href, however it returns 2 x url's. Can anybody see what i'm doing wrong? function modify_attachment_link($markup, $id, ...
0
votes
0answers
27 views

Pages half/not working.

If someone could please look at our website and have a look it'd be really appreciated. On one of our catergoires (rentals>sconces) page one works fine, but the remaining 3 dont. ive read in a couple ...
0
votes
0answers
37 views

%page%/number didn't return 404 but redirect to /%page%/

I've got page, for eg. /about/ when after slash I put some numbers (not letters) I still get this same page. I really want 404 there. Why? What to do to avoid that? SEO itp...
0
votes
1answer
358 views

Use the category name instead of category slug in permalinks

How to create a permalink structure which finish by: /category-name/post-name/ Instead of: /category-slug/post-name/ By default, Wordpress is offering %category% tag strucure as "A sanitized ...
0
votes
1answer
462 views

permalink and add_rewrite_rule - error 404

I'd like to have comments in a separate page with a dedicated template only for posts in a specific category (slug shops). Example: mysite.com/post-incatshops --> mysite.com/post-incatshops/comment ...
0
votes
2answers
205 views

Permalink target for recent post

I am trying to set up code to submit a post to StumbleUpon, from my Rothmania site. The code reads href="http://www.stumbleupon.com/submit?url=<?php the_permalink(); ?>&title=<?php ...
0
votes
0answers
87 views

TCPDF and permalinks

I am currently using a post to pdf plugin 'Hacklog down as pdf' which works ok. I've used it before in a current working environment. It suddenly stopped working but I have found out that when ...
0
votes
5answers
214 views

unique identifier for the same pages in a multilanguage/site context

I've got always the same problem. If I program a multisite for multilanguage purposes, I cannot find a way to not change the page links in every language. I mean, suppose I've got a page named ...
0
votes
0answers
168 views

Trouble with pretty permailnks buddypress .htaccess custom posttypes

I have a buddypress/bbpress website that also has multiple additional custom post types. After adding each new custom post type I would update permalink settings to correct the 404 not found occuring ...
0
votes
0answers
75 views

How to create link to posts in WP-Markdown

I am using WP-Markdown plugin for writing posts. In one post I wanted to add a link to another post, but since I am using Markdown editor I had to add the URL (permalink using month and name) of the ...
1
vote
1answer
2k views

Allow duplicate permalink slugs for posts in different categories

I have my permalink format set to /%category%/%postname%/ and I have two posts with the same permalink slug, but in different categories. Ideally, the two permalinks should look like this: ...
0
votes
0answers
107 views

Include other parameters in permalinks for better management of browser history

In single.php, I have the following items that I manage (create, update, hide) with jquery/ajax: a <select> tag in which I return all website categories. a second <select> tag in which I ...
0
votes
0answers
118 views

standard post with extra parameter brings permalink problem

This problem concerns several rewrite rules, but i'll stick to one, for clarity. In my theme, i use a parameter "parentid" which gives me the page/post/custom post i've clicked on (the parent). in ...
1
vote
1answer
720 views

resetting permalinks after changing page names

After a lengthy staging time, many page categories, pages within pages, need to be retitled. This made a mess of my link structure and now I'm having a real hard time try to figure out how to reset ...
1
vote
0answers
227 views

How to rewrite a URL to another rewritten URL without changing the address?

Just got to the end of a site build and the client is now saying the original site URL's need to stay the same and do not want to do 301 redirects due to loss of link juice. The structure of the site ...
5
votes
1answer
516 views

Wordpress Permalink changes to question mark (?) in URL

My Permalink custom url is /%post_id%/%postname%/ and my website is in Persian language, for some posts the Permalink is change in URL from ...
0
votes
1answer
340 views

Dynamic Custom Permalinks

I have a scenario in which the intention is to make custom permalink that can be changed dynamically, for example: If a country information is showing up then the URL should be ...
4
votes
2answers
2k views

Catch 404 after changing permalink structure from /%postname%/ to /%category%/%postname%/

I made a site some time ago and after some days some posts were indexed by search engines. Today I changed the permalink structure from /%postname%/ to /%category%/%postname%/. After that, when ...
0
votes
1answer
91 views

Issues when changing permalink Structure

I wanted to change the slug of the portfolio of my page, it is actually /portfolio-item/ i went to my custom_post_types.php file and changed the rewrite rule of the slug to my needs, but when i flush ...