Change media item permalink

I have an image whose permalink is domain.com/books I would now like a page located at this permalink. Is there a way to change the image’s permalink? Thanks 4 Yes! Go to your Media Library Find the Image Click Edit Locate the Permalink under the Title Click Edit Change the Permalink Click Update! Edit If … Read more

Adding categories to custom post type in permalink

I know people have asked this before and have gone as far as adding the custom post type, and rewrite for permalink. The problem is I have 340 existing categories which I would like to continue using. I used to be able to see /category/subcategory/postname Now I have the slug of customposttype/postname. Selecting the category … Read more

Remove taxonomy slug from a custom hierarchical taxonomy permalink

I created a ‘forum’ taxonomy, using these rules: register_taxonomy( ‘forum’, array(‘topic’), array( ‘public’ => true, ‘name’ => _a(‘Forums’), ‘singular_name’ => _a(‘Forum’), ‘show_ui’ => true, ‘show_in_nav_menus’ => true, ‘hierarchical’ => true, ‘labels’ => array( ‘name’ => _a(‘Forums’), ‘singular_name’ => _a(‘Forum’), ‘search_items’ => _a(‘Search Forums’), ‘popular_items’ => _a(‘Popular Forums’), ‘all_items’ => _a(‘All Forums’), ‘parent_item’ => _a(‘Parent Forum’), … Read more

How do I add /blog/ as a prefix to permalink structure for blog posts, tag pages, etc.?

I’m using WordPress 3.1.3 as a full CMS, installed in the root directory of a domain. I have it setup using the built in options to have a static page as the home page, and then my blog at http://www.example.com/blog. What I would like is to have my single blog posts, category pages, archive pages, … Read more

Changing permalinks gives me 404 errors on nginx

EDIT It turns out that I was barking up the wrong tree trying to edit .htaccess, as nginx doesn’t use it. What I apparently need to do is edit my .conf file. Before I read this, my_app.conf looked like this: upstream backend { server unix:/u/apps/my_app/tmp/php.sock; } server { listen 80 default; root /u/apps/my_app/www; index index.php; … Read more

where is permalink info stored in database?

I see that I can edit permalink information in wp-admin page > settings > permalinks. However, where is that information actually stored in the database? 3 In the wp_options table there is a record where option_name = “permalink_structure”. However, the true, ultimate control of url rewriting is controlled by the WP_Rewrite API which saves/caches its … Read more

remove “index.php” from permalinks

I have been trying to find a solution. but I can’t.. my links are all domain.com/index.php/post_name/ I really want to remove /index.php I have searched and found some… saying I need to add these.. but it’s not working .. # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f … Read more

Resolve a custom post type name vs. page permalink conflict (same slug)

I have a custom post type called “visningshus”, and also a Page with that slug. This is as it should (must) be. Currently, “http://my-site.com/visningshus” lists all posts of that type. I want to show the page that has that permalink slug instead. How can I make WordPress not make the post type name take precedence, … Read more

Mixing custom post type and taxonomy rewrite structures?

Basically I want to achieve a glossary using custom post types and have some issues setting up rewrites the way I want them to be. I want it like that: The main glossary URL: http://example.com/glossary/ Glossary terms starting with letter A: http://example.com/glossary/a/ The URL for a single glossary term: http://example.com/glossary/a/atomic/ I actually achieved this using … Read more