Tagged Questions

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)

2
votes
1answer
61 views

Permalinks, Rewrites, Get Variables, Oh My!

Ok, so I know it's a silly title, but it's exactly how I feel right now.. I've created some custom rewrites for WordPress and they work great, the only problem is that now I need to add pagination. ...
2
votes
1answer
50 views

Get the category is not working on url

Although this is my first post but i have been coming here for answers so I know the rule and this isn't a duplicate because i have tried whatever i could but couldn't seem to get my codes to work. ...
1
vote
1answer
28 views

Rewrite Slug for CPT Archive Pages to Plural Name of Slug

I have a custom post type with the rewritten slug of plugin creating the url structure of http://site.com/plugin/plugin-slug/. Which makes the CPT Archive as http://site.com/plugin/ I'd like to ...
0
votes
2answers
33 views

How to create short urls for sharing and downloadable content?

I want to create something similar to "youtube.com/long => youtu.be/short" for my wordpress blog/portfolio/freebie site: "magicshrooms.com/%cat-etc => mgcsr.mz/link-name ". Generally, I want to create ...
0
votes
0answers
29 views

Getting rewrite correct

I had the permalinks settings as /%postname%/%post_id%/ but recently change it to /%postname%/ and added the following to htaccess RedirectMatch 301 ^/([^/]+)/(\d+)/$ http://www.site.com/$1/ It ...
0
votes
0answers
40 views

URL/Permalink customization for Taxonomy/Term archive & post

I have a CPT called "Provider", taxonomy called "State" and a term called "Alabama". Is it possible to change the following URL structure from: 1. http://localhost/state/alabama (to view all the ...
0
votes
1answer
56 views

Rewrite slug of custom post type to include post-id

My current permalink setting is /%postname%/%post_id%/. Would like to use the same with CPT. Currently the URL looks as site.com/questions/title/ Would like to get post id at the end of the url on ...
0
votes
1answer
43 views

Create custom permalinks to show Custom Post Type's relationship?

I'm creating a WordPress site that has 3 custom post types registered: course, chapter, and lesson. All of these post types are inter-connected and share a relationship using custom fields. For ...
0
votes
0answers
8 views

How remove Wordpress Impression from my website [duplicate]

I am developing one wordpress theme for client. I completed the theme. But he is asking about remove the wordpress theme impression. Here impression means when i try to see view page source i am able ...
0
votes
1answer
74 views

Add_query_arg + two times the same argument?

I'am trying to filter my archive page by clicking links. When clicked they execute the add_query_arg command. Everything works fine so far. But now i want to add combinations within the same ...
2
votes
1answer
48 views

WordPress URLs without posts

We are working on larger system, which is based on WordPress, but WordPress is used only for "static" content, the main part of the system should be consuming the external API and displaying the data. ...
0
votes
0answers
32 views

Rewrite Rule Not Working

I am trying to use a rewrite rule to get 3 variables from the URL. Here is my rule: add_action( 'init', 'pe_rewrite' ); function pe_rewrite(){ add_rewrite_rule( ...
1
vote
1answer
32 views

Wordpress 3.9 breaks invalid permalinks.. code fix possible?

With wordpress 3.9 apparently some changes were made to how permalinks work internally. It seems that in my case these changes have caused some previously working pages to start returning 404 errors. ...
0
votes
1answer
33 views

What's the best approach to do this?

I want to start a new site where I want the main page to be a static page showing information about myself, a kind of resumee without personal details. Then, there would be a site.com/blog/ where I ...
0
votes
0answers
17 views

Subdomain for main category, directories for subcategories

I explain clearly what I want to achieve : I have here Main category : Car -Sub-category : Sports-Car --Sub-category : Porsche ---Post : Porsche-911-Turbo.html I want URL to be this : ...
0
votes
1answer
59 views

Weird characters behind every single link and images

My site http://ilovetaobao.my If you view page source, almost every single images and links have this in the end of the URL. ?84d5a9 For example like ...
1
vote
1answer
82 views

Adding special characters to slug?

Is it possible to prevent WP from stripping out certain characters when customizing a URL? For example, affiliate ids usually have something like ?id=something. Customizing a content's slug with ...
0
votes
0answers
122 views

URL rewrite custom taxonomy using add_rewrite_rule() or generate_rewrite_rules()

I'm trying to get my head around amending some URL's for a website I have created. After reading two (very informative) answers (1, 2) but I'm still a little unsure how to approach creating a URL that ...
0
votes
1answer
43 views

Use a custom post URL that is outside the blog root directory

I have a website blog and its URL is: www.website.com/blog The above is fine and I want it to stay that way. www.website.com is the main site, which is not a blog. Currently, the URL structure for ...
0
votes
1answer
37 views

Folder Name and Category Name Wordpress

I have URLs that need have the old URL for download files. Before, it has 2 separate website. The MAIN and the PORTAL website. http://www.website.org http://www.website.org/portal I want both ...
0
votes
0answers
11 views

Renaming CPT slug when the user access a page from one specific taxonomy

How do I rename a registered CPT slug when the user access a page from one specific taxonomy? I have a custom post type called /package/ and it taxonomies /america/ /europe/ /asia/ /hotel/ An ...
0
votes
0answers
58 views

How to Combine Two Custom Post Types into Single Permalink Structure

The website uses - A) A hierarcical Custom Post Type "Destination" to support the following structure, so each tier of the hierarchy could have its own unique destination guide: Territory - ...
0
votes
1answer
76 views

Query var removed after rewrite

I have a WordPress blog that uses custom post types, which I'm creating using the WCK plugin. One of which is the post type shows. A permalink to a specific show, then, appears as: ...
0
votes
1answer
69 views

How to mask url of a specific page without affecting seo [closed]

What I'm looking to do is exactly this and/or this. What's holding me back is my fear of losing all the SEO traffic my posts at site.com/blog/post have already acquired. Would implementing this fix ...
0
votes
0answers
16 views

Re-write URL for certain sub-pages only

For better Organization in my Admin panel for Pages on a site I would like to add a page called "Unlisted" and then add sub-pages to this page that I do not want to be listed on the site...the purpose ...
0
votes
0answers
14 views

how to change some of the rules in the database

I need to add a rewrite rule for a WP page. I noticed that the rule is already part of the existing set, but apparently it is not correct. With the hope some internal mechanism would have replaced ...
0
votes
1answer
144 views

How To Run Multiple Multi-Site Networks On Same Box [closed]

I'm building a multi-site project locally using the VVV Vagrant VM. I setup a sub-domain multisite install with domain mapping and two sub-sites. Everything works fine. This was my sandbox that I ...
0
votes
1answer
140 views

How to use wp rewrite to hide form action url?

I have a widget that I'm making that builds a multi-step form which retrieves xml data from a third party plugin (http://xmlplugin.com/geoquote.php). While this plugin is available for use already it ...
0
votes
1answer
21 views

Font Page overrides rewrites

I have a custom rewrite as follows So /shares points to a page I created with a slug images which uses a custom query variable named h626_page. My problem is I want to set the images page as ...
0
votes
1answer
157 views

Redirect A URL Pattern In WordPress Using .htaccess

I am new to WordPress and just converted from Blogger to WordPress. Now as you know that Blogger URLs are too different from WordPress URLs so after migrating I started receiving 404 error in Google ...
0
votes
3answers
50 views

Once redirected by Rewrite rules, how can WordPress know the page?

I have been searching for some configurations of .htaccess, filters and hooks to make able to manage the inner site uri's. The goal was force login, register and admin pages through SSL, and all the ...
0
votes
0answers
24 views

Rewriting URLs with Query Strings

I've been (unsuccessfully) attempting to prettify some URLs in a website I'm building in Wordpress, from something like this - ...
0
votes
0answers
38 views

Dynamically add a keyword to url with a specific template

I'm working on a site that is going to have two parts. Its going to have the regular marketing website and its going to have lots of landing pages constantly being drafted up to test things. My ...
0
votes
1answer
68 views

Rewrite Endpoints and CPTs - How to use in a plugin

I'm working on rewrite rules for a plugin that uses a URL endpoint, /modifier, to create a query_var &modifier=1 to signify it should do something else. The rewrite deals with URLs where ...
0
votes
1answer
67 views

.htaccess RewriteBase equivalent for WordPress - Passing a URL as a variable without getting a 404

I have a page ran by a javascript plugin that changes the url every time a slide in a gallery is cycled. This means that while slide 1 is visible, the URL is http://www.sitename.com/gallery/slide1/ ...
0
votes
1answer
122 views

How do I remove a word from a url in Wordpress using .htaccess?

In the site I'm building there is a post-type called "Focus". Since they need to url to be like www.mysite.com/focus/page-post-name I have the post type slug as "focus". Of course the archive page is ...
1
vote
0answers
58 views

How to change hierarchical page permalinks to be flat

I'm building a site for a client with a large navigational structure. I think it would be easiest for them to manage if the pages were listed hierarchically in the admin panel, but it would also be ...
0
votes
1answer
27 views

Help to cleanup this code

I am trying to change my attachment page link yo example.com/photos/attachment_ID/post_name/attachment_name can you tell me how to call the parent post name function wpd_attachment_link( ...
0
votes
0answers
32 views

URL rewriting with custom pagination

I'm using a custom query to display the results with the pagination and rewrite the URLs. The following function works fine and displays the URLs in following pattern: ...
0
votes
0answers
11 views

Need help with rewrite of Attachment URL [duplicate]

How can I change Attachments URL to example.com/photos/attachment_ID/post_name/attachment_name Thank you
1
vote
0answers
75 views

Cache issues with redis and nginx

I have a problem with the rewrite rules in my nginx config file. I am running wordpress with nginx and redis to cache the site. I can get the redis to cache all pages not a problem, but as I am ...
0
votes
0answers
11 views

How to turn system default url into friendly urls?

We have been using wordpress for everything and we are really happy with it! While we can customize the way our friendly urls look though, there does not seem to be a way to do the same for the ...
0
votes
0answers
48 views

Custom Post Type and Custom Taxonomy - Same rewrite/permalink

I may be attempting the impossible here, I'd like a custom post type and a custom taxonomy to share the same rewrite. The rewrite being "/", with the intention of not having the custom post or taxo ...
0
votes
1answer
63 views

rewrite rules social share links

Within the Ultimatum's theme childtheme.php I've added rewrite rules to the rewrite rules and it works perfectly fine. However, it does not work if the URL is shared in Facebook or Twitter. The ...
0
votes
0answers
32 views

Create custom 'page' with plugin

I haven't been able to find this anywhere else so I thought I'll ask here! My plugin creates a custom post type with the various front-end rewrites, and I'd like to create a page on the front-end ...
0
votes
0answers
68 views

Wordpress permalinks on subfolder in iis7 not working

I have IIS 7.5. mod rewrite active. Currently, my wp site is inside subfolder. Here is web.config in my root folder : <rewrite> <rules> <rule name="site2.com" stopProcessing="true"> ...
0
votes
0answers
37 views

Append a custom string in custom post type URL

Is there any way in WordPress how to achieve following situation? I have a custom post type with permalinks. And I need to append a string to this URL, which will produce a different view. E.g. - ...
0
votes
0answers
23 views

Wordpress custom URL htaccess not working

I am having a URL in wordpress which needs to be changed. http://www.somedomain.com/site/other-jobs/view/?action=view&title=php-developer&JOB_ID=158 I want to make this URL to look something ...
0
votes
0answers
27 views

URL rewrite for custom taxonomies

I wish you guys can help me, here is the setup i have in my real estate theme and what i would like to achieve. I have a custom post called properties and inside the custom post I have custom ...
0
votes
1answer
241 views

web.config breaks the themes for sub-directory multisite

We are converting a single wordpress site to a sub-directory network but we can't find any web.config that works correctly. We can never get the theme to work, not even on the root (/) site, as soon ...