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

How to make nested custom post type slugs work

I'll try to explain how I want this to work, rather than what I've done so far, as nothing seems to work. I want 3 custom post types: Products Consumables Accessories with the following slugs: ...
0
votes
0answers
63 views

URL Rewrite breaks pagination on some permalink structures

i created some rewrite rules for my profile page with multiple tabs. Member and tab names are passed via url to the page template. Everything works fine except for the pagination. When a permalink ...
0
votes
0answers
71 views

WooCommerce get query string problem with permalink

i using WooeCommerce for my site. This is my custom loop product in woocommerce.php located in my theme folder: if(isset($_GET['product_cat'])){ // list products by category } When permalink set ...
0
votes
0answers
22 views

Permalinks not working when bootstrapping from parent directory

I am trying to use WordPress from a subdirectory but access it from its parent. This is on order to try Capistrano deploys. I have the following directory structure index.php .htaccess /wordpress ...
0
votes
0answers
51 views

Edit permalink before publishing a post

How can I check and edit permalink of a post before it publishes. Using permalink is not enough customized, because I want my permalink to be like: ...
0
votes
0answers
31 views

Rewrite CPT permalinks with 'Post 2 Posts' connection

I have 2 CPTs titled 'Songs' & 'Artists' that are connected (Artists → Songs) via Posts to Posts Currently, the permalink structure for 'Songs' is www.my-site.com/songs/%postname% What I would ...
0
votes
0answers
42 views

exec JavaScript using add_action when publish_post

How can I execute some Javascript code when an user publish a post I want to do something like this before publish a post: add_action ( 'publish_post', 'custom_links' ); function custom_links() { ...
0
votes
0answers
36 views

how to force CUSTOM POST TYPES to use default permalink

my custom post type sample link is : mysite.com/custom-type-name/post_slug i want that my custom post types used the permalink structure, which i have set in Options>Permalinks (exactly, i want ...
0
votes
0answers
53 views

Change permalink based on post category

I am looking for a way to change the permalink structure based on the category a post is in. If the post is in the "blog" category I would like the permalink to be /blog/%postname%/ and if it is any ...
0
votes
0answers
29 views

Automatic redirect on change of permalink not working if child page

When changing the name of a permalink on a per post basis wordpress will automatically redirect the old URL to the new URL, but not if the page is a child page. e.g: Changing ...
0
votes
0answers
15 views

Endpoints help with permalinks

I'm trying to do the following, and I believe its done with endpoints, but I'm not entirely sure. I have 2 different CPTs. Let's call them "Movies" and "Music." The music is always from movies, but I ...
0
votes
0answers
70 views

get_permalink() with wp_rewrite giving wrong permalink?

I have two custom post types: news and special, each would require ID within the url, like example.com/news/ID or example.com/special/ID. Since wordpress's custom post type always have post title in ...
0
votes
0answers
50 views

Custom Post Type Permalinks Problem

looking for some help with a permalink structure problem. I am using this code here http://pastebin.com/QfgAMkfV as a plugin with hopes of creating a structure like so /films/ /films/film-name/ ...
0
votes
0answers
37 views

Changing wordpress permalinks for new posts only

I currently have many posts using the default permalink structure, domain.com/?p=123 I would like my new posts only to use a different permalink structure, domain.com/year/month/post/ The problem is ...
0
votes
0answers
62 views

?posts_type=xxx not rewritten

After some more testing and tweaks my main problem seems to be the order rewrite rules are applied, and the second is canonicalization. I'm using this in function.php makes year archives work: /** ...
0
votes
0answers
38 views

Rewrite permalinks using custom taxonomy or category

I have a blog I'm making for sporting events and I have categories (News, Commentary, etc.) and a custom taxonomy called "events" (100m sprint, long-jump, etc.) I'm trying to set up a permalink ...
0
votes
0answers
28 views

Custom post types and categories for my unique permalink situation

recently I've taken on a project that is a bit overwhelming due to the fact I have never made a website this big before. It's a travel website that features reviews, photos, user articles, etc. ...
0
votes
0answers
61 views

custom post type post sub page

I have a CPT and my permalink format is like this: http://animup.net/anime/attack-on-titan/ I want to be able to have a sub page like http://animup.net/anime/attack-on-titan/download My code looks ...
0
votes
0answers
31 views

Custom Permalinks Structure with particular word

I have some headache trying to customizing my permalinks... So here is what I need : 1) "mysite.com/news/" has to display all the posts. 2) "mysite.com/news/firstcat/" has to display all the posts of ...
0
votes
0answers
43 views

Capital letter in URL

How can I make all of my page names in URL begin with capital letter? I need this to maintain PAGERANK. Example http://www.example.com/page ---> http://www.example.com/Page
0
votes
0answers
28 views

Problems with custom post type and hierarchical permalinks

I have a custom post type "films" and a hierarchical taxonomy "genre" (terror,drama, action) I would like to obtain this urls: www.domain.com/films ----------------------------------> all the ...
0
votes
0answers
56 views

WordPress Custom Permalink Structure with Custom Post Type and Taxonomies

I searched for a solution everywhere, using plugin and without but I can't reach my goal. I have a Custom Post Type called "services", an associated Custom Taxonomy called "service-categories", and ...
0
votes
0answers
72 views

post_type_link function giving 404 errors

I have searched google and WordPress support, but nowhere I found any info about it. I am trying to remove the custom post type slug from the single post url and include the taxonomy base urls there. ...
0
votes
0answers
47 views

Custom Taxonomy Term in Custom Permalink Gives 404

I developed a small plugin to be able to add a custom taxonomy as a string to a post. I've included the variable in a custom permalink string. This string is used by Apache to determine if external ...
0
votes
0answers
123 views

Only homepage working correctly, 404 error on everything else

I've been developing wordpress based websites for some time now, and i built one for my company's own brand, it worked with no problem at all for ages, but now for some reason, i can only get the ...
0
votes
0answers
243 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
23 views

create a permalink based on a post type

I want to create a permalink based on a post type. I am using twitter bootstrap nav walker file. In this way: example.com/#home example.com/career example.com/#testinomial example.com/contact i am ...
0
votes
0answers
61 views

Wordpress query var pretty url prefix

I want to add custom query parameter to define language in wordpress, but i want it to be in permalink structure before all other vars, for example: site.com/en/page site.com/en/post and for ...
0
votes
0answers
45 views

How to update permalink on the fly?

So, Wordpress automatically generates the slug/permalink on the fly based on the post title after you click away from editing the title. Is there an action/filter hook for me to change those on the ...
0
votes
0answers
137 views

Full permalinks with custom post type and multiple taxonomy depth

I'm really hoping someone can help shed some light on this for me, it's getting very confusing and seems no-one has answered a question like this yet. I have a custom post type (news) and a ...
0
votes
0answers
29 views

Permalink Settings for Custom Post Type

I have a plugin that creates a custom post type. I am able to control the rewite rules and have also created a plugin settings for the archive url and taxonomy urls slugs. However if a user enter ...
0
votes
0answers
51 views

Why not working /%postname%/ with ajax serverinterval?

I use ajax server interval for load new entries, and if I use this method the function return 404 in 30 second. If I use default link strukture,work fine. The mod_rewrite is enabled on my server... ...
0
votes
0answers
64 views

Custom Post Type Slug prefix that includes the path of a post from another custom post type

Let's say I have the following post types: secondary episode I have a post named "Episodes" in post type "secondary" (to talk about and list recent episodes), its url would be: ...
0
votes
0answers
51 views

Multiple Permalinks per Media Library Image

I'm importing a CSV file for Woocommerce Products, a number of products link to the same (already uploaded) image file. They link fine, however in the Media Library I now have multiple versions of the ...
0
votes
0answers
45 views

WordPress Members Area Permalinks based on username

In a particular scenario I want a site with membership areas that give users their own member's "space". I want a permalink structure as such http://example.com/joebloggs and extend on that such as ...
0
votes
0answers
29 views

Custom Permalink Base

To enable all category, single and archive pages to render the url with a prefix of "news". E.g. www.yourdomain.com/news/category/post-name I set the permalink structure as ...
0
votes
0answers
31 views

Saving settings of the custom permalinks (using the API Settings)

I'm developing a Wordpress theme and I've created some options because I want to be able to change the permalink structure: to remove the /category base, to add the trailing slash "/" at the end, etc. ...
0
votes
0answers
31 views

Change archive link to single post

i do menu with this code but links redirect me too archive.php <ul id="nav"> <?php $all_posts = get_posts(array( 'posts_per_page' => -1 // to show all posts )); // ...
0
votes
0answers
73 views

Conflict in the urls of Taxonomy and Post Type

I have added a Custom Post Type "Review" with this code: // // Review post type related functions. // add_action( 'init', 'ci_create_cpt_review' ); if( !function_exists('ci_create_cpt_review') ): ...
0
votes
0answers
34 views

Link profile page to the logged in users profile

I am new to wordpress and having troubles setting up the user profile page. I created a page 'Profile' and in the permalink option I need to have it so that it is ...
0
votes
0answers
141 views

wp_unique_post_slug is not unique

I understand that the post post_type is not the same as page but when editing the permalink for a new post to be the same as the slug for an existing page, it's accepted. I now have a post and a page ...
0
votes
0answers
55 views

How to Replace the Post title with post_ID on the URL for Custom Post Type?

I created a custom post type and also registered taxonomy which is working just fine. Now on the URL it shows something like this: url/cpt/taxonomy/post-title But I want to change the ...
0
votes
0answers
8 views

use both type of permalink in my theme

How to use one type of permalink /%category%/%postname%/ for some posts and to use /sample-post/ for some other posts. If I had this link like: (website_name == codedesign) Do you want to learn ...
0
votes
0answers
47 views

post not open on blog page

Posts do not show on blog pages. When I click the post title on blog page it returns the notification of "not found 404" . I used the post permalink. This doesn't work: When I used default ...
0
votes
0answers
80 views

A link to a page including an anchor doesn't go to that anchor - URL gets changed

My WordPress site is set up with "Post name" permalinks. Now I created an anchor in every page at a certain place: But I find that when I try to link to that page, and its anchor, like this: ...
0
votes
0answers
29 views

Wordpress permalink need taxonomy after postname

I got a problem with wordpress permalink. The site below is using directorypress theme, I need to to show the post url in this format post-name/state/city where country->state->city are in parent ...
0
votes
0answers
27 views

Post permalink not correct

The permalink for my blog post is http://domain.com/blog_post_name. However, I want it to be http://domain.com/blog/blog_post_name instead because I want all of my posts to be found under ...
0
votes
0answers
87 views

Permalinks don't work, Wordpress adds hashtag and postnumber

After moving a Wordpress website from one server to another, the custom permalinks don't work anymore. For example, a (perma)link that used to be /about/ is now /#/4/about, so a hashtag, post number ...
0
votes
0answers
19 views

Using the taxonomy, instead of the CPT slug in the permalink

I currently have a custom post type called 'businesses', and a custom taxonomy for this CPT called 'businesstype'. In 'businesstype', I have several different kinds of business added (store, zoo, ...
0
votes
0answers
63 views

customize urls displayed by previous_post_link and next_post_link

I am using the below code to display my next and previous links in single.php: <div class="nav-previous"><?php previous_post_link( '%link', '<img height="34" src="' . ...