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)

0
votes
1answer
138 views

How to Use metada Value in Url and is it possible? [duplicate]

Possible Duplicate: How to use Post Custom Metadata in Post Titles and Post Permalinks hii i want to know that how can i use my metadata value for post url which i add with my every post in ...
3
votes
2answers
457 views

How to use Post Custom Metadata in Post Titles and Post Permalinks

I am very new to WordPress. How can I use post custom metadata in place of Post Titles, and as the Post Permalink? For example, instead of domain.com/the-post-title, the permalink would be ...
1
vote
0answers
56 views

Entities in URL… why? [closed]

A user creates a post with the following url: http://mysite.com/entry/we’re-here/ However, my text editor converts it to this automatically (I'm using the url somewhere else in a cut and paste): ...
1
vote
2answers
175 views

How do I get rid of “category” from my URL structure?

By default WP links to a category like this, mydomain.com/category/travel. Having the word "category" appear in the URL seems unnecessary. I'd prefer have the link read mydomain.com/travel. How can ...
0
votes
1answer
39 views

How do I get posts to appear at mydomain.com/blog?

I'd like to use WP to manage my whole site, not just the blog. I don't want the blog to appear on the home page, but instead at mydomain.com/blog. What I've done so far under Settings/Reading is to ...
0
votes
1answer
69 views

Custom rewrite rule takes place AFTER the generic category rule

I've got a custom post type defined to handle a company's distributors. It takes a post and routes it under /distributors/abc-truck-sales. I noticed that loading /distributors/ matches up to a ...
2
votes
1answer
2k views

Custom post type's get_permalink returns wrong url

Currently my permalink setting is /paper/%postname%/. I am developing a plugin, so the following is done during the activation. I am programatically adding a new custom-post-type called 'meta', like ...
0
votes
1answer
515 views

Flushing rewrite rules

I'm using this function to add a custom end point to the WordPress urls add_rewrite_endpoint('print', EP_ALL); When the plug-in gets deactivated, I run this function flush_rewrite_rules(); This ...
4
votes
1answer
1k views

How to filter custom post type archive by meta value

I have a problem where I'm trying to build a calendar plugin for a client. I'm having trouble getting a date based archive for the custom post type I'm using. I'm not too well versed in how the ...
0
votes
1answer
575 views

HowTo to add my rewrite rules at the beginning, redirect to the right page and flush the rules on plugin activation?

Hi i am currently writing a WordPress plugin that i want to release to the public. I am having a few issues with URL rewrites however. I have got the plugin to redirect to the plugin page ...
2
votes
1answer
457 views

Category and tag with same name

IN my blog, if I have a category and tag with the same name, it will make the tag have a number in the URI. Example: category/php tags/php-2 Is there anyway to make my tags with the same name as ...
1
vote
1answer
377 views

Wordpress removes spaces in URL on pagination

I'm having a problem with wordpress rewriting my URLs, basically I have a regular search form with method set as GET, when I submit it the URL looks like this at first: ...
0
votes
2answers
2k views

301 Redirect all posts urls from .html to / (without .html)

How can i redirect all posts permalinks from .html to / ,in Wordpress ? now all my posts url are ending in / ,but before it was with .html to be more clear ,for example a post url like this ...
3
votes
2answers
574 views

Rewrite custom post type rss feed links

I am looking for a way to rewrite my custom post type feed located at http://localhost:8888/feed/?post_type=post to http://localhost:8888/feed/portfolio this post suggests using ...
1
vote
1answer
985 views

How to have a custom URL structure for a custom post type?

Even though this question sounds like others here is my problem: The site I am updating had a permalink structure of /%postname%, during this time I created a custom post type of "popups" (rewrite ...
0
votes
1answer
203 views

Combine 2 different custom post slugs into a single permalink?

Need some help with this URL rewrite. I have 2 custom posts set up, 'company' and 'job'. I have a single-company page, and a single-job page, which work fine. A company can have many jobs, and I'm ...
0
votes
1answer
599 views

Help with a custom rewrite

The following is a snippet from single.php </div> <?php endif; ?> <?php ...
1
vote
1answer
135 views

ReWrite rule for files of a previously standalone blog moved to network

A moved a standalone wordpress install to be one of a network, but the possibility to access the uploaded files with the same URL is need to be kept. I'm trying to get the following rewrite rule to ...
0
votes
1answer
243 views

Custom Post Type and Taxonomy Rewrite Error

The following code is adapted from Jan Fabry's answer. Mixing custom post type and taxonomy rewrite structures? <?php add_filter('post_type_link', 'client_area_permalink', 10, 4); function ...
1
vote
1answer
1k views

add_rewrite_rule: $matches var not replaced by captured value

I want to access a plugin file (when <a> is clicked) without exposing actual path of the file. I am using the following rewrite rule: add_rewrite_rule( 'continue/([0-9]+)/?$', ...
2
votes
1answer
358 views

WordPress custom URL Rewrites redirecting not masking

I have the following code that exists in a plugin that is meant to take a request to the url /stores/directory/foorbar/ and pass foobar as a GET variable: function pcrr_rewrite_rules($a) { $k = ...
0
votes
3answers
865 views

Need to make a php file inside theme accessible via url

I checked this post here Making a plugin file accessible via url rewrite? which seems to have the same problem as me but its for a plugin. But so far i am getting 404. add_action( 'init', ...
0
votes
1answer
119 views

Listing Authors - URL Formats [duplicate]

Possible Duplicate: How do I amend the fixed “author” part in the URL? Hullo, I'm needing to have custom URLs for authors so for example mysite.com/team/johndoe would be the ...
0
votes
2answers
379 views

how to properly rewrite url by custom var

ive been trying to rewrite a shop uri, and what i have now is this code: add_filter('rewrite_rules_array','wp_insertMyRewriteRules'); add_filter('query_vars','wp_insertMyRewriteQueryVars'); ...
11
votes
1answer
14k views

How to create custom URL routes?

I have a very peculiar requirement, hopefully I can explain it without being too confusing. I created a page template where I list some properties I get from an external XML file, so far no problems, ...
0
votes
2answers
135 views

Need help with a custom rewrite rule - http://domain/custom post slug/replies

I had asked this question in a different way too, but no one replied there! I guess I should rephrase it here. My custom post is 'company'. I'm trying to add a custom rewrite rule. When the 'url ...
0
votes
1answer
235 views

Pass a comment id through url and append the comment post's slug in the url

Here's the scenario: I wrote a custom url rule to pass a comment id to a template and display the comment and comment meta as a single page (eg. http://example.com/reply/56) and it works fine. But now ...
2
votes
1answer
376 views

When to call `add_rewrite_rule` for safety

I am starting to run into situations on projects where I am combining multiple plugins which all use add_rewrite_rule and flush_rewrite_rules at different points. As we all know, calling ...
3
votes
1answer
4k views

How to pass URL parameters for advanced taxonomy queries with multiple terms for one custom taxonomy

This answer provides the code for a query that returns an OR match on a taxonomy term: global $query_string; $args['tax_query'] = array( array( 'taxonomy' => 'status' ,'terms' ...
0
votes
1answer
253 views

WordPress total posts per page changed and now 404 Http error comes out [closed]

I have migrate my web site from Joomla to WordPress. All are fine, I have create my Rewrites in htaccess to stop 404 from old URLs but I have problem with pagination. In Joomla web site, I had 6 ...
0
votes
1answer
168 views

rewrite rules and capturing

I have what I think should be a really simple problem. But for some reason I can't crack it. I want everything following an existing page to be directed as a query arg to that page. So ...
3
votes
4answers
5k views

URL Rewrite + Page + Custom Post Type = Unusual Redirect

Yet another URL rewrite issue :) The Problem I have a URL rewrite rule that should work, but against all logic it redirects without passing the query var. The Juicy Details The site has a page ...
2
votes
1answer
369 views

Can't get rewrite rules working

Basically I want to rewrite: /edit/test-post to an existing page with a parameter: /edit?e=test-post From the examples in the Codex I created: add_filter( ...
3
votes
1answer
550 views

How do you permanently remove default rewrite rules from the wp_options table?

We have tons of rewrite rules saved in our wp_options table and I'd like to permanently remove any entries that we're not using on our site (such as comment feeds, page attachments, etc.). What's the ...
0
votes
1answer
963 views

Taxonomy with_front causes all

I have a custom taxonomy, which sets the with_front to false to try and get the URLs to look like /%type%/%brand%/%product%/, degrading as we go down. This however is driving me nuts. Everything in ...
0
votes
1answer
67 views

Help with static front page blog at /blog

I'm interested in installing wordpress and having a static front page and have link to the blog at /blog. How do I install wordpress in the root directory, but have the blog live at /blog I see how I ...
1
vote
2answers
135 views

If the only permalink setting is %postname% what happens in the case of old duplicates?

I am tempted to change my blog to be site.com/postname. I know that for new posts Wordpress is smart enough to add a unique number to them, but what about old posts that would get updated? I can run ...
0
votes
2answers
110 views

How to exclude my home page from url of my internal pages?

I just definsed at Setting> Reading a page I have created called "home" as my homepage. The change was ok, but since them all my internal pages url shows an extra /home/in their urls. How can I avoid ...
0
votes
2answers
407 views

Is there a PHP function that can match anything after the given URL, so my IF statement will work in each instance?

I have an IF statement shown below that runs one of 2 custom queries, based on the url. The problem I'm facing is if the url contains pagination such as /page/2/, my query breaks because the url isn't ...
0
votes
1answer
192 views

Replacing broken urls (dreamweaver) to new ones in wordpress

I am moving an entire site from html and dreamweaver format to wordpress. I imported the content using htlm import plugin that worked well. Now I have to correct all content links as they kept the ...
2
votes
4answers
2k views

Redirect all posts urls from without .html to .html

How can i redirect all posts permalinks to .html ,in Wordpress ? now all my posts url are ending in .html ,but before it was without .html to be more clear ,for example a post url like this ...
1
vote
2answers
386 views

How do I retain url parameters the entire time a user browses my site?

We have customers that come from other sites and I would like to retain a url parameter /?lead=openeye throughout the time that they're browsing. That way when they fill out a form I can capture the ...
1
vote
1answer
385 views

Pagination on Custom Tax Pages Removes Spaces from Query Vars

I've got a weird problem that's very similar to this one: Why does Wordpress Pagination Remove the Spaces from my GET Variable?. Except that mine isn't withn search results pages--it's with custom ...
1
vote
4answers
1k views

Redirecting when changing custom post type slugs?

I changed the name of two of my custom post types. The original slugs for them did not properly reflect the post type. So I need to redirect requests for posts beginning with designer_lingerie (the ...
3
votes
2answers
761 views

Create built-in pages without creating actual pages

For example: site.com/contact (or site.com/?page=contact if not using permalinks) when someone goes to that page I want to load a theme template, like page-contact.php But I don't want to create a ...
1
vote
1answer
2k views

How to make pages slug have priority over any other taxonomies like custom-post, post or category

I use WordPress as a CMS. I need to show page instead of category when they have same slug. I have category called "vertical machining centers" with the slug "vertical-machining-centers" This ...
2
votes
1answer
2k views

How do I remove a rewrite rule?

I've added a rewrite rule with the following code, and now I need to remove it. add_rewrite_rule('^events$', 'index.php?post_type=events', 'top'); My issue is not that the rule is not working. It ...
2
votes
1answer
492 views

custom permalink/shortlink with base62 encoded post ID

I want my post-links to look like /%post_id62%_%postname%/ where %post_id62% is the post ID in base62 encoding (e.g. http://example.com/y9Rlf_test/) and my shortlinks to consist of /%post_id62% only ...
2
votes
3answers
2k views

Changing the search URL?

I want to change the search URL from example.com/search/keyword to example.com/result or topic/keyword.
0
votes
1answer
706 views

Can't get pretty permalinks to work without index.php

I've worked with WordPress for a while now and this is the first time I've had this problem, I can't get my permalinks to work without index.php on the URL even though mod_rewrite is enabled, a few ...