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)

1
vote
1answer
415 views

Permalinks for Taxonomy and Custom Post Type

Have the following situation here: Custom post type: 'recipes' Taxonomy for custom post type 'recipes': 'receitas' One of the taxonomies slug: 'receitas-whoopie-pie' The permalink structure MUST be: ...
1
vote
1answer
19 views

Get new Wordpress slug from old wordpress slug

I have implemented a shortcode called post which contains an attribute src which has link of an of page [post src="http://www.listenmoneymatters.com/the-betterment-experiment/"] Currently, this ...
0
votes
4answers
447 views

Exclude subcategories from the url

We have a site with categories and subcategories. If anybody navigates to a content belongs to a subcategory the url will have the following form: domain/main-category/sub-category/mycontent/ But we ...
0
votes
0answers
15 views

CPT Rewrite Rules by date

I'm having issues with date categorized posts for my CPT. I have permalinks not on the default. I created a CPT with register_post_type and setup rewrite rule as follows. 'rewrite' => array( ...
0
votes
0answers
10 views

How to properly make a blog roll?

I know that there's a home.php for the blog roll. However, I've been seeing a lot of WordPress sites lately and their blog rolls are under "articles" or "writing" like "somone.com/articles" or ...
1
vote
1answer
865 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 ...
-4
votes
0answers
21 views

How to disable permalink auto cut? [on hold]

How to disable permalink auto cut? i would like to use full title long permalink in url how to ?
0
votes
1answer
1k views

WP Rewrite Rules - Custom post type & taxonomy

I've been beating my head against the wall for a few days trying to figure this out. I have a custom post type and custom taxonomy and I'm trying to get my URL's to work. Here is the URL structure ...
1
vote
0answers
18 views

Make Category Base Appear in Posts Permalink (but not tags)

I have a slight problem with WP permalink structure. My aim is to make posts permalink appear with a specific category and it's base, for example: domain.com/custom-base/%category%/%postname% And ...
2
votes
2answers
804 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
41 views

Load custom PHP on a custom URL via a plugin

I am looking into having a plugin developed that loads a PHP script (myscript.php) on a custom URL. It's very important to achieve this functionality with a plugin. Example: example.com/myscript - ...
0
votes
2answers
645 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
20 views

Change slug of registered custom post type in child theme

I successfully renamed a custom post type registered by my parent theme in my child theme using this method. The problem is, my permalinks haven't changed. So when I change portfolio to homepage and ...
0
votes
0answers
21 views

posts not show after changing permalink [on hold]

I changed My Permalink in setting area in the dashboard menu After changing the permalink, the setting worked and changed the links, but posts content are not showing up and the links go to not found ...
0
votes
0answers
11 views

Using Tag name in link to post

I have 2 Tags one is named 'The Guardian' and the other is named 'New York Times' assigned to some posts. Right now my link to those posts on my home and category page says 'Read Full Article' and ...
0
votes
2answers
27 views

Template Tags return incorrect values on mobile [closed]

I'm writing a website for a company that already has a WordPress-based site elsewhere on the same server (the site I am writing has a different domain, but is on the same hosting machine). The site ...
2
votes
1answer
409 views

Programmatically adding posts

I'm about to create parser which would be inserting new custom posts. So, it's pretty simple global $user_ID; $new_post = array( 'post_title' => 'My New Post', 'post_content' => 'Lorem ...
4
votes
3answers
6k views

where is permalink info stored in database?

I see that I can edit permalink information in wp-admin page > settings > permalinks. However, where is that information actually stored in the database?
0
votes
0answers
7 views

Link Post Titles to External URLS

I have a site full of 1000s of newsfeeds. When user clicks on the title, it takes the user to the article page, then the user must click 'read full article' to go to the external url. Is it possible ...
0
votes
3answers
30 views

Page uses index.php instead of custom template while changing permalink [on hold]

I'm asking this question with the hope. Here is the problem: I made a custom page template with comments in it [/Template Name: custom page template/] and assign this template to a page. This page ...
0
votes
1answer
327 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: ...
0
votes
2answers
336 views

404 Error On Custom Taxonomy Pages 2, 3, etc

I've been reading a bunch of posts about this with no luck so far. I can't seem to figure out what is the problem. I have the following: Custom Post Type: Sermons Custom Taxonomy: Series My urls ...
0
votes
0answers
18 views

Adding %subcategory% to permalink structure: either subcategory or single-post outputs 404

I've had this problem before but never actually found a solution. Let's say i have a portfolio category, a drawings subcategory and a my-new-drawing single post, which belongs to portfolio/drawings/. ...
0
votes
1answer
18 views

What is the action or filter for changing permalink in Edit Post/Page?

I know about edit_form_after_title hook but what about changing the permalink. How does WordPress creates permalink because that permalink and the one that get_the_permalink returns doesn't match? ...
4
votes
2answers
674 views

Create permalink structure for one taxonomy archive per custom post type

So, I've been going crazy trying to figure this out. Essentially, I've created two custom post types, 'the_case_study' and 'the_video', with respective slugs 'case-studies' and 'videos'. I've also ...
1
vote
3answers
768 views

single-type.php not working, delivering 404

I've created a custom post type, and have successfully added a few entries. I can call these entries out with query_posts() to show on the front page, but the_permalink() on each of them just sends me ...
1
vote
1answer
17 views

Moved page (new parent) loads properly using obsolete URI. Why?

I hope someone can explain how WordPress knows to properly serve up a page that has been moved - even when using the "pre-move" URI. I would expect to get a "404". Instead, WordPress redirects to the ...
0
votes
2answers
354 views

Can't get the previous and next posts permalink

I tried to get the next and previous URL, and create a navigation. But it seems to only retrieve the permalink from the two first posts (but not the others recents posts). I have 5 posts (ID = 25, ...
0
votes
2answers
694 views

Page Navigation is not working with permalink structure

I am displaying a list of employees using my custom plugin. My permalink structure is %category%%postname%/ My page navigation was like http://www.example.com/emp/?page=2, and was working fine until ...
0
votes
1answer
26 views

Get a link to paged(<!--nextpage-->) part?

I want to get a link (like get_permalink($id) ) to it's specific page of a post (created by <!--nexpage--> tag).. how to achieve this?
0
votes
1answer
556 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
11 views

redirect post_id urls to full post url

I am having a site where I am using permalink like site.com/%post_id%/%postname%/. If a person visit site.com/%post_id%/ it does not redirect to full post url.
8
votes
2answers
375 views

Get default permalink structure from pretty URL's

When a single post is clicked on from a category page or for that matter any page, you can get the URL of that referrer and parse it to get the query string. But this only works with the default ...
2
votes
3answers
487 views

Title and post URL based on custom fields?

I have custom fields in my custom post type. They should serve as a title and post slug for URL. Basically, whenever I change the content of the custom fields, the title field should react ...
0
votes
4answers
148 views

Change permalink only on new posts

Is it possible to change permalinks on all posts created after a certain date? This because we don't want old URLs to break. Now we have /%year%/%month%/%postname% We want to have /%postname
0
votes
2answers
105 views

When WP_Query only returns 1 post, how do I automatically redirect to that post?

I've been searching around for a few hours now and can't figure out how to do this. Seems really simple. I've seen lots of redundant examples on how to redirect to a single post when a search result ...
0
votes
1answer
26 views

Permalink for specific page name

I create a new page with post name is 'my-page'. I also have 2 custom query strings. So, the URL will be like: http://domain.com/my-page/?qst1=aaa&qst2=bbb I want the URL like: ...
-1
votes
0answers
14 views

BuddyDrive user front-end not showing, possibly due to permalinks [closed]

I'm having an issue with the user front-end of BuddyDrive. When I'm in one of the BuddyPress groups and click on "BuddyDrive" I get redirected to the "main" BuddyDrive page, i. e. ...
0
votes
0answers
13 views

Custom Permalink with Custom user meta mapped to posts published by user

I want to map a custom user Meta to the permalink in the form of http://localhost/%user_meta%/posts. The user_metais a custom user meta whose id=brand. The URL http://localhost/%brand%/posts should ...
0
votes
1answer
16 views

permalinks of subcategory and posts

I need to list subcategories and the posts that in it, for example: <h3><a href="#">subcategory</a></h3> <ul> <li><a ...
0
votes
2answers
81 views

Change Image depending on page path

In my header.php I have the typical header code - this is for woocommerce but the coding has nothing to do with it: <h1 class="page_title"><?php woocommerce_page_title(); ?></h1> ...
0
votes
0answers
12 views

/page/2/ not showing

I am having a weird issue where when clicking on the pagination links the page just refreshes. The links are pointing to the proper pages(/page/2/) but when clicked, they do not show in the url. This ...
0
votes
1answer
45 views

hierarchical taxonomy in permalinks? using same slug

I use permalink: /%category%/%postname%.html and want to have categories like this: Wheels Mercedes Toyota Brakes Mercedes Toyota I want their URLs like this: ...
0
votes
0answers
15 views

Added incorrect rewrite rule now getting an error

I have made a mistake using add_rewrite_rule() function and now my site is throwing a 500 "internal server error" normally I would just edit/fix the issue in my .htaccess but since this is not how ...
1
vote
2answers
58 views

Removing the redirect after changing a page's slug

On one of my pages I changed the slug to form a different URL. E.g. Old: http://example.com/old-slug New: http://example.com/new-slug WordPress has done it's thing of redirecting ...
0
votes
0answers
31 views

Remove one part from the Permalink automatically

I have a bit of a messed up situation. The client wanted to have static landing pages like website.com/state/city but also create custom post types like restaurant. So I setup regular pages with the ...
7
votes
4answers
1k views

Can't get a custom template taxonomy page to display

I've been trying to wade my way through learning the ins and outs of taxonomies and how to integrate them into themes and I've run into a pretty basic issue that I can't seem to figure out. I started ...
0
votes
2answers
603 views

Custom Post Type Permalink Page Not Found

I've been wasting hours and hours trying to solve a permalink issue with custom post types. It keeps returning page not found (404). When I use the default permalinks, it works, but when I switch to ...
0
votes
1answer
42 views

Automatic -1 suffix being added to the permalinks of a page when the page does not exist

I have a really strange problem with a -1 suffix being added to a permalink on a page im trying to create which is getting very frustrating. Its specifically a page titled event, each time i try to ...
1
vote
2answers
42 views

nginx - permalinks with .php in url not working

I'm moving a site from an Apache server to a nginx server. A lot of the pages have a .php extension at the end of the permalink. Trying to view those pages results in a nginx 404 Not Found. However ...