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

How to get a page url by a page id?

I tried to use get_page_link('page-id') and get_permalink('page-id') but the error below occurred. Fatal error: Call to a member function get_page_permastruct() on null in ... How can I get a ...
1
vote
1answer
182 views

How to change custom post type pemalink Hierarcy

When we set permalink as Post name and go to wordpress any default post Like "Testing 123" single page its link looks like this localhost/foo_articles/testing-123 Now i when we change our permalink ...
0
votes
2answers
168 views

Removing /author/ slug from URL gives 404

After hours of searching and trying different functions, I've finally successfully removed the /author/ from all of our users profile URLs. So its just /username/ However, when new users register ...
0
votes
0answers
79 views

Redirect/Route every broken link to 404 page

I have a wordpress site. It was transferred from another CMS now. And WP doesn't want to route non existent links to 404 page. For example, http://betall.ru/aisi-316-analog/234524/ routing to ...
0
votes
0answers
76 views

WP Admin Bar not showing with custom permalink structure for pages

I'm getting a weird behavior from the wp admin bar when logged in. Let me explain. My project has a custom permalink structure with a string before the post name (like custom-string/%postname%/) set ...
0
votes
0answers
27 views

Custom Post Type with /%shop_name%/gallery/%gallery% permastruct?

I have created a custom user meta = shop_name in User Profile and custom post type gallery I want my permalink to be in form of /%shop_name%/gallery/%gallery%. Every user has a custom user_meta = ...
0
votes
0answers
50 views

WordPress Permalink Problem

I have a blog with 3,000 post permalink using the "% postname%" now I want to change it and make it into html "% postname% .html". Everything works except for the old link on facebook and in the ...
1
vote
1answer
35 views

How could I change my Permalink from blog to custom structure? [closed]

When I install multi wordpress site I have a problem that my default site permalink goes to http://site.myurl.com/blog/post-name/ I want to change it so that it goes to a custom link like this: ...
0
votes
2answers
96 views

Dynamically generate child-URLs for posts or custom posts

How can I have a post (or custom post) with a definite URL: www.test.com/category/post-name and a child-URL referring to a specific section of that post www.test.com/category/post-name/sub-url ...
0
votes
1answer
21 views

How do I get a link to a WP page within a loop?

I'm trying to get a link to Page A within a loop on Page B. Normally I would use <?php echo get_page_link($mypage->ID); ?> but the loop is causing this to always return a path to the current ...
0
votes
1answer
35 views

Change the permalinks structure

I have decided my structure of permalinks from /?p=125 to /sample-page. I have tried some methods, but anyone works. I have changed the structure in settings/permalinks and I have tried with some ...
4
votes
3answers
268 views

Stop WordPress from reserving slugs for media items?

I am experiencing some odd behavior, that apparently happens "out of the box" with WordPress. If I upload a file through the media manager called: services.jpg; then go try to create a page with the ...
1
vote
0answers
78 views

Wordpress can generate numeric permalinks, which then 404

I know why setting a numerical permalink for a post would mean Wordpress confuses page name and number. However, I notice on the site I am working on (Wordpress 4), that you can edit the permalink to ...
1
vote
1answer
24 views

How do I create a permalink structure with 2 taxonomies

I would like to create permalink to a search for a custom post type that has 2 taxonomies in it. Here are a few appropriate examples: /root/%taxonomyA%/%taxonomyB% ...
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
989 views

Wordpress Page Not Found if Permalink Settings is Postname

Uploaded code on staging server. in localhost everything is working well but on staging I can login to admin pabel but can not see any page on frontend. When any page is accessed it says The requested ...
0
votes
0answers
37 views

Prepend Taxonomy slug to post

How do I add a custom a taxonomy slug to posts like abc.com/bangalore/post-name-title and incases where I don't have a taxonomy (say 'city'), I want this to be abc.com/post-name-title ? My ...
0
votes
0answers
74 views

404 Page not found error - what messed up the permalinks?

Today I encountered an interesting problem on one of my WP blogs. Everything was working fine, until URL broke. The main page was loading correctly, as well as the admin dashboard. The problem was ...
0
votes
1answer
41 views

Posts in Page - How to customize the URL?

I have a "normal" WordPress install. Blogposts are displayed on the homepage an there are a few pages. Now I want to display the posts of a specific category on a page, so that I can add some ...
0
votes
0answers
157 views

Uppercase vs. Lowercase page slugs

We are migrating a site to WordPress from another platform. An issue came up with the URLs--some are uppercase, some lowercase. I allowed uppercase using this solution: How can I make Capital letter ( ...
0
votes
0answers
29 views

Redirect imported blog posts using my permalinks settings

I have imported all of my blog posts from a different CMS to a local WordPress setup to test things out before going live. Here is the layout of the posts from the old CMS: <PublishingArticles> ...
2
votes
1answer
116 views

Categories' hierarchy in URL

The posts in the website I'm currently working on have multiple hierarchical categories applied to each of them. For instance: Source - Books -- Moby Dick -- Sherlock Holmes The permalinks are set ...
0
votes
1answer
351 views

Add .html to Woocommerce permalinks

I'm redesiging a site for a client using Wordpress and WooCommerce and I need to add .html to all the woocommerce permalinks so they don't lose any SEO ranking when we go live with the site. Does ...
0
votes
0answers
35 views

Is it possible to output breadcrumbs with a custom esc_url( the_permalink() );?

Specifically when listing search results on a page, I would like to output esc_url( the_permalink() ); as: Breadcrumbs > linking > to > page I've seen lots of articles, plugins etc referencing the ...
0
votes
0answers
60 views

2 loops with pagination on a single loop

On a page I want to always show the most recent post on top with a different layout, and have the rest of the posts listed below. So I created a template page with these 2 loops. But I cannot figure ...
0
votes
1answer
43 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
0answers
28 views

Permalinks for categories…making sure that you get the right link in a Category Archive

I recently completely a site with a lot of categories and sub-categories. And in many cases, a post might go in multiple categories. Of course, I know how to do that by simply checking off multiple ...
0
votes
0answers
43 views

Permalink not working

The address of my WordPress site is something like: http://mycompany.com/personnel/myname. The installation folder is: /www/personnel/myname. When I change Permalink to Post name, it requires me to ...
0
votes
1answer
157 views

How do you intercept the page requests in Wordpress?

I am working with Wordpress 4.1. I am building a custom template that won't be using Wordpress pages. I would still like Wordpress to use permalinks like 'www.website.com/{page_name}/{something ...
1
vote
1answer
155 views

Custom post type permalink tag 404

I'm using wp-types to build a wordpress site. I'm happy with the types and their fields, I just wanted to created a function that shows parents in the url - see blow function that achieves this - also ...
0
votes
1answer
53 views

Remove sequential number from permalinks

I'm organizing some custom post types by taxonomy so that my URLs would look like /small-groups/spring-2015/date-your-mate /small-groups/fall-2015/date-your-mate The spring-2015 and fall-2015 are ...
0
votes
1answer
299 views

How to check if last uri segment is a custom post type or taxonomy term?

After following Jeffs suggestion on this thread to create nested parent and child taxonomy terms within a permalink like... url.com/custom-post-type/taxonomy-parent/taxonomy-child/cpt-entry It ...
-1
votes
1answer
55 views

Strip category base from URL?

Where I Place This Code Or How Can I Use This? function wpa_alter_cat_links( $termlink, $term, $taxonomy ){ if( 'category' != $taxonomy ) return $termlink; return str_replace( '/category', ...
0
votes
0answers
49 views

Redirect a permalink date structure change

Our site had a structure http://www.example.com/category/year/month/article-title which we changed to http://www.example.com/category/year/month/day/article-title (i.e. we added the "day" to the ...
1
vote
1answer
156 views

Custom url for a single page

Created a page and the link is like the following http://www.demo.com/?page_id=1081 need to be like the following http://www.demo.com/phones I need this structure only for this page .So i don't ...
0
votes
0answers
17 views

Converting WP Page to use full explicit paths?

I'm integrating a 3rd party product db/search feature into an existing/live Wordpress website using the vendor's Remote HTML Framing Code template. They are asking me to "convert all paths to full" ...
0
votes
1answer
91 views

Group Posts by First Letter of Title categories

Questions is a duplicate of this one: Group Posts by First Letter of Title However, I was unsure whether I could ask on that, or I had to start a new question, so I did the latter ;) I implemented ...
1
vote
2answers
205 views

Tag Archive for Custom-Post-Type Posts yielding 404 when permalinks set to postname

I have a custom post type "news_updates" which I have not given custom tags or categories. I have however created a normal tag (not attached to a custom post type), and assigned it to a particular ...
0
votes
2answers
116 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 ...
1
vote
1answer
89 views

Visting slug for 'post' post type shows 404 not archive?

I'm trying to get the WP default post type 'post' to show under the slug of /news/. I've changed the permalink structure to /news/%postname%/ which is fine when visiting a single page, however when I ...
0
votes
1answer
35 views

MultiSite Move conjures duplicate URL

I just tried to do a very painful move of a multisite. I thought I had everything working until I clicked a blog link on the MAIN site and I was greeted with a duplicate url. Something like this ...
0
votes
0answers
37 views

Permalinks problem: Error 404

I have a problem with my Wordpress Permalinks. Except the first page, when I click a link, I always get the error 404 Object not found. I mention that i have mod_rewrite in Apache set to true. ...
1
vote
0answers
488 views

Getting a 500 internal server error ONLY on wp-admin/options-permalink.php

I have access to the admin panel, and everything works fine. I can click settings->reading and change anything I want to. But if I click settings->permalinks I get a 500 internal server error. Here's ...
0
votes
1answer
38 views

How can I get Wordpress CPT archives and page templates to work with prettified permalink settings?

I'm having very weird issues with my permalinks and template files on this site I'm building. I've created several Custom Post Types. These all have archive pages in my template structure named ...
0
votes
1answer
27 views

When using number in url it is redircting to same page but when using character it redirects to 404

I have a website e.g abc.com in wordpress, when I enter any url like abc.com/blog/1232132 then it is redirecting to the same url and showing the content of abc.com/blog but when I am using urls like ...
0
votes
0answers
176 views

Error 404, pagination in custom query for permalink category/postname

I have trouble using custom query to paging my category posts. here's the situation. I set my permalink as %category%/%postname%, I am using very standard function paginate_links( $args ) $args = ...
0
votes
0answers
63 views

Pretty permalinks with multiple taxonomy queries

I'm using a plugin called Query Multiple Taxonomies and I can't seem to get pretty permalinks to work on those pages. The URL structure is: ...
0
votes
1answer
188 views

Custom post type single (permalink) throws a 404 error

I'm working on a website that has Woocommerce installed (also a CPT if I'm right, but that one works fine). This website has a custom post type for jobs, this cpt has posts that are linked to in the ...
0
votes
0answers
18 views

Adding a variable to a permalink

<a href="<?php echo esc_url( home_url( '/' ) ); ?>team-names/" . $term->slug; "?>""> How would I correctly add $term->term_id to a permalink? (it outputs a slug)
0
votes
1answer
147 views

Passing user defined variable into get_permalink

I'm trying to use a predefined variable (generated from an earlier sweep of the database) in wordpress' standard get_permalink( get_page_by_title) function. I'm assuming that this is possible? But I ...