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

Add custom post type name in term link?

Is possible add name of custom post type in link of taxonomy term and remove slug of taxonomy? The default link is: slug_taxonomy/term_name I like: post_type_name/term_name Note: I use WPML ...
0
votes
2answers
32 views

Change Buddypress Admin Profile Page Permalink

Does anybody know how to change the default admin profile permalink in Buddypress which is: domain.com/members/admin/ to this: domain.com/members/MyUserName/ I tried to change my name and it doesn't ...
0
votes
0answers
26 views

Is there a way to add slug to home_url on this function?

I have a hard time figuring out how to do the following. I have this function, which broadcast an url from my wordpress posts to my social accounts on Twitter and Facebook, but it shares them with the ...
0
votes
0answers
11 views

How do I link from Thumbnail ( Fragment ) to post?

I'm new so be gentle. I am using a content slider that uses "fragments" for thumbnails beneath the slider. It uses this code to display those thumbnails: <a href="#fragment-<?php the_ID(); ...
1
vote
1answer
46 views

Nginx url rewrite rule problem

I am facing a problem with the permalink. Urls like http://example.com/sub-page/ works fine with the help of try_files $uri $uri/ /index.php?q=$uri&$args; Right now i am working on temporary ...
0
votes
1answer
33 views

Permalink for PDF of article

I'm trying to learn if this is possible, and how I might go about implementing it. Our site is a scientific journal, and our published articles follow this permalink structure: ...
0
votes
1answer
52 views

template_include not loading -instead goes to index.php

I have the following code: <?php function ex_rewrite_rules(){ //discography query variable rewrite add_rewrite_rule( 'artists/([^/]+)/discography/?$', ...
0
votes
2answers
50 views

Permalinks not working (.htaccess is writable)

I've just recently setup a new Wordpress site on a Debian based VPS. I've managed to get everything working fine except for the permalinks. None of the options work except for the default one. My ...
0
votes
1answer
82 views

Permalink with a Category and then a Post

I have a multsite Wordpress install and each site can have their own categories. I would like the site URL to be the new site name and then a cateogry and a post or page name. For example, if I have ...
0
votes
0answers
19 views

Keep wordpress from modifying my permalinks

How can i stop wordpress from modifying my permalinks. It is like it has a mind of its own. If I have title of the page such as: Top Benefits of Red Apples, the permalinks is top-benefits-apples. ...
0
votes
0answers
23 views

Using categories and pages in menus

I've got a problem with mixing categories and pages within menus. As a fictional example: - About us (custom page template) -- What we do (page) -- Key staff (page) -- CEO blog (category) ...
0
votes
0answers
33 views

Custom Post Types and rewrite rules - One CPT works and a cloned one doesn't

I have two Custom Post Types in my plugin and have a custom single-{cpt}.php file for each in my theme. Each page grabs the content from a specific wordpress post. The first 'house' post works but the ...
0
votes
0answers
25 views

Links not working on “post name” permalink

I am working on wordpress 4.0 I have uploaded a WordPress site on live server and have done all the changes in database files and config and site is working properly with index page, but when i click ...
0
votes
0answers
21 views

Shop coding dynamic permalinks & titles

I have built a shop application using php and mysql and wasn't sure how to add it to wordpress but I had a stab at it anyway, I managed to get it to function fine but because the pages are dynamically ...
0
votes
3answers
229 views

URL rewrite and navigation structure for wordpress custom post type

I have created the following custom post types: Artists Albums Songs Songs are children of Albums, Albums are children of Artists. I am trying to set up a navigation structure that shows this ...
0
votes
1answer
91 views

Wordpress Permalinks not working in Apache2 Ubuntu 14.04

In my local machine, wordpress permalinks not working. After research I found that wordpress not creating .htaccess file. For this I followed below steps. Manually create a ".htaccess" file and ...
0
votes
1answer
55 views

Get permalink of a post without using Wordpress functions

I'm trying to get the permalink of a post without using Wordpress functions and am trying to find the best way to go about it. Basically whats happening is that I have a multi site install of ...
0
votes
0answers
28 views

Trouble with custom post type archive on multisite install

I have a problem with a post type archive on a multisite install. When try to access it on one of the sites I end up getting a 404. Checking the url shows the following, all other sites work without ...
0
votes
1answer
31 views

Pagination url for page template

I am creating a page template in WordPress to show all my posts. But i have a problem with pagination. I have a page url like below: http://localhost/sdd/video "video" is my page slug. And the ...
0
votes
0answers
63 views

Custom post type empty slug breaks permalinks for pages

In attempt to avoid posting a ticket to essentially reopen #15082 I'm posing here first. I have been vigorously dealing with this CPT permalink rewrite for countless hours now. After a 3am kinda night ...
0
votes
0answers
45 views

Custom Page Taxonomy - 404 errors all over the place

I keep looking at the same few lines of PHP over and over again, and I can't make heads or tails out of why the 404 errors are happening. Here are the lines: add_action( 'init', ...
0
votes
0answers
14 views

two permalinks for the same post

Do you know a way of having two permalinks for the same post? I have post with an hebrew slug and i want to have the same result with an english slug i'll give it.
0
votes
0answers
31 views

Page Type with Category Link

I have a custom-page type "page-clients.php" which loads category of "clients". Example: http://website.com/clients (all clients-working) Example: http://website.com/clients/9 (sub category ...
0
votes
0answers
23 views

wp_publish_post to saved draft, permalinks broken

I'm creating a system, where some custom post drafts are being prepared, and after certain actions taken by moderators it is being automatically published. So, first I create post draft like that: ...
1
vote
1answer
98 views

Change in permalink structure made javascript cookie not work correctly

My site needs a mechanism where a user is sent to agreement page when he visits the site for the first time. Once he accepts the agreement, it is saved in cookie. He can browse any page directly after ...
1
vote
0answers
27 views

Base permalink for custom taxonomy

I'm using custom hierarchical taxonomy that is attached to custom post with following structure: www.mysite.com/movies/drama/example/ where "movies" is a slug for custom taxonomy and "drama" is an ...
0
votes
0answers
13 views

Lightbox and add_rewrite_endpoint

I have the following code for custom URLs: function wpa_gallery_endpoint(){ add_rewrite_endpoint( 'gallery', EP_PERMALINK ); add_rewrite_endpoint( 'photos', EP_PERMALINK ); } add_action( ...
0
votes
0answers
66 views

Issue with pagination() get_pagenum_link() and language permalinks

I'm quite new to Wordpress and php. I managed to put up a site running on three languages with a plugin called "qTransalte" and a theme that had blog posts, slide posts, portfolio posts and highlight ...
0
votes
0answers
28 views

get_tag_link returns all posts

I recently changed my permalink structure from 'default' to 'day and time' and as a result my index page has stopped working. Before it would return only the posts with the relevant tag but now it ...
0
votes
0answers
23 views

Prevent guessing slug

I have the following rewrite rule function add_rewrite_rules($rules) { $new_rules = array( 'buscador-latte/(.*)/?$' => 'index.php?page_id=866&search_parameters=$matches[1]', ); ...
0
votes
0answers
10 views

Bad attachment links (starting with “../wp-content/uploads”)

For some reason, WordPress is generating attachment images with bad links (beginning with a relative call, which breaks with prettified URLs). The links begin with "../wp-content" - and I can't figure ...
0
votes
1answer
27 views

Define a Permalink Structure by Post and Page

All, I have a post that works fine with a permalink setup. However, I also have a page called gallery. What I would each post can have a page. So for example I have a post named business-name so my ...
0
votes
1answer
28 views

Issue On Displaying Pages with Post Name Permalink

I have a simple Theme like below Right now when I navigate to localhost and site root directory I am able to see content from header.php , footer.php and page.php. then, I simply generated some ...
0
votes
1answer
58 views

Big arabic permalinks not work

I have error in permalink, I have post that title is big like :- مراجعة : Sony Xperia Z2 و إيجابياته و سلبياته و كل ما تريد معرفته عن الجهاز ! Now when open the post in my site i see permalink like ...
0
votes
1answer
44 views

Issue on Getting Custom post type Thumbnail's URL

I need to get the URL for Custom post type Thumbnail and assign it to the_post_thumbnail('', array('class' => 'group1 img-responsive', 'href' ...
0
votes
0answers
11 views

Custom Post Type Taxonomy question [duplicate]

I am currently working on a WordPress site and I'm using a custom post type named 'project'. The URL leading to this CPT is localhost:8888/wordpress/project. The problem I have here is that that page ...
3
votes
1answer
323 views

Wordpress homepage loads but all permalinks are 404 when using nginx & PHP-FPM

I have been trying to resolve an odd problem with my nginx config, which seems to have stopped working shortly after applying a Debian backports upgrade. The landing page of my blog ...
0
votes
1answer
24 views

I Need to use Month , year in my all archives and pages of my wordpress site

I need to have month/year in all my pages in my wordpress site . For example : If that the page title is " Online exams " I need to have it like " October 2014 online exams" . I have around 10-12 ...
0
votes
0answers
17 views

use root url for every permanent link in permalink structure

I would like to redirect each "view post" or similar button in the backend to the root Page. I now just entered a / in the custom structure of permalinks. Could this give me any issues, with e.g. ...
1
vote
1answer
55 views

Post slugs and images cannot have same name?

If I go to Media Library and upload an image called apple-pie.jpg And then I create a post called www.domain.com/apple-pie/ The link does NOT take me to the post. Instead the link will take me to a ...
0
votes
0answers
26 views

Custom Post Type rewrite permalink

I am trying to rewrite permalinks for my custom post type. The structure I look is: /%custom_post_type%/%custom_taxonomy%/%date%/%postname% Any ideas how can I achieve that?
0
votes
0answers
32 views

Pretty permalinks for subdomain installation

Currently, the only way my posts will appear is if I have Permalink settings set to "Default". I would like to set them to "Post name". When it's set to "Post name," I get a 404 not found error. My ...
0
votes
1answer
31 views

Check if excerpt is empty at loop-portfolio

I want to check if excerpt is not empty, then echo the excerpt link, if not the echo permalink, like this: if(the_excerpt()!='') echo the_excerpt(); else echo get_permalink() but how can I check if ...
0
votes
2answers
70 views

Permalinks when using Custom Post Type with static page for archive

I have created a custom post type called "portfolio" and I use a static page to list my portfolio posts because I need to add content using the content editor. My problem is that I would like this ...
0
votes
0answers
9 views

mod_rewrite issue

I am having problems all of a sudden with images not displaying. If I deactivate mod-rewite in .htaccess then images come back but I can no longer access post page permalinks having to resort back to ...
0
votes
1answer
40 views

Enabling permalinks disables custom page template

I have assigned a custom template on a page in wordpress, but it's not working anymore after I enable permalinks. Instead of the custom template, the "post-type-archive-portfolio" template is used. ...
0
votes
1answer
67 views

Bulk update post slugs through database

Is there a way to bulk update permalinks through the database? cause I have like 20k posts and all I want to do is add a prefix to the permalink. I could just manually update but that's too tiresome ...
0
votes
0answers
15 views

Pretty permalinks to work for lighttpd webserver?

Does anyone know how to set up pretty permalinks for lighttpd web server? I've search on the web, but I didn't find anything reliable. Until now I only tried this which didn't work. Is this method ...
0
votes
1answer
84 views

get link of inserted media file of post within loop

inside the loop I would like to retrieve the URL of an inserted media file of each post. My attempt was: <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <a href="<?php ...
0
votes
0answers
96 views

Fix 404 error after changing permalink structure

hope you are all doing good! I have this problem. I had set "Post Name" as the URL scheme, therefore, I get www.site.com/article-title for blog entries. I've written a few test posts and I realize I ...