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 […]
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: www.mywebsite.com/index.php/page1 But I want it to be: wwww.mywebsite.com/page1 I surfed the web a lot! Changing the permalink doesn’t work. Does anyone know how I can fix this?
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?
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 can I remove custom post type slug from my base url ? for eg : mywebsiteurl.com/custom-post-slug/postname I would like to make it mywebsiteurl.com/postname instead .
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 […]
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.
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 […]
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 […]
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 a database check for duplicates and manually fix them but I was wondering if this was […]