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

Custom Post type and Custom taxonomy with URL rewrite worked but template did not

I search a lot but couldn't get, just got partial answer , I declared custom post type "store" with taxonomy "city", what I am trying is to make list of store based on city list and make URL like post ...
0
votes
2answers
34 views

How to get the real address from a url (permalink)

For some reason i need the actual address of current page in my plugin , but after searching i can not find any answer on how i can get the real address of current page. I tested many functions for ...
0
votes
0answers
10 views

Pass custom post meta to dynamic page

We do lead generation using the gravity forms plugin for our site forms. Right now we create the marketing page with the form on it, then we create a child thank you page that the user is redirected ...
0
votes
0answers
21 views

How to get list of taxonomy slugs ordered parents>childs?

Is there an existing function in WordPress to generate a list of taxonomy slugs ordered by parents > childs > subchilds in an array? I need to generate a URL structure for my custom post type in ...
0
votes
1answer
22 views

URI rewriting: handling one page

Here's what I'd like to do: make Wordpress think that my page called "toto" can be called from "/toto" but also from "/toto/{alphanum char}" I dont want to make a special rewrite rule, because I dont ...
2
votes
0answers
33 views

How to remove admin.php?page= from admin using .htaccess?

I've been looking for this everywhere, and can't find it - so I apologize if it is a duplicate question. I can't believe it hasn't been asked before... So please direct me if it has :) I'm looking ...
0
votes
0answers
12 views

Custom Post Type URL Problem

I've been using custom post type in my website, I have get this type of url by default http://shivsingh.com.np/pubcafe/?event=american-football I need to change it to ...
0
votes
0answers
16 views

Remove Page Slug from URL

I have a page www.website.com/merchant, this is a page post type. I placed a shortcode in this page to generate merchant information. So If the URL is www.website.com/merchant/store1, that page will ...
0
votes
1answer
11 views

One custom post type with two different url structure base on taxonomy term

i have one cpt Anime and it has post_type taxonomy with term anime and animation anime(cpt): (site domain)/anime/post title | |-(tax)Anime |-(tax)Animation And my url structure are ...
0
votes
0answers
14 views

Custom Post type url with category

i created a custom post type for my plugin. They can be categorized but the effect of that is kinda limited. Lets say we have the post type magazinesand the categories print and digital. I now create ...
0
votes
0answers
22 views

Change default URL of image attachment

I have only one image attachment per post, as featured image. Every post have just one image, featured image, and no any other image in post content. By default URL of image attachment is: ...
0
votes
0answers
13 views

Custom post type url removal for child posts

Hello so my issues is that i cannot figure out how to remove the post type name from the permalink of child post. Already went though most of the solutions on the web but not none helped. Basically ...
0
votes
0answers
23 views

Custom post type and shared custom taxonomy ..permalink structure

hope someone can help me since I'm fighting with this issue since weeks without a solution. Scenario: ~ 15 different post types (hotel, bed-and-breakfast, etc) -> reason to use the post_type ...
1
vote
0answers
26 views

Rewrite rule for Custom Post Type Page as a parent

I'm searching for answers, but unfortunately can't find and hope to find here. I'm using Pods for custom post types called "players" and normal Pages for "teams", which is hierarchical, for example: ...
0
votes
0answers
15 views

Rewrites: .htaccess or wp_rewrite for bulk 301 changes?

I'm migrating a site from an older CMS to WordPress. We'll be on the same domain but about 90-100 pages are going to have modified URLs - so, for them, I'm creating 301 Rewrite rules. My question is: ...
-1
votes
1answer
54 views

Create monthly archive for parent category

Part of the website I'm working on is meant to function like a monthly magazine, with a few different departments. So I have 'Magazine' set as the parent category, and say 'Art' and 'Music' as child ...
0
votes
0answers
14 views

Add dynamic url with external page in Wordpress

I'm working on WordPress website, where user can publish his profile using URL. I've number of user who haven't matter with WordPress database. Now website is like: http://www.abc.com/ Now I've ...
-1
votes
0answers
47 views

Unique ID for custom post type url

I am building a site where members can log in and create a custom post type (event) and I'd like to maintain my permalinks structure for my posts to %postname% I want to use the ID for the custom ...
0
votes
1answer
29 views

permastruct for custom post type not working in one of four cases

I've created custom permalinks for various custom post types on a website. They all worked. Until recently I added another one, which I cannot get to work 8-o. The "company" struct is not working and ...
0
votes
1answer
26 views

Plugin Development - Get Admin Url (Including cases where wp-admin is not used)

I'm currently writing a WordPress plugin, and am looking to retrieve the WordPress admin url. It sounds simple enough - and it is - assuming every WordPress install is using the default wp-admin slug; ...
0
votes
0answers
13 views

rewrite rule of post when accessed from archives pages

Im trying to rewrite the slug of the permalink of my post when accessed from my archives pages. at the moment it display like: www.mydomain.com/categorypost/post_title id like instead ...
0
votes
0answers
18 views

My permalinks are not working on new server

I am going nuts trying to figure out the rewrite rule for a site that I am moving. I have an old server danceprarade.org/wp and I want to move it to a new server new.danceparade.org/ (no wp). I have ...
0
votes
1answer
24 views

Adding a query string to only one page url

I would like to add the following to a single page within my wordpress site and NOT all of them. Current page url/permalink mysite.com/pagename/ Would like to ...
0
votes
2answers
41 views

Why does rewrite rule work for page not for custom post type post?

Update: I read that a custom rewrite rule might be overridden and drop any parameter variables, when the custom rewrite rule is used on a child/parent page/post. The post my custom rewrite rule is ...
0
votes
0answers
7 views

Remove final slash from url

I created rewrite this rule: public function manage_user_routes() { add_rewrite_rule( '^user/([^/]+)?', 'index.php?control_action=$matches[1]', 'top' ); } but when I try to access ...
0
votes
0answers
35 views

add_rewrite_rule set up correctly, why does new URL show 404?

My aim is to have the following URL structure: /text-string/text-string/directory/text-string/text-string/1234/ point to page 447 with parts of the URL passed as get variables. (I am not worrying ...
0
votes
0answers
24 views

Adding nav_menu_item id to Wordpesss links and wp_query vars

having a bit of an issue with this. What I want to achieve is this, the user clicks on a menu item and the menu item's id is available in the $wp_query vars. I also want to achieve the same with any ...
0
votes
0answers
28 views

How do I create a redirect/rewrite rule, based on the current URL? [closed]

I am using WPML to create a WordPress site in English and Spanish I am using the CodePeople Post Map plugin for listing offices on a styled Google Map My problem: when I am browsing the site in ...
0
votes
0answers
93 views

Custom Post Type URL

I have big problems get the result with my custom post type and taxonomy I have made. I have read a lot in the questions and tried also many, but don't know where to find the solution or where to ...
1
vote
3answers
158 views

Rewrite Question Mark in Post Template with URL Parameter for clean URLs

I use following code (Source) to change the single post template via url parameter: function sjc_add_query_vars($vars) { return array('template') + $vars; } add_filter('query_vars', ...
2
votes
0answers
47 views

add_rewrite_rule, plugin activation and plugin deactivation

I see a lot of example showing to call add_rewrite_rule in your init hook, e.g. function add_my_custom_rewrite() { add_rewrite_rule(... } add_action('init', 'add_my_custom_rewrite'); and in ...
0
votes
1answer
25 views

Worpress url parse

I want to display posts in certain category only with given tag. Problem with parsing url slugs. For example, I have category named 'Clothes': example.com/clothes/ I can get posts in this category ...
0
votes
1answer
48 views

Later change of taxonomy slug base not changing permalink

When defining a taxonomy I successfully set the slug base for it as well, all via functions.php. However, any change on the slug’s base (via editing functions.php again) is being recognised, i.e. it ...
0
votes
1answer
28 views

Best way to hook a custom url?

Let say I've a custom page with slug created "/products", I want user will be able to POST to a form with url "/products/create" and allow us to render some JSON output. The "/products/create" page ...
0
votes
0answers
15 views

Website directories sharing same root causing URL problem

I have a problem that is a 101 consequence of not using Wordpress multisite feature. The decision was not mine, and it can't be changed. Now, this is what happens: 3 separate wordpress websites are ...
0
votes
1answer
38 views

Modifying rewrite rules to use <custom post type>/category/<custom taxonomy term>/

I know I can add a rewrite rule to accomplish this but I'd like to affect the links generated by WordPress (such as when I put a custom taxonomy term into a menu) I have spent the entire day today ...
0
votes
0answers
17 views

Built-in Sitemap on Multi-site install produces 404?

We have a subdirectory multi-site install. Some documentation I found says that WordPress has a built in sitemap, at /sitemap.xml. Trying to access domain.com/blog/sitemap.xml produces a WordPress ...
0
votes
1answer
30 views

Add custom post type name in term link?

Is possible add name of custom post type in link of taxonomy term and remove slug of taxonomy? The default link is: slug_taxonomy/term_name I like: post_type_name/term_name Note: I use WPML ...
1
vote
0answers
31 views

How make a multi language routes, with rewrite rules or rewrite endpoints?

I want to know a concept of making a multi language routing system for WP. That is the best practice, to make this routing system with add_rewrite_rules for pages post arhive etc in part, or to use ...
0
votes
0answers
17 views

How write rewrite rule to reroute tiny url?

I want to know how to write a regex : for exemple url: http://localhost/wordpress/post-title/lang/en become http://localhost/wordpress/post-title/en. I need a global rule for all types of posts? ...
0
votes
0answers
44 views

Clean/Pretty URLs in Wordpress Using Custom for Custom Variables ($_GET)

I have a Wordpress page that I am passing custom variables to; I was able to successfully get this page to accept the custom variables using the following: function add_query_vars($aVars) { $aVars[] ...
1
vote
1answer
47 views

Use custom template on certain URLs

I'm building a simple two language site. I'm using Polylang for posts, and also have a custom post type, "Artist." In order to keep it simple on the back-end, I'm not using Polylang, just a few custom ...
0
votes
1answer
34 views

URL RewriteRule doesn't work when using WP Database Participants in my WordPress website

I'm using WP Participants Database plugin in a site developed using WordPress and I'm trying to transform: ...
0
votes
1answer
52 views

template_include not loading -instead goes to index.php

I have the following code: <?php function ex_rewrite_rules(){ //discography query variable rewrite add_rewrite_rule( 'artists/([^/]+)/discography/?$', ...
0
votes
3answers
230 views

URL rewrite and navigation structure for wordpress custom post type

I have created the following custom post types: Artists Albums Songs Songs are children of Albums, Albums are children of Artists. I am trying to set up a navigation structure that shows this ...
0
votes
0answers
48 views

Custom shortcode with dynamic rewrite

I'm trying my hands at developing a plugin but have run into an issue I can't seem to find any good answers to. I want users to put a shortcode on any page they want, and the shortcode is replaced ...
0
votes
0answers
63 views

Custom post type empty slug breaks permalinks for pages

In attempt to avoid posting a ticket to essentially reopen #15082 I'm posing here first. I have been vigorously dealing with this CPT permalink rewrite for countless hours now. After a 3am kinda night ...
0
votes
0answers
136 views

Archive page for a custom post type using WPML

On a website using WPML in last version, I have a Custom Post Type using an archive page, called archive-agenda.php. CPT is defined with this code : register_post_type('agenda', array( 'label' ...
0
votes
1answer
79 views

Edit Permalink Structure For Custom Post Type or Modify .htaccess?

I've been trying to find a solution for days now and I am absolutely stumped. I am putting together a website to list my domain portfolio for sale and I'm using a plugin I purchased to lists the ...
1
vote
1answer
76 views

generate_rewrite_rules (action) vs add_rewrite_rule (function): which one is preferred?

I see these two methods can be used to create new custom rewrite rule, so under what situation which one is preferred? I suppose they are doing the same thing? I can either use: add_action( ...