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
0answers
7 views

permalink overwriting after save post

I'm developing a plugin to sell tickets for live courses. Using a shortcode [ticketform] I show a form that takes customer data and if everything is ok --> go to paypal --> thank you page. Within ...
0
votes
0answers
25 views

When editing, my post titles and permalinks revert to the title and permalink used for static homepage

Whenever I add a new post or edit an old post, the post title automatically switches to the same title that's used on my static homepage page. The permalink also changes to the same link, with a ...
0
votes
0answers
18 views

Automatically prepending '#' to slug in child page permalinks

I'd like to have any child page url like http://www.foo.com/fooparent/foochild automatically turns into http://www.foo.com/fooparent/#foochild Could this be done in the htaccess rewrite rules or can ...
0
votes
1answer
22 views

Get post title with link

I am using this code to send an email from my wordpress site. It send permalinks of the posts. How can i edit this to have linked titles instead of just permalinks; if(count($ids) > 0){ ...
0
votes
0answers
32 views

ReWrite Permalink to New Permalink Nginx

I used to have /%postname%/ permalink but something odd happened today, all links that I click suddenly redirect to home. So I changed the Permalink to /%category%/%postname%/ but this is a big ...
0
votes
1answer
33 views

Can't make permalink of CPT work

i'm learning how to use wordpress, but i've encountered a big problem. I'm trying to create a custom post type, i've used this code: add_action('init', 'init_realizzazioni'); function ...
1
vote
1answer
35 views

Custom post types and permalink

I’m looking for a way to solve my problem with permalinks in wordpress. I have 3 post types: news (default), posttype1, posttype2 all 3 uses the standard category. I added 3 categories in it: cat1, ...
0
votes
1answer
18 views

How to get raw unwritten querystring

Without permalink enabled, the urls look like ?p=1 and when permalink is activated it's the postname that appears... question .. isn't this a rewritten version of ?p=1 .. When I use $_GET['p'], ...
2
votes
1answer
79 views

Add specific word to default page permalink

Right now I am working on one of my client's project. Its all about amazon product display. My client wants me to change the permalinks of all posts, pages, serch results, archive pages, ...
-4
votes
1answer
23 views

Can I have a specific template for products even if they are standard posts and not CPT?

I'm attempting to manipulate a plugin for a client (the plugin author is unresponsive), and I'm wondering if/how to go about doing this. It's an ecommerce plugin, however does not create a custom ...
1
vote
1answer
23 views

Custom permalink structure gives 404

For a Custom Post Type called 'matches' I created a custom permalink structure. The structure shows up just the way I want it, however, I get a 404 everytime I visit the post. I have tried removing ...
1
vote
1answer
18 views

How to get correct URLs in network wide menu (Multisite)?

I'm using this function to switch to my main website's navigation and display it on all sub sites in my multisite network. Ideally the links should have the following format: ...
1
vote
0answers
21 views

How to rewrite the post URL according to the category?

I have 1000 posts in my website, half of them are in difference categories and another half is in category called "blog". Current permalink structure is: http://xxxxx.com/articles/%postname% - this is ...
0
votes
1answer
18 views

What is with the one month time limit for sub directory installs for multisite network?

http://codex.wordpress.org/Before_You_Create_A_Network If you scroll down to the bottom you see: You cannot choose Sub-directory Install (for a path-based network) if your existing WordPress ...
-3
votes
0answers
20 views

Help me out with the crazy canonical urls?

Somebody please help me with this. I have been assigned a job by boss to clean the URLS. Say, we have http://asdasdasd.com/self-service/?bv=consumer . We want it to be just ...
1
vote
0answers
24 views

“Post name” permalink returns home page for custom posts

I'm new here. I badly need help on this permalink issue. In my site I've one custom post type 'portfolio' but when I set the permalink structure to 'Post name' it returns loads index.php page not its ...
1
vote
1answer
15 views

Permalink change made author archive vanished

I changed my WordPress blog URL from: http://example.com/%year%/%monthnum%/%day%/%postname%/ into first, http://example.com/%postname%/ and then after many days, ...
1
vote
1answer
20 views

Let me choose permalinks

I need to pick a permalink called 'mysite.com/1418', but wordpress keeps adding '-2' to the permalink. Normally this means i already have a page called the same that is in the trash or something. But ...
0
votes
1answer
21 views

Changing permalink name redirects to another template?

I'm creating a template with a few templates with names page-contact.php, page-portfolio.php and page-blog.php. The problem is that when I select a Defaul Template for a page (I expect it to open ...
1
vote
0answers
16 views

All URLs are having '/blog/' appended to them.

I just made a WP theme, and I'm using a custom page template for the blog and for the home. The problem is that all the URLs now have /blog/ appended to them (which, I believe is the name of the ...
1
vote
1answer
14 views

How to show permalink auto when type text in post tiltle?

My website when type text in post title, it's not auto show the permalink. It only show when me publish this post.How to do it ? Thanks everyone
0
votes
0answers
22 views

Multiple permalink structure for posts

I 'd like to have more than one permalink structures for the posts. Let my post URLs would be like that: /program/details/%postname%/ /news/info/%postname%/ Could anyone please suggest if this is ...
1
vote
1answer
26 views

Rewrite Page with a slug before page name

I am using $wp_rewrite->non_wp_rules I have the following code that works: 'name/(.*)' => 'index.php?post_type=post'; Im able to use a url like http://mysite.com/custom_name/post_name using ...
0
votes
1answer
18 views

Setting a permalink for the home page?

I have a static default wordpress home page. As you know if you have a homepage on wordpress you can not set a permalink through the admin options, you can only set permalinks for non homepages. Does ...
0
votes
0answers
21 views

URL field in metabox with page links select

I am building my first metabox and I need to add special field when user can write your own link (URL) to outside page (with http://) or select existing page/post. If user selected that he want to add ...
1
vote
0answers
26 views

Accessing Subdirectories in WordPress Install

I have scripts that are in a subdirectory of my WordPress install folder. They are on the same level as the /wp-content/ and /wp-admin/ folders. I'm running them as form processing but I've got the ...
0
votes
0answers
24 views

Possible to hide parts of the slug from get_template_directory_uri and bloginfo('template_directory')

At the moment i am running and building a wp site on a local install with mamp. Additionally i have moved the wp files from the root directory to a folder. i've included files then e.g. with ...
0
votes
1answer
27 views

Media/attachment urls don't redirect with fake URL structure

I'm having an issue with media/attachment files and I'm not quite sure how WordPress is returning the URL that it does. I've noticed that I can add anything as a subdirectory structure before a media ...
1
vote
1answer
10 views

IIS 7 Rewrite with parent categories

I have seen quite a few questions on here asking around the same thing but either have been unanswered or slightly different! I have tested the following on a linux machine and all works fine, when I ...
1
vote
0answers
22 views

Pre-populate Slug / Permalink with URL

I would like to not only pre-populate the title, tags, and categories, but would also like to pre-populate the slug / permalink as well. Can I do this and if so how? Here's my functions.php code: ...
0
votes
1answer
25 views

Custom Post Type Permalink

I have a custom post types called "Emily Davies," "Gemma Patel," and "Poppy Smythe," And I'd like to be access its archives by going to ".../emily_davies" ".../gemma_patel" and ".../poppy_smythe". ...
1
vote
1answer
26 views

Permalink structure with $_SESSION variables

I have a project that has content being filtered throughout the site (many custom WP_QUERY calls). Originally there was no URL needs, just filtering by $_SESSION variable. Works perfectly, but NOW ...
1
vote
1answer
34 views

Permalink for custom post type

I have created a custom post type called job. Posts are generated with wp_insert_post(), and that works perfectly fine. My problem is that the permalinks to those posts are either wrong or I have done ...
0
votes
0answers
21 views

Issue with permalinks for custom post type

I have a little issue here... When i'm using default permalinks, everything works great, but when I set up %postname% permalink in settings, my template with custom post type is not loaded. ...
2
votes
1answer
37 views

How is WordPress manipulating the posts like there are folders?

As you know, a WordPress post can usually be seen going to a link similar to this: myblog.com/2014/03/27/sample-post/ There is no folder named 2014, 03, 27 or sample-post in the blog. Until now, I ...
0
votes
1answer
23 views

Permalinks of archive tag wordpress

I try to add link of tag archive in text that contain tag. For example:- if i have tag that name "football" and in single.php i display the content like "the_content();", So now when article have ...
-1
votes
1answer
14 views

Siteurl code for links

I'm working on a wordpress website for my friends bussines and I'm working on it on my personal server to then export it and import it on his server when it's done. And one some of the pages I've ...
0
votes
1answer
30 views

Different permalink for CPT and regular Posts/Pages but why?

Permalink structure in Back-end: http://domain.com/%year%/%category%/%postname% For "regular" Posts/Pages all is okay but as soon a CPT is shown %year% is gone? Url shown for Posts/Pages looks some ...
0
votes
0answers
21 views

make a post or page permalink based category

I have two language categories on my site, English and Indonesian. How can I create permalink post or page based on category slug such: example.com/en/page example.com/id/page or ...
0
votes
0answers
10 views

Pages included in another page and duplicate content issues for SEO

in a recent project I've decided to create a page template (PageX) which is a kind of "stack" of subpages. This template simply includes the content of three other separate pages (PageA, PageB, ...
0
votes
0answers
32 views

Adding 2 CPT with multiple custom taxonomies to permalinks

I have two custom post types with hierarchical custom taxonomies that I'd like to add to my permalink structure. I'd like to achieve this: ...
0
votes
0answers
12 views

How to add rewrite rules adjust to permalink structure

I want to create an Archive Widget for Custom Post Type (product). I let my client to change permalink structure by himself. So, my question is: how to add rewrite rules adjust to permalink ...
0
votes
1answer
17 views

Removing parent page in URL for one page

I have a page e.g.: mysite.com/parent/child1/child2/page And I want the URL to be: mysite.com/page But only for this one page ... not the entire site. Is there a way to do this without using some ...
0
votes
2answers
48 views

Can WP give a value a post ID?

So I have queried out some data from another DB and obviously they're not a post which means I can't use the standard permalink to link them to an existing page with it's post type. So I thought that ...
0
votes
0answers
8 views

Permalink category + tag and replace

is it possible a permalink structure "category+tag"? Example: www.website.com/CATEGORY-TAG/postname/ I need also replace some tags into the permalink, for example: tag: LAMBORGHINI -> FERRARI ...
0
votes
0answers
44 views

With Permalinks Activated, WooCommerce Product Page Does Redirect to 404 [on hold]

I use Wordpress, WMPL, WooCommerce and everything is Ok except permalinks. Actually after activation of permalinks, every product page redirects to 404. I guess this is due to WMPL; Because, after ...
0
votes
1answer
11 views

Need to return a string as permalink insted of str_replace

I'm using this code to get a alphabetic list of CPT's at my site. It's great and works perfect. One problem, the snippet returns urls as a string, tha just converts the_title to a slug, and that does ...
1
vote
1answer
29 views

Only default permalink is working mod_rewrite enabled

My problem is in my wordpress site only default permalinks is working.. When I change permalinks all pages become not found.. only home page is showing. When I change permalinks to postname .htaccess ...
0
votes
1answer
34 views

Wordpress permalinks and javascript redirection

I need to use javascript redirection in one of my scripts. With /%postname%/ WP permalinks structure redirection works like it should but with default it always redirects to home page. /%postname%/ ...
0
votes
1answer
28 views

I need to display post related info

WordPress CPT URLs are displayed at this format: www.example.com/cpt/post-slug. I need to have URL like this www.example.com/cpt/post-slug/rating that will include rating details for corresponding ...