Articles of permalinks

WordPress on Ubuntu 12.10: permalinks problem

I am running a backup of my website on Ubuntu 12.10 (apache+mysql). I can see properly admin and home page, but permalinks are not working (so urls like this are failing: localhost/page/…/). What I did till now is: 1) Created file .htaccess via settings->permalinks with the content: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase […]

How to get rid of index.php?

Does anyone know how I can get rid of index.php in my URL? Right now if I add a new page, the address will be: But I want it to be: I surfed the web a lot! Changing the permalink doesn’t work. Does anyone know how I can fix this?

Remove permalink from images when inserting into post

In previous versions of WP, we were able to remove permalink from images while we were inserting images into post. But now there is no obvious option to do so. How can it be achieved?

Change permalink only on new posts

Is it possible to change permalinks on all posts created after a certain date? This because we don’t want old URLs to break. Now we have /%year%/%month%/%postname% We want to have /%postname

How to remove custom post type name from base url?

How can I remove custom post type slug from my base url ? for eg : I would like to make it instead .

Prevent page slug from interfering with custom post type archive permalink?

In my plugin, I’m creating a custom post type that has an archive and uses the rewrite parameter to choose a slug: $args = array ( ‘public’ => true, ‘has_archive’ => true, ‘rewrite’ => array(‘slug’ => ‘lessons’, ‘with_front’ => false) ); register_post_type (‘my_plugin_lesson’, $args); With this code, I get an archive of the ‘my_plugin_lesson’ posts […]

Changing permalink changes stylesheet path?

I have changed my permalink structure to /%category%/%postname%/.The links are working, but the problem is that my style.css is not working in some of the posts which are inside the category.

wordpress upgrade has broken my permalinks

I have just upgraded my wordpress installation from 3.1 to 3.1.1 and my custom structure permalinks are now broken, The permalinks were set to follow this procedure, /%category%/%postname% however now they are just falling back to ?page_id=30 How can I fix this what has changed in 3.1.1 I wonder if it is a problem with […]

Link won't show using the_permalink();

Inside my loop, I’m trying to have a link show and it won’t I’m not sure why Here is the code: <?php the_title(‘<h2 class=”wow”><a href=”<?php the_permalink(); ?>”‘, ‘</a></h2>’); ?> I understand this is maybe because of the ” quotations instead of “”, but how would I achieve this general thing with just PHP and not […]

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

I am tempted to change my blog to be 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 a database check for duplicates and manually fix them but I was wondering if this was […]