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

Mystery ghost page not appearing in Admin

I have a strange problem. I have a blog listing page like example.com/something but this page is no where to be found in the admin. It returns 200 OK http status so its there. But it uses a ...
0
votes
1answer
171 views

get_attachment_link() adds a hashtag to URL

I'm using the get_attachment_link() function in a site I'm developing and it's returning a really weird result. For some reason it adds #main at the end of every url. ...
0
votes
2answers
149 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
73 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
144 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
130 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
549 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' => ...
0
votes
0answers
51 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.
0
votes
0answers
102 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
58 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
414 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 ...
0
votes
1answer
140 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
38 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, ...
0
votes
1answer
154 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
324 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
88 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
71 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
32 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
0answers
228 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
0answers
68 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
4answers
81 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
120 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
48 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 ...
0
votes
0answers
83 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
87 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 ...
0
votes
1answer
166 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 ...
0
votes
1answer
559 views

Relative or Absolute Paths for Flash Video Player Files

I have a Flash SWF file working correctly in the root of my website. It is fully embedded, with everything including the player hosted directly on the website (not a YouTube embed). This flash file ...
0
votes
1answer
24 views

What is the issue with our links? It creates a loop

On behalf of the university's radio station, I am trying to solve the issue with our links. When you go to our site http://brookesradio.com, if you click one of the nav bar or header, twice or go to ...
0
votes
2answers
44 views

How to setup different permlalinks for posts and pages?

I'd like to setup: www.mydomain.com/a-page/ www.mydomain.com/blog/category_name/ www.mydomain.com/blog/category_name/post_name/ www.mydomain.com/custom_post/post_name/ How would I do it? Thanks in ...
0
votes
1answer
106 views

redirect old pages by .htaccess

i want to redirect pages from sitename/sitename/pagename.html and sitemap/sitename/ to sitemap/sitename/pagename how i can do that by using .haccess file i tried this code ...
0
votes
1answer
30 views

Text in permalink

I've this kind of permalink for post type : /widgets/%category%/%postname%/ And the problem is that when going to /widgets url (http://mysite.com/widgets) a not found page error (404) is displayed. ...
0
votes
1answer
79 views

get_permalink returning first letter

I'm trying to use an ajax function in my custom template to retrieve a post's custom fields to show a post overview. Getting the custom fields is working, but the getting the permalink isn't. I'm ...
0
votes
1answer
1k views

custom permlink .htaccess file 404 Not Found error

i read alot of atricles taking about this but i could fix my problem yet .. i want to make the permlink custom /%category%/%postname% and i searched for the .htaccess in the wordpress files and ...
0
votes
1answer
273 views

wp_get_attachment_url not working

I have a template file which shows the posts of a category called downloads. for each posts i have attached a pdf file. I have given a link to download the pdf file on the page. But when i click the ...
0
votes
2answers
97 views

Custom rewrites for pages and categories

I am trying to understand how can create custom rewrites for pages/categories. Ex i have example.com/?page_id=178 and for this page have a contact form and i want this: %slug%.php ...
0
votes
2answers
132 views

get_permalink to attachment not working

I have following code <?php $args = array( 'post_type' => 'attachment', 'numberposts' => 12, 'post_status' => null ); $attachments = get_posts( $args ); if ( ...
0
votes
1answer
130 views

permalink structure for single-{post-type}.php in wordpress

I have tried many ways to display my custom post type as single-{post-type} and finally it works nicely once i used: 'rewrite'=> false, before that, i used 'rewrite' => array( 'slug' => ...
0
votes
2answers
465 views

Create custom links for excerpts with php dynamically

Good Day I am using excerpts in my wordpress theme. Now in wordpress's documentation, they say wordpress does not automatically add links for the excerpts, you have to manually add them like this: ...
0
votes
1answer
120 views

Permalinks in Multisite not working

I'm using a subdomain multisite and I receive a 404 when trying to visit posts. The main domain works, but the permalinks aren't working. When I use the default permalinks, they work, but when I use ...
0
votes
1answer
61 views

Overwrite URL on blog posts

I would like to overwrite my URL on single blog posts. At the moment my posts are displaying as www.mydomain.co.uk/post-title, however I would like them to be as www.mydomain.co.uk/blog/post-title ...
0
votes
1answer
82 views

Permalinks of New Pages and their Parents

I am running into a new issue where when I attempt to create a new page, the permalink is not being auto generated. For instance On the 'Add New Page' page, I select 'Our Club' as the parent (which ...
0
votes
1answer
153 views

Use .htaccess to redirect homepage to its permalink

How can I get WordPress to preserve my permalink that I have set for the homepage? I would like the homepage's URL to be www.example.com/homepage-title, not www.example.com. Its permalink is already ...
0
votes
1answer
125 views

Leverage permalinks with AJAX

I'm trying to implement some AJAX to my theme, but there are a few things I cannot get my head (or Google) around. I have a custom post type named "Faculty" and a page displaying the featured image ...
0
votes
1answer
54 views

Custom post type - permalink

Is it possible to change the permalink of a custom posttype? I have a custom post type called "events", I have made a page called archive-event.php and this is reached by /event.php is it possible ...
0
votes
1answer
172 views

Only default permalink is working

I'm getting trouble with another permalink setting then the default permalink setting. I want to use the post name of a page/article but when I activate "the post name", all of my pages, except the ...
0
votes
1answer
593 views

placing the media uploads in a subdirectory

Hi I want all my uploads to be uploaded to a subdomain on my site instead of 'wp-content/uploads' I created a subdomain cdn.mysite.com and i want all the uploads to go there instead. I want my ...
0
votes
1answer
87 views

Custom permalink to make a page respond properly

I've built a complete MVC framework that integrates perfectly well into Wordpress. This framework also provides a simple to intermediate implementation of a ReST interface (the real one with ...
0
votes
1answer
648 views

Styles are not loading when changing permalink to %postname%?

Fist I was using default option of permalink and everything was fine (speed is ok, my own created theme is working fine) but now I change default structure to post name structure of permalink now I am ...