Refers to the process whereby an URL is manipulated to create what in WordPress is called a "pretty permalink"

learn more… | top users | synonyms (1)

0
votes
0answers
128 views

Error filtering attributes in woocommerce

I have two custom attributes in woocommerce, Brand and Colour If I access the url for a custom attribute like for example: www.myshop.com/branad/nike and then try to apply a layered navigation ...
0
votes
1answer
144 views

Permalink issues with custom taxonomies

I have a (hopefully simple) question here. Built in post type: Category I have a custom post type: Rights, with a custom Category taxonomy for it (Rights Category). My issue is using the rewrite ...
1
vote
0answers
123 views

Pretty URLs and custom post types

I've read the posts on WP SA on rewrites and custom post types, but I can't figure out why my search for 2 different post types isn't working. I'd like my URLS to become ...
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
1answer
89 views

How to solve this without flushing the rewrite rules for each post query the visitor triggers?

Actually I have the problem that I provide a menu link (predefined in theme) to the latest post of a specific custom post type. I achieve this by the following function … function ...
1
vote
0answers
38 views

How to show in search results posts with a particular tag in a particular category?

As the home page of my blog I've a static page. There I want to show the navigation of the site. Category1 Sub-Category1 tag1, tag2, tag3 Category1 Sub-Category2 tag1, tag2, tag3 ...
0
votes
1answer
44 views

WPNetwork with custom URL Rewrite rules

I have a theme that has some custom rewrite rules built in to it. The problem is that they are not working with WP multisite. On the install I use to build themes (which is outside of the network), ...
0
votes
0answers
21 views

Stuck with custom URL REWRITE

Hello I'm creating a custom url rewrite structure for my WordPress site. First I had the following code to have url: /objekt/<GID> which loads objekt page and have query var GID. add_action( ...
0
votes
1answer
167 views

How to use if($wp_query->query_vars['name'] == 'pagethatdontexist') without getting a 404? How to suppress 404

i want to do something if my url is /pagethatdontexist But I dont want wp sending 404 headers. I tried this: add_action('wp', array($this,'awp')); function awp(){ global $wp_query ; ...
1
vote
1answer
194 views

Why doesn't flush_rewrite_rules run on plugin activation?

I'm trying to flush rewrite rules in a plugin and it isn't working. I have to go to permalinks -> save in the admin panel for the rewrites to flush. Can anyone see why? class SpektrixPlugin { public ...
0
votes
1answer
82 views

How can I emulate permalink behaviour on static pages

I am working on a Wordpress site which is displaying results from an Events API on a given page. the page is at /whats-on. I want to provide links on the page which are formatted like ...
0
votes
1answer
79 views

Visiting posts results in 404 errors after host migration

I have migrated my WordPress blog from one host to another by way of transferring the files and exporting/importing my database, updating URL references where needed. On my new host, I can ...
-1
votes
2answers
168 views

Custom url rewriting

I am struggling to create custom rewrite rules for wordpress. This is my url structure http://domain/cityprofile/?city=Sydney where city profile is a page template. Now i want to make this url ...
0
votes
1answer
607 views

Image Attachment Url Rewrite

I'm having an issue with url rewriting for a theme I'm making, which is basically a gallery theme based on the roots theme. Here's how the site navigation works: Home Page (With Tiled Image Gallery) ...
2
votes
2answers
651 views

Custom query variable - get wordpress to redirect to nice permalink url

I have been looking for an answer for the last couple of hours but could not find anything pointing me in the right direction. Some advice would be very much appreciated! What I already have: A ...
0
votes
1answer
43 views

Rewrite rules goes away

I have a strange issue. The custom rewrite rules are registered correctly in my plugin activation hook. But, if I go to the permalinks settings page and clic on "Save changes" I lost the rewrite rules ...
8
votes
3answers
4k views

Masking wp-content/themes/name/images to just images directory using htaccess

I'm trying what I thought would be something really simple of masking my url but cannot seem to get it to work. I want to be able to link to images in my img tag without having to type in the full ...
0
votes
1answer
50 views

WordPress index page is returning 404 and admin page requires /index.php in url

My WordPress installation is in a different folder from my main site: /var/www/html/wordpress <= WP installation /var/www/html/main-site <= main site I would like to have WP display when ...
1
vote
2answers
130 views

Is slug “type” reserved and can't be used in taxonomy rewrite?

I desperately need your help guys. I am trying to register custom post type and taxonomy the following way: add_action( 'init', 'product_catalog' ); add_action( 'init', 'product_type', 0 ); function ...
4
votes
3answers
491 views

How to add a custom URL placeholder to author archives?

I am working with a client who has a directory site that allows users to create accounts, then lists of items from the directory. Right now, whenever a user creates an account, she gets a profile URL ...
0
votes
0answers
85 views

Using www and without www url both for same site

Site URL is lgagro.com.sg; currently, if browsed without www., it redirects to www.lgagor.com.sg. I want to access it with and without www i.e. when I browse it by http://lgagro.com.sg it should work ...
0
votes
0answers
16 views

Rewrite author_name to color [duplicate]

I'd like to rewrite author_name to color. So example.com/?author_name=blue would be example.com/?color=blue I searched for hours but can't find anything useful. Any ideas?
0
votes
1answer
66 views

Custom permalink variable on single post

I'm trying rewrite url for permalink on single post my permalink: /%postname%/ My single form: http://example.com/abc-def/?chapter=1 adc-def mean: %postname% i want permalink is: ...
0
votes
0answers
64 views

Filter search result by author and include to meta tags

I need to filter the search results by author. This works fine: domain.com/?s=something&author=5 But how can i filter the posts by author "nickname" or "user_nicename" and maybe rewrite ...
0
votes
2answers
247 views

WordPress Rewrite rule is not working

I am trying to create a rewrite rule for one of my custom page and here is the rewrite rule function add_my_rule() { global $wp; $wp->add_query_var('name_state'); ...
0
votes
0answers
25 views

Custom Post Type Permalink Below Root Directory

I have wordpress installed in the /blog/ directory on my web server, so the WordPress homepage is at, for example http://www.example.com/blog/ I am creating some custom post types for content ...
0
votes
2answers
78 views

Why does my URL keep returning 404 error code?

I have a custom type on my wordpress site called 'movie'. If the user type this URL : http://mysite.com/1994, I would like to display all movies published in 1994. Unfortunately, I get a consistent ...
0
votes
2answers
251 views

How to Change Author Posts URL

How can I display an authors archive by author id instead author slug like http://example.com/author/author_slug/ to http://example.com/author/123/
0
votes
0answers
74 views

How to create single static page extending another URL

I have existing URL game/ninja-cat-and-zombie-dinosaurs/ which is created by rewrite: game/([^/]+)(/[0-9]+)?/?$ It leads to a custom post type (defined by theme Swatch). Now I'd like to have a URL ...
3
votes
1answer
129 views

Query Vars for the Homepage?

I'd like to make the homepage accept query vars for year, month and date while still keeping the custom permalink structure for the rest of the site. Basically the homepage needs to display several ...
0
votes
0answers
32 views

Custom Multiple Endpoints

Any pointers on the right way to handle multiple endpoints for a Wordpress Page? For example lets say my current page is example.com/gallery When I want the same page to render differently when ...
0
votes
0answers
37 views

Double permalinks for custom type post

I have custom type post named 'team' as follows: add_action( 'init', 'my_team_members' ); function my_team_members() { register_post_type( 'team', array( 'labels' => array( 'name' => ...
0
votes
0answers
49 views

Use custom clean URLs for a plug in

I've created a plug in that displays a list of items from the database. I need to link from an item to the item description page, however instead of the link looking like: ...
0
votes
0answers
77 views

URL rewrite rule not working for wpmudev Q&A plugin

I have installed the wpmudev Q&A plugin on my localhost wordpress test site. The problem I have now is that the the url localhost/questions/ask/ redirects to localhost/ and does not display the ...
0
votes
1answer
55 views

Change Wordpress comments url / word

Is this possible? For example, I want to change http://mysitesitesite.com/post-name/comment-page-1/#comment-452 to http://mysitesitesite.com/post-name/custonname-1/#customname-452 What should I ...
2
votes
1answer
190 views

How to change ?lang=cn into /cn/

I'm trying to add languages to my wordpress driven website and i installed xili-languages plugin. Unfortunately it uses lang param to differentiate between languages and i rather have seen something ...
0
votes
0answers
40 views

Url rewriting work only on the index

First, I register a variable named "bouquet" using this function & this filter: add_filter( 'query_vars', 'bouquet_query_vars' ); function bouquet_query_vars( $query_vars ) { $query_vars[] = ...
0
votes
1answer
175 views

Dynamically generated URL and Content page

I am in need of some advice. I have a section on my home page dynamically pulling in a list of terms from a custom table in the WP db. I have made a unique custom URL for each of these terms based on ...
2
votes
2answers
80 views

When is it a good idea to build a permalink structure from scratch?

Is it a good idea to design a permalink structure from scratch? The requirements to the structure are as follows: Pages to be referenced by their structure ...
-2
votes
1answer
83 views

Pagination on custom post type not working

I'm having a hard time getting pagination to work with my custom post type query. The standard "previous_posts_link()" and "next_posts_link();" aren't working. And through a bit of testing, I've ...
0
votes
0answers
26 views

Help with rewrite rule

I have a probleme with a rewrite rule. On my page, I have a link to : mySite/pubmed/article/23919219 I would like to convert it to http://example.com/index.php?page_id=165&article_id=23919219 ...
0
votes
0answers
93 views

Select good template with rewriting rules

After creating the sub page "China" of the parent page "Destinations", I add to it the "Destinations countries" template. Without any redirection, I can display the correct template at this url : ...
0
votes
1answer
56 views

Why is a rewrite rule in wordpress prevent pagination?

I have a custom page that uses a rewrite rule. The "non-pagination" rewrite works fine: add_rewrite_rule( '^brand-list/([^/]*)/([^/]*)/?', ...
0
votes
0answers
38 views

Custom site-wide url redirect

What would be the best way to go about this situation: I have a site that I want to allow other people to link to, but then keep their links maintained across the entire site. So say, if I was a ...
1
vote
1answer
230 views

Rewrite post type slug only for child theme

I'm in multisite where some blogs share the same parent theme for maintenance reasons. All my cpts come from that parent theme, but I would really like that, for one of the blogs, it had an URL mask. ...
1
vote
1answer
98 views

Random Alphanumeric Key URLs

I need random (and unique) alphanumeric permalinks. I've looked at several plugins but they all seem to do some form of redirection to a longer URL. That's not what I want, I want the permalink to be ...
0
votes
0answers
43 views

How Can I rewrite *.neo to /$1/ with NGINX

This is my htaccess I have my old URL like http://www.xxx.com/article-name.neo, and I want to redirect it to http://www.xxx.com/article-name/ Any help? RewriteEngine On RewriteRule ([^/]+)\.neo$ ...
1
vote
1answer
402 views

Add .html extension to custom post type taxonomies

I want to have the .html extension in the custom post type taxonomy urls. My custom post type taxonomy it is called "product_cat". I will need something like: ...
0
votes
1answer
157 views

A change in URL slug in database returns 404, how can I do auto-redirect?

I have a huge blog with over 10K posts and a lot of posts with some adult keywords in titles, urls, content and tags. I am trying to remove all adult ones with "search and replace" plugin. It works ...
4
votes
1answer
173 views

Permalinks so that one custom post type appears to be a child of another, not working

Currently I have two post types, "products" and "products-data" they are separate post types; however, for all intents and purposes products-data is a child post of products. The relation is ...