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

get_permalink to an anchor

Well, it's probably a dumb question but I don't know how to add an anchor to a permalink. I'm just trying to add a button in my posts list which leads directly to the comment section of the post. ...
0
votes
1answer
19 views

redirect 301 with special character like WIX site “#!”

i want migrate a WIX website to wordpress and i want preserve the SEO score without broken the url of every post-page. but the structure of WIX url is composed by special character like "#!" , now how ...
2
votes
0answers
27 views

+ Character in permalink

I'm currently working on a new website that I need to migrate from an old CMS to WordPress. The old system had some URL values with id's in it: http://www.domain.ltd/page+1234. When i place this url ...
0
votes
2answers
24 views

Deleted Page Still In WordPress Database

After permanent trashing/deleting a previous page with the same permalink, I still can't make a page save its permalink without the "-2" added to the end. How should I solve this problem? Choosing "...
0
votes
0answers
16 views

Custom permalink structure for standard Wordpress posts only

I know, I know...it's another permalink-related post. I've been racking my brain, searching this site and Google as a whole and cannot find a single answer to this. I'm getting extremely frustrated ...
-2
votes
0answers
25 views

Siloing with wordpress - For professionals only?

want I want to do: I want to change the structure of my website. I have two custom post types(CPT) "car", "bike" and a blog. I am using CPT UI Plugin for the custom post types. But I don't get ...
0
votes
1answer
20 views

Add a filter to get_comments_link()

I am trying to change the permalink #comment-xy to #customname-xy. When i change the corefile comment-template.php on line 754 to $link = $link . '#customname-' . $comment->comment_ID; I achieve ...
0
votes
1answer
937 views

All pages are redirected to homepage if using Permalink Custom Structure

My website http://laptopre.net/ is running on WP 3.4.2. When I changed the Permalinks setting to Custom Structure - /%category%/%postname%/ , all the pages in my site are redirected to homepage. ...
0
votes
0answers
12 views

SSL issue with permalinks (Nginx, CentOS, Vesta)

I am having issues setting up SSL for one of my website. First of all, let me explain my setup; I am running CentOS 7, Nginx, PHP-FPM, and Vesta CP. The website I am trying to setup is built on ...
3
votes
2answers
850 views

WordPress 3.4 Permalinks Redirection Problem

A few years ago this was the permalink structure I had for my blog: /%year%/%category%/%postname%.html I changed these permalinks last year to this: /%category%/%postname%/%post_id%/ A ...
0
votes
1answer
24 views

Change the url of a custom post type to include taxonomy

I'm trying to create a custom post type where there will be a lot of identical post names, but they will have different taxonomy values. Is it possible to define a slug mode where the taxonomy ...
0
votes
1answer
455 views

Wordpress Permalinks & Nginx Rewrite Rule Not Working

My Server configuration is: Nginx php-fpm5 I set up WordPress and it's working fine with custom permalink 'Day and name'. Now I want to set the rewrite rule in the nginx file and it's not working ...
1
vote
1answer
18 views

Specific URL Rewriting with parameters in wordpress

I'm rewriting a website that was originally in Drupal and has very specific URL's. So, I need to rewrite all the original URL's to the wordpress system + the parameters for my own-written plugins: I ...
0
votes
1answer
14 views

Permalinks broken regularly

On one of my sites the permalinks are broken regularly. After saving them again it's all fine but a few days later the permalinks result in not found and I have to save them again. There are no ...
0
votes
0answers
8 views

Nginx and Permalink for WordPress inside sub-directory of sub-domain

I've just migrate my site from apache2 to nginx. I've installed two WordPress sites inside a sub-domain of a sub-directory. The WordPress sites are installed on each sub-directory on sub-domain eq. ...
0
votes
0answers
10 views

WordPress permalinks redirect to localhost

I am having this issue where all permalinks redirect to localhost. I am running Ubuntu on a VPS. All links give 301 redirects to localhost. For example: www.example.com/some-link redirects to ...
0
votes
1answer
534 views

Hierarchical permalink structure for posts showing categories and sub-categories

I'm having a lot of trouble finding an aswer to this. This is what happens to my permalink structure currently: When I open the page, filtering all posts for a category, the url is: myblog.com/...
1
vote
0answers
20 views

Custom Permalink Structure Redirects Pages to Homepage

I'm trying to add a custom field to my post types permalink structure - for the test purposes I've simplified the code. The custom permalinks work but the issue is that Top Level Pages redirect to the ...
0
votes
1answer
20 views

Change media item permalink

I have an image whose permalink is domain.com/books I would now like a page located at this permalink. Is there a way to change the image's permalink? Thanks
0
votes
2answers
983 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: ...
14
votes
9answers
13k views

Remove taxonomy slug from a custom hierarchical taxonomy permalink

I created a 'forum' taxonomy, using these rules: register_taxonomy( 'forum', array('topic'), array( 'public' => true, 'name' => _a('Forums'), 'singular_name' => _a('Forum'),...
48
votes
4answers
70k views

Get page link from slug?

Is is possible to get a page's permalink from the slug alone? I'm aware that you can get the page's permalink from the ID using get_page_link(): <a href="<?php echo get_page_link(40); ?>">...
0
votes
0answers
20 views

Rewrite rule with a custom post type and a custom field

I'm creating a website that will display, from a search by location, a list of singer. If we click on a singer I will have to display that singer with the city inside the url. Here are the two ...
1
vote
1answer
1k views

How can a guest view the “Pending Review” Post?

When a user creates a new post it will have "pending" status. So I want the visitor (guest - not logged user) to be able to view "Pending" posts and vote it to "Publish" if enough "X Votes". Google ...
1
vote
1answer
1k views

404 - Category pagination for custom post type

--Edit I've managed to narrow it down that the paged variable is not working properly here, (get_query_var('paged')) ? get_query_var('paged') : 1; is always returning 0 although maybe it is due to ...
0
votes
0answers
36 views

Permalinks not working when using a custom query for a custom post type

I'm using WP_query to get a list of items from a custom post type. The code I'm using for the query is this: <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $loop = new ...
1
vote
2answers
738 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 ...
1
vote
1answer
416 views

How do I fix permalink and media library issues on a LEMP stack?

So, I'm setting up a wordpress site on Digital Ocean's IaaS. I'm using nginx as a proxy and web server (instead of apache), so a LEMP stack. I was able to get my site up and running, though there are ...
0
votes
3answers
945 views

WordPress keep redirecting me to random URLs

When I go to my homepage, http://example.com, I sometimes get redirected to http://example.com/SXKSLW/ or some other random URL along that pattern that yields 404 page. I do not remember doing ...
1
vote
2answers
320 views

Stop Wordpress appending `-2` to the end of my url after i change it

When i try to set the url of a page in wordpress (4.2) it keeps apending -2 to the end of the url, i guess its becuase this ulr already exists, but i checked and it dosnt, although at one time it did ...
2
votes
1answer
894 views

How to display comments on different page

I am creating a reviews site and I want to display the customer reviews (comments) on a separate page from the single-restaurant.php. I'll just have a link that says (Read reviews/ add yours). I ...
0
votes
0answers
9 views

Rewrite URLs for LeadPages due to subdirectory installation

I am using LeadPages on a WordPress site (with the LeadPages Connector plugin), and need help improving its URLs. My WP installation has its own directory (wp/) in the docroot of the server (per ...
0
votes
2answers
778 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 ...
-1
votes
1answer
420 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
0answers
9 views

Custom Post Type (CPT) not honoring custom permalink structure

I've got a custom permalink structure of: /post/%post_id%/%postname%/ When I create a custom post type I'd expect the permalink to be: /post/cpt/%post_id%/$post_name%/ But instead it's: /post/cpt/...
0
votes
1answer
14 views

Precedence of page permalinks over woocommerce product category links?

I have a situation I cannot quite understand, and wonder if someone could help me do so. We are developing an e-commerce store (WP + Woocommerce) Individual artists are represented by Pages (each ...
0
votes
1answer
810 views

Passing variable as permalink URL

I've been trying to adapt the rewrite functions described here with little success: Passing variables through permalink structure WordPress permalinks and custom $_GET Variables The structure of ...
0
votes
0answers
11 views

Permalink URL with /type doesn't work

I have a domain with WooCommerce and the following works: http://example.com/product-category/labrets/ The following also works: example.com/jewelry-type/labrets/ example.com/jewl/labrets/ ...
0
votes
1answer
28 views

Permalinks and custom PHP application

I have Wordpress installed in the root directory and configured properly using permalinks. Alongside the Wordpress blog, I have a full-fledged custom developed php application with several pages. I ...
0
votes
1answer
55 views

set new link as permalink

i have external link stored in a variable $extlink which is generated based on different selections in the post. how do i set the permalink to be this $extlink so that when i click on the post it ...
0
votes
0answers
8 views

Bulk update post slugs (find and replace all)

Is there a way to bulk update permalinks through the database? I have several 100 posts and all I want to do is replace all "-" to "_" to the permalink. I could just manually update but that's too ...
0
votes
0answers
30 views

404 custom post type

I've set up some custom post types and wanted to visit the pages but I only get 404 errors. I've searched the web and it seems to be a known problem, but I didn't find a solution that worked for me. ...
0
votes
2answers
8k views

remove “index.php” from permalinks

I have been trying to find a solution. but I can't.. my links are all domain.com/index.php/post_name/ I really want to remove /index.php I have searched and found some... saying I need to add these....
0
votes
0answers
14 views

Single Post as Home with Next/Previous Going to Permalinks

I'm building a webcomic website and I want the home page to always display the latest single post, i.e. comic. I want buttons for “First” “Previous” “Next” and “Latest” that will take the user to ...
0
votes
0answers
21 views

WordPress Link - Custom Project

hope doing fine. I have a project and um really stuck in. Concept: http://abd.press/fU4yH Here is a little code, which i was successful to get from different sources but unable to manage next. <...
0
votes
1answer
2k views

Use menus with anchors

I have a CPT archive page and I want to create a navigation menu which will jump to anchors in the form <a name="post-slug" http="{the permalink goes here}>The CPT Title</a> I have been ...
0
votes
1answer
602 views

Subdomains to pages

Hi I have a website on wordpress which have 2 pages which I meant to convert it to subdomain. Eg: Let my website at be http://www.domain.com there are two pages http://www.domain.com/page1 and ...
0
votes
1answer
2k views

Redirect & permalink problems after moving multisite to a new server

I just moved my subdomain multisite to a new server and I'm having some trouble with permalinks & redirects. One difference post-move is that I have moved core WP files into it's own directory /...
5
votes
1answer
60 views

Custom post type by ID in root folder

i have a custom post type project the url that worked out of the box was: www.myapp.com/project/POST-ID and www.myapp.com/project/POST-SLUG now my client needs the url be available in the ...
0
votes
2answers
423 views

404 Page Not Found for Only One Post

I have 40+ posts on my blog. Only one of them is going to a 404 page when I click the title (visit the permalink). To see it in action: http://thegrovestead.com/tag/strawberries/ Look for the post "...