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)

1
vote
0answers
17 views

Custom Permalink Structure Redirects Pages to Homepage

I'm trying to add a custom field to my post types permalink structure - for the test purposes I've simplified the code. The custom permalinks work but the issue is that Top Level Pages redirect to the ...
0
votes
0answers
19 views

Rewrite rule with a custom post type and a custom field

I'm creating a website that will display, from a search by location, a list of singer. If we click on a singer I will have to display that singer with the city inside the url. Here are the two ...
0
votes
1answer
24 views

Page Permalinks: Custom URLs

I'm trying to make URLs that have different "routes", per say. I don't know how to explain it, but on the site I had to move, the owners want it to have different suburl URL directories. Problem is, I ...
0
votes
0answers
9 views

Rewrite rule to match any child page

I have this code to add a custom rewrite rule, based on this post. When I use the snippet as-is from the other post, it works and loads page.php. But, when I try to have my regex match letters instead ...
0
votes
1answer
12 views

Change url to posts if they have custom tax only

I have custom taxonomy "category_slider". function taxonomy_slider() { $labels = array( 'name' => 'Категории проекта', 'singular_name' => 'Категории', 'search_items'...
-2
votes
0answers
26 views

Remove custom taxonomy base slug or not, what is the industry standard?

I have been working on a Wordpress theme for over 6 months now. My plan is to release it as a free theme and then possibly add more features and sell it as a premium theme. I am very experienced with ...
0
votes
0answers
28 views

Rewrite URL custom post type with add_rewrite_tag

i'm registering a custom post type with the current code: 'query_var' => 'lookbook', 'menu_position' => 0, 'menu_icon' => 'dashicons-admin-tools', 'rewrite' => false, 'has_archive' => ...
0
votes
0answers
9 views

Custom Post Type (CPT) not honoring custom permalink structure

I've got a custom permalink structure of: /post/%post_id%/%postname%/ When I create a custom post type I'd expect the permalink to be: /post/cpt/%post_id%/$post_name%/ But instead it's: /post/cpt/...
1
vote
0answers
28 views

category slug and page slug same

I have "movies" category name/slug and i have same page slug/name "movies". My category page: sitename.com/movies/page/2,3,4 bla bla My page url: sitename.com/movies/query If i enter first page on ...
2
votes
1answer
87 views

How to add dot(“.”) in post slug

How to add dot(.) in post slugs? In our blog, we are writing about websites and would like to use their exact address as slug like this: ourdomain.com/example1.com But dots are either removed when ...
0
votes
3answers
55 views

How to Rewrite the URL

Here I mentioned the url http://localhost/wp/2016/?category_name=cricket now i need to rearrange the url like http://localhost/wp/cricket/2016. here cricket is category name and 2016 is year. ...
0
votes
0answers
30 views

How to remove attribute pagination_base from wordpress url?

I have a new Wordpress and function: function category_permastruct(){ global $wp_rewrite; $wp_rewrite->pagination_base = 'x'; $wp_rewrite->extra_permastructs['category']['struct'] ...
-4
votes
4answers
38 views

How do I change my Wordpress website's address or URL?

A non-profit organisation (NPO) has a Wordpress website. The URL (example.com) carries the name of the NPO. The name of the NPO has changed so now we need to change the URL to reflect the new name. ...
0
votes
0answers
19 views

Change URL for logged in users

I'm wondering if there is any way to give logged in users a custom URL of sorts. So say when you're not logged in, you get xyz.abc/home, but when you are logged in you get xyz.abc/home?l or xyz.abc/...
0
votes
0answers
27 views

custom post type URL change

At the moment, the urls for my movies post type look like .com/movies/ryi2NKR5ZY4DCNWG0XPj/ I got the 20 character hash in there by making the post name the hash like this: function ...
0
votes
0answers
12 views

How to require match for all arguments passed in URL?

I'm developing a site for a small car dealership with a proposed URL schema of domain.com/vehicles/<manufacturer>/<vin>. The Problem I can't get Wordpress to correctly handle when URL ...
0
votes
0answers
13 views

custom post type cate/child not working

hey i have this custom post type with taxonamy job_listing_region register_post_type( 'job_listing', array( 'hierarchical' => true, 'public' => true, 'rewrite' => array( ...
0
votes
1answer
18 views

Add a custom word to the base of a multisite url

Is there a way to add a unique and custom word per site in my multsite network? I want my url to be like this: http://example.com/multisite-name/custom-word/pagename I know I can add a word in my ...
0
votes
1answer
29 views

How to rewrite a folder in WordPress?

I'm using "The7" theme and don't want to use the standard Portfolio archive template. I have used the default template to create a page that looks great, let's call it /our-portfolio/. Currently the ...
0
votes
0answers
23 views

Unable to stop WordPress auto correcting URLs

WordPress is correcting URLs that go to static files on the server to WordPress pages with a similar name. Like this example... example.com/2009/spring (Static page) example.com/spring (Gets auto ...
0
votes
0answers
20 views

Rewrite acting as intended - but not changing url

I am trying to make this rewrite work, and it isn't working as intended. In the code below, player is a custom user_type. When I click on that player, I want to follow a link to his userpage (...
0
votes
1answer
35 views

Custom rewrite permalink doesn't work

function create_posttype() { register_post_type( 'events', array( 'labels' => array( 'name' => __( 'Events' ), 'singular_name' => __( '...
0
votes
1answer
27 views

Rewriting a page with a custom parameter

I have an issue similar to this one: Rewrite Rule for Custom Page with Query Vars in URL We have those two rules we're trying to add through the Rewrite plugin. We tested it and the GET parameters ...
0
votes
1answer
7 views

Show index and not the archive for “Dog Custom Post” with default slug

When creating a Custom Post, in my case with the name dogs and slug dogs, at the url www.example.com/dogs Wordpress shows by default the archive page if has_archive is set to true I don't want to ...
0
votes
0answers
9 views

Rewrite Rule for Multistep Estimate Form

I want to be able to create a few rewrite rules and utilize some templates that I've created, but I don't want to be limited by having to create the pages within the WordPress admin ... essentially, I ...
0
votes
1answer
9 views

URL duplicating after migrating domain

I just set my CNAME to set my subdomain name and now, my WP site that was working has a weird thing, a lot of URL are broken... All menu links are OK, but all ressources url are not ok. The new bad ...
0
votes
0answers
19 views

Single page with subpages

I'm wondering what would be the best approach to create pages that are 'linked' to a single page. For instance, I have a post type called 'books'. On the front end I would like to have pages like (...
5
votes
1answer
74 views

Custom rewrite rules for archive page and single post

I'm building a Wordpress site with several custom post types. Every post type is a different magazine. I have also a custom meta fields for a magazine year and issue. I would like to have urls (used ...
0
votes
0answers
29 views

URL Rewriting on CPT

My website has Custom Post Type and I want to have beautiful URLs but i don't know how to do. Ex: https://www.mywebsite.com/boutique/?countryname=allemagne#!/countries=252 TO BE https://www....
0
votes
0answers
23 views

Help to fix custom post rewrite + taxonomy. Simple pages show 404

I'm getting 404 for each page. I want to have structure and pages like: url/page-sample url/taxonomy url/taxonomy/custom-post Example of structure (just trying to explain): url/about-us-page url/...
0
votes
0answers
60 views

multiple url slug for single custom post type

I have created a custom post type for events. Now within events post type I have created 2 categories. One is 'event' and another one is 'workshop'. The 'event' category post url looks like http://...
0
votes
0answers
30 views

How can I add rewrite rule for custom page?

I'm showing child categories data in custom page using wordpress. Problem is that i'm fetching those child categories from parent category slug. www.example.com/digital-post-page/?cp=category-slug ...
1
vote
1answer
30 views

Adding two rewrite rules

I have a custom post type with a custom taxonomy. The custom post type is news. The custom taxonomy is new_category. What I want is the possibility two operate link that: http://example.com/news/ -...
0
votes
0answers
23 views

Custom Permalink Structure for Custom Post Type, Custom Taxonomy, Under a page

Need some help with some custom rewrite rules. I found this post How to create a permalink structure with custom taxonomies and custom post types like base-name/parent-tax/child-tax/custom-post-type-...
6
votes
1answer
135 views

Meta_Query as a way how to setup CPT permalinks - is it a good thing?

I'm creating quite complex website for a literary magazine. For its custom post types Issue and Event, I wanted different permalink structure than for posts (which is basic http://example.com/%...
0
votes
0answers
13 views

add_rewrite_rule redirection okay, but not detecting add_rewrite_tag as query_var

I'm having an odd issue with add_rewrite_rule and add_rewrite_tag I basically am creating a page so that if you go to:- http://domain.com/enquire-now/test/ It will go the equivalent of:- http://...
1
vote
1answer
60 views

add_rewrite_rule is not taking effect in Wordpress? .htaccess file doesn't update

I have tried all day to get my own rewrite to work in wordpress, but I simply can't get anything to work. I've tried so many different ways but thing is nothing updates in the .htaccess file so I am ...
1
vote
1answer
51 views

Does flush_rewrite_rules() remove all rules added by other plugins as well as mine?

I am developing a plugin, and am using add_rewrite_rule followed by flush_rewrite_rules during plugin activation. On plugin deactivation I am using just flush_rewrite_rules to remove the rule that I ...
3
votes
1answer
64 views

Add rewrite rule to permalink structure

I have a Custom Structure setup for posts in Settings > Permalinks as: /%category%/%post_id%-%postname% This works great for most of my posts, but there is one category that I want to remove the ...
0
votes
0answers
37 views

WordPress thinks my custom route is a 404

I created a plugin that sets up a custom route and then loads a template file for that url. Everything works fine, except that WordPress seems to think it's a 404 even though it's correctly rendering ...
1
vote
2answers
54 views

Custom Post Type Post have a Child `Page` Post Type Post

Oddly enough I can't seem to find anyone asking this question exactly in this fashion. Is it at possible to make a page be a child of a CPT? In a repeatable fashion (see below for more info) n.b. I ...
1
vote
1answer
20 views

remove sub-category of Custom Post Type from permalink structure

I've got my permalinks for a Custom Post Type set to /%custom_taxonomy%/%postname%/ using the Custom Post Type Permalink Plugin to set the custom rules for this CPT. What this gives me is site.com/...
1
vote
1answer
27 views

How to rewrite url wordpress?

i am doing WordPress posts filter. As a result of the application forms obtained this url: http://local/rieltplus/category/catalog/?type=flat&price_min=1000&price_max=2000&area_min=5&...
2
votes
1answer
25 views

single-{post_type}.php is not loaded despite flushing rules

I have the following code to define my producto custom type post: add_action('init', 'custom_post_producto'); function custom_post_producto() { $args = array( "label" => '...
4
votes
1answer
60 views

How to prevent redirection to max 2147483647 for larger values of the page query variable?

I've got an id which is 10101000003163 I set it to my href as "technical/10101000003163/" but WordPress redirects me to "technical/2147483647/" How can I stop WordPress from doing that? My rewrite ...
0
votes
3answers
50 views

Change default url to plugin custom post type

I have a custom post type in my plugin "Luckydraw" as 'voucher'. By clicking on post link, wordpress generates its URL as : http://localhost:81/luckydraw/index.php/voucher/testing-2/ But I want ...
0
votes
0answers
15 views

I Need Delete Old Rewrite Rules

First, I created a custom category, named: (reviews) I created a classification under this category, the name is: (posts), and (pages) Now, its URL address is: ([abc.com/reviews/posts/page/1] ...
0
votes
1answer
31 views

How to remove Base URL Duplication?

I have an issue in the download link, the URL getting duplicate. Like this http://localhost/test/files/http://localhost/test/files/2016/05/testonly.docx same as the live website: http://www....
0
votes
0answers
47 views

Rewrite URL/Slug for a Page using a particular page template using Advanced Custom Fields Post Object

Edited 5/20 -- Rewrote to specify my question: I have a Custom Post Type represented as mysite.com/projects/{project-name}/. I'm trying to set up a rewrite rule for Pages that use a particular page ...
0
votes
0answers
21 views

get_query_var(“page”) empty if page is 1

I have a paginated search that is set to clear its search parameters if get_query_var("page") is empty. This works fine for every page except 1. I have set my page links as http://www.domain.tld/page-...