permalink

wordpress permalink post_type

i am looking for a way to get the post_type into a wordpress permalink structure - especially considering custom post_type's defined by my own plugin. is there an easy way to do that, or do you know any decent documents about wordpress url handling / redirection (codex seems to lack a bit on the rewriting side of things). ...

MediaWiki: Can I make all links lowercase and use hyphen instead of underscore as word separator?

Can I make in Mediawiki links lowercase and use hyphen instead of underscore as word separator? Sort of what Wordpress or another wiki CMS does. ...

Create a permalink with JavaScript

I have a textbox where a user puts a string like this: "hello world! I think that __i__ am awesome (yes I am!)" I need to create a correct URL like this: hello-world-i-think-that-i-am-awesome-yes-i-am How can it be done using regular expressions? Also, is it possible to do it with Greek (for example)? "Γεια σου κόσμε" turns to ...

Rails, How can I combine multiple model attributes to create a unique permalink using permalink_fu?

Can Permalink_fu combine 2 or more model attributes to create a unique permalink? Let's say I have a Business Model, this model contains :name, :address, :phone, :city, :state, :country etc. attributes. Right now I have permalink set up in this model only for :name has_permalink :name So I would get "/biz/name". However I would like ...

.htacces - moving all posts in root to a new category

Could anyone please help me? I am at the last chance saloon and losing a lot of traffic. Any help would be greatfully received. After a year based on my permalink structure, all posts were in the root so have been picked up by Google as: snowmenu.com/postname Since changing my categories and permalink structure, I need the years worth...

Using - Instead of + in WordPress Search Permalink

Options +FollowSymLinks RewriteEngine On RewriteCond %{THE_REQUEST} ^[A-Z]+ /(#[^?& ]*)??([^& ]*&)?s=([^& ]+)[^ ]* HTTP/ RewriteRule ^$ http://wordpressblog.com/search/%3? [R=301,L] Currently I use the above .htaccess mod_rewrite rule to convert default WordPress search permalink: http://wordpressblog.com/?s=key+word into nice per...

Creating a pop-in window effect with hashtags

I'm creating a script that allows me to launch pop-in windows based on the URL's hashtag. I'm able to get it to work when the user plugs in the URL+hash directly in the location bar. However, when the anchor links are clicked, the script doesn't seem to perform the .load() function. Is my sequencing wrong, or am I going about this the co...

Wordpress: Where to locate the permalink in the database

Someone from our team change the permalink of a page to http://www.example.com/ so this is now the homepage. My problem is I need to change the homepage, but whenever I create a home.php file it is not executing but rather "that" page. I tried to change the permalink in the admin panel but it doesn't give me an option to do so. Then I t...

Getting Permalink from Post ID in Wordpress 3

I'm building a small list of recent comments, and would like to make links to the actual posts that the comments were placed on. Unfortunately, there is no comment_permalink or post_permalink that I can find, so I thought maybe there would be a get_permalink() function, but again, none that I could find on http://codex.wordpress.org/Func...

Django Inheritance and Permalinks

Hi, I'm creating a simple CMS in django, with multiple "modules" (each as a django app). I've set up the following models: class FooObject(models.Model): id = models.SlugField(primary_key=True) name = models.CharField(max_length=255) creator = models.ForeignKey(auth.models.User, editable=False, related_name="createdby") cl...

How to include a custom string in a Wordpress permalink?

Hello, I am a bit confused about how WordPress's permalink works, especially beyond Wordpress's own usage. My permalinks are like: %post_id%-%post_name% But in single.php I want to put another link to page itself but with different query string. When it is clicked the permalink structure may look like: %mystring%-%post_id%-%post_nam...

Wordpress permalinks broken

I have recently moved my blog from one serever to another. I am now unable to restore my permalink structure. Now my permalink strucure has become /?p=123. Whenever, I try to change it to any other custom permalink structure, it throws 404 for all the posts. Check the blog at http://microreviews.org I have been forced to make the permal...

how to make wordpress pages redirect to a totally different place

I have a website , installed in it wordpress blog , there is a menu in the header with pages inside the blog that i made ,,, anyway what if i needed to totally change where the user go when he clicks on that page (menu item) ?? permalink only allow you to edit the rest of the link not the whole link !! ...

wordpress custom post type; query by id works, by post_name doesn't

Hi, I would need some help with Wordpress and custom post types/permalinks. I registered custom post type by the name "services" with the following arguments: $args = array( 'labels' => $labels, 'singular_label' => __('services'), 'public' => true, 'query_var' => true, 'show_ui' => true, 'menu_icon' => get_stylesheet_direct...

Wordpress Permalink Redirection Hell - Should I Just Use .htaccess?

So I've been in the process of improving the SEO of a wordpress blog I took over at my job. As I have learned more I have wanted to change the permalinks. Originally the permalinks were all /year/month/day/postname/. First I changed them to just / postname/, but then I wanted to do a better job siloing. So a few weeks later I changed the...

Assigning permalinks to a page in PHP (Without using htaccess redirect)?

Hi, This is a noob question I belieive, in a content management system as well as several other types of sites that work on submissions, once you submit a URL in a URL shortening website for instance, how do you use PHP to redirect to the appropriate URL without a 404 or without using an htaccess. Based on what I've found in simple url...

Permalink with Taxonomies in Wordpress in the form /%term_id%/%term_slug%

I need a permalink to be in the form /writer/%term_id%/%term_slug/, as /writer/123/hand-made-shoes I get the following code but it do not resolve the correct permalink. What could I be missing? function writer_structure(){ global $wp_rewrite; $writer_structure = '/writers/%writer_id%/%writer%'; $wp_rewrite->add_rewrite_tag...