Tagged Questions

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
0answers
75 views

Permalink structure with custom taxonomies and custom post type like /parent-tax/child-tax/custom-post-type-name (with no base name)

I have a custom post type named "tours" and a custom taxonomy named "tour_type". "tour-type" taxonomy is hierarchical. In "tour-type" taxonomy, parent terms are limited to "eco-tours", "daily-tours", ...
0
votes
0answers
23 views

How to add the scheduled posts in existing content link in hyperlink

I am blogging with scheduled publication. Say, I have content "1" (complete and saved already) scheduled to be published tomorrow Now I have another content "2" (complete and saved already) ...
0
votes
0answers
27 views

Add custom dynamic string to permalink structure wordpress

I am adding dynamic string to permalink but the problem is all the pages which runs from page.php goes to 404 whereas the detail page of the post is working fine. Code: add_filter('post_link', ...
1
vote
1answer
39 views

Allow Permalinks to Work with and without Hyphens

Is there a way that I can change my .htaccess file to allow the user to go to a permalink with or without the hyphen? For example: I have a page: http://example.com/parent/two-words To get to that ...
0
votes
0answers
45 views

Permalinks not working for post IDs as slug

I inherited a site that has a lot of posts without a title, thus the permalink defaults to the post ID, with pretty permalinks turned on. IE - http://mysite.com/1200 When the permalinks are reset to ...
0
votes
0answers
71 views

Exclude javascript in certain page url and all following url's after forward slash

I'm trying to exclude javascript from a couple of pages. But I want to target all the pages after the forward slash. So I want to to target: www.website.com/page-name/.. So the page-name itself, ...
3
votes
1answer
294 views

Slug Formatting : Acceptable Characters?

I have done a lot of googling on this so I sincerely apologize if there is a codex entry for this but for the life of me I can not find a hard and fast rule about what characters are acceptable in a ...
0
votes
1answer
49 views

Setting a homepage - doesn't seem to work

have a page (home) that runs a template page-home.php that I can access at mydomin.com/home. I am wanting to have this as my static homepage page, so accessible at mydomain.com/ however I cannot seem ...
0
votes
1answer
67 views

Multiple taxonomies, what should the permalink look like?

I need to implement a list of a custom post_type that has to be able to filter them by two taxonomies, I found this answer that helps out with the wp_query syntax My question is, now, how should the ...
1
vote
0answers
55 views

Use category base slug in posts' permalink

The Goal I would like to format my permalinks as follows: for posts: somePrefix/%category%/%postname% for categories: somePrefix/%category% Where somePrefix is the same in both cases. I know ...
0
votes
1answer
55 views

Custom permalink structure for custom post type results in 404

I found some code online for creating a custom permalink for a custom post type: add_filter('post_type_link', 'wpse33551_post_type_link', 1, 3); function wpse33551_post_type_link( $link, $post = ...
1
vote
2answers
365 views

How can I make my .htaccess file writeable by wp-admin?

My ISP changed the hosting for my Wordpress blog and everything stopped working. There was a DNS issue but they resolved that, but then every page apart from the home page returned a 404 error. When ...
0
votes
0answers
58 views

How to programatically create a simple HTML page using the permalink of a Wordpress post?

I want a create a simple HTML page (not Wordpress Page) programmatically by using the permalink structure of another already existing post. E.g. Already existing post is ...
0
votes
1answer
71 views

Although rewrite engine is on, I get 404 not found on every page

My wordpress blog has encountered this issue about a week ago. Before that nothing was wrong with it. I got suspicious on web host provider, but they said many times that rewrite engine is on and it ...
0
votes
1answer
13 views

Wordpress rewrite url help needed

I am using wordpress and very new in wordpress. I need url rewrite method, i guess it doesnot changes in permalinks. I need to work on .htacess file. I am adding locations where i have to add LokId, ...
0
votes
1answer
13 views

Permalink of some posts change

Having strange problem, When I change permalinks to post name some of the posts permalink changes some just show www.example.com. Below is my htaccess <IfModule mod_rewrite.c> RewriteEngine On ...
0
votes
1answer
22 views

Can I access Posts of custom-fields via URL?

Is there a way to access all posts where the value of a given custom field is concurrent? like you can access all posts of a category like this: http://yoursite/category/<category-name> so I ...
0
votes
1answer
20 views

how to change permalinks from id to name of a particular location

I am working on WordPress permalinks. I wanted to change the permalink URL from xyz.com/abc/locations/18 (which is location id) to xyz.com/abc/locations/locationname With locationid the page is ...
1
vote
1answer
25 views

How to change permalink on post click on post listing page

I have a posts listing page, my requirement is that I want to change the url on the click of the post and expand the post to full detail. I am not sure if this can be done without refresh. Any ideas ...
1
vote
1answer
202 views

Add sku to product url woocommerce [closed]

I want to make url's with the following structure: www.mywebsite.com/wordpress/product/postname-sku for example: wordpress/product/apple-ap01 Is this possible? And also tell if this done with ...
0
votes
0answers
43 views

Any way for get_next_post() to use the actual post order instead of publish order?

I'm currently using get_next_post() and get_previous_post() to get their ID so that I can permalink my next/previous buttons for a custom post type. I'm also using a wordpress plugin called "Anything ...
0
votes
0answers
29 views

URL-parameters and RewriteRule gives 404

In Wordpress I have a template (lets call it template.php) that has content on the following page: example.com/template This page should be able to handle URL-parameters like. I got this to work. ...
1
vote
2answers
244 views

Permalinks not working with Vagrant

I am using Vagrant to build up a little Wordpress development VM. When I select permalinks (postname) then the page from an article doesn't load. However, when I select the standard link (i.e page id) ...
0
votes
1answer
68 views

Pretty Permalink for Search Queries Not Working

As the title suggests I am trying to create pretty permalinks for search queries, but unfortunately I cant get them to work. I am trying to achieve the folllowing: ...
0
votes
1answer
150 views

permalink /category/post-name with custom post type and taxonomy

I want to use custom post types with a custom taxonomy for different types of posts on my page. I have registered a custom post type called "portfolio" and a taxonomy for this post type. function ...
0
votes
1answer
61 views

How to get list of posts from permalinks?

I am using an API which tracks metrics on parts of my site. The only useful bit it saves though is the URL (permalink). What is the most efficient way to query up all the posts that match those ...
0
votes
1answer
88 views

Changed sub-site to its own domain trigger 302 redirects for all page links

Below, I'm calling the development site mainsite.com (containing the WPMS install) and the domain that will point to a Norwegian sub-site of mainsite.com, I call launchsite.no. A Norwegian sub-site ...
0
votes
0answers
53 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

Webdav with permalink in Wordpress v3.3.1

I've deployed wordpress and I'm using it with postgreSQL, I've configured permalinks successfully, but my webdav folder stoped to work. When I try to access my webdav folder it prompt to use my login ...
0
votes
1answer
28 views

Wordpress Permalinks 404 bug with “next” button

I have changed wordpress to use permalinks for post names. /%postname%/ so that they are in the form wordpress.com/sample-post. The permalinks work great but it messes up the "next" and "previous" ...
0
votes
0answers
50 views

Custom Query String Permalink

I tried to add this at my functions.php add_rewrite_rule('^(biography)/([^/]*)/?', 'index.php?pagename=$matches[0]&actor=$matches[1]','top'); add_filter('query_vars', 'foo_my_query_vars'); ...
0
votes
0answers
32 views

How to add .html to the end of the permalink

How do I add .html to the end of the permalink? I tried changing the permalink structure to /%postname%.html but this did not work.
0
votes
1answer
33 views

Best way to specify “article type” in URL

I'm helping a small blog out that posts a few different "types" of articles. These article types are shared across categories. We want to put the article type in the URL. So the structure would look ...
0
votes
0answers
126 views

On IIS 8.0 wp-admin returns 404, wordpress/wp-admin does not

Settings: we have a WordPress website running on IIS 8.0 in a shared hosting environment. Permalinks are set on Post name. Web.config has been edited on purpose (please find that below). Site root ...
0
votes
1answer
42 views

CPT, meta-data, url parameter

does someone could point me a lecture that could explain me how to create some "filter" passed by pretty link ? Let me explain my self, I have a custom post type called "spectacle" and I have a ...
0
votes
1answer
21 views

Blog posts are not appearing as subs of Blog Page

I'm trying to set up a new blog on my company website and blog posts are not showing up as subpages to the blog page. I would like for the url to all blog posts to read: ...
0
votes
0answers
33 views

Is it possible to change %post_id% in permalink by a constant?

I had an assignment of moving Joomla 1.0 content, categories and other stuff to the latest WordPress. Everything went fine, a few PHP scripts, a bit of fiddling with MySQL. But then, unexpected ...
0
votes
1answer
64 views

What is the beste practice to check for pretty permalinks?

I develop a plugin and therefore I add new RSS feeds. One feed might look like http://local.wordpress.dev/?post_type=custom-post-type&custom-taxonomy=tax-1&feed=custom-feed This works pretty ...
2
votes
1answer
163 views

Apostrophe in permalink results in page not found

I'm working through a migration from Drupal to a WP multisite network, I've got a post meta field that contains the URL of the old post (mostly to maintain social counts and such) that I'm using for ...
0
votes
1answer
80 views

category link not working for a specific slug, works for others

I have setup several categories and set the permalinks to /%category%/%postname%.html with a category base of . to remove "category" from the url. All categories are working except for one with the ...
0
votes
1answer
479 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 ...
0
votes
1answer
190 views

Call to a member function add_rule() on a non-object

I want the page mysite.com/product to be accessed with the URL mysite.com/product/productname instead of mysite.com/product?name=productname I am trying to achieve this with the code in the ...
0
votes
0answers
134 views

Redirect permalinks after creating custom post types

I'm in the process of reorganizing a website with many posts (~30.000) a part of which have to be migrated to a new custom post type. Since the custom posts have an added slug to the permalink, is ...
1
vote
0answers
61 views

Strange number at the end of wordpress permalinks

I've just noticed in my google webmaster tools that there are 404 errors and they are pointing from my permalinks which have this number in the end : 9223372036854775807. For example this url : ...
1
vote
1answer
84 views

Custom Post Type and Custom Taxonomy Permalinks

I'm currently working with a client's Wordpress blog that has a permalink structure set in the admin settings as "/speaks/%postname%/". This is so that all actual blog posts (post_type=>posts) have ...
0
votes
2answers
65 views

Multiple URL from Custom post name

I would like to do something special for a website in Wordpress. I have a "custom post type" whose data are all "post custom fields" except the name of the post. I need to create multiple urls for ...
0
votes
1answer
22 views

How to customize custom taxonomy url?

I have a Custom Post type "Data" with a custom Taxonomy "data-category". Currently my site url when I visit a 'data-category' shows like this : www.mysite.com/data-category/home-loan Here Home-Loan ...
0
votes
1answer
29 views

Change category base based on category

How can I change the permalink based on the category? I would like to change the category base based on its category. I want the output to be like this: /news/category1 /articles/category2 ...
1
vote
3answers
210 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
2answers
67 views

What happens when permalink settings are updated?

I have to identical copies of the same site on two different webhosting companies (besides the actual domain of course). One of them works all the time with pretty permalinks and the other works fine ...