• Does anyone else want to do this? I want to create pages, and give them custom urls per page (such as about.php, faq.php, etc.), but I want to stick with the permalink structure I have specificied in the WordPress dashboard.

    Is this a plugin or something.

Viewing 10 replies - 1 through 10 (of 10 total)
  • 1. You won’t have about.php, faq.php – just /about and /faq.
    2. No, I don’t know of any kind of “selective” permalinks plugin or something.
    3. That doesn’t mean it’s impossible (I’ve learned this during the time spent around here) – but you have to be a .htaccess wizard or find one 🙂

    Thread Starter ctrygstad

    (@ctrygstad)

    Okay, thanks for the quick response! Now, how do I get a page to show up as /about or /faq?

    Thread Starter ctrygstad

    (@ctrygstad)

    Well, I see how to change the permalink structure to /%postname%/, but that isn’t what I’m going after. I just want to be able to customize particular pages urls, and leave the post permalink structure alone. Can I go into the wp_posts table, and manually edit the “guid” field for the page I want to change?

    Since your permalinks seem to be active – you don’t have to do anything 🙂
    Just go Write > Write Page and create a new Page with the title “About” ==> Wp will automatically generate a slug for it from the title (=about) and put your content in the Page, save it. You are done.
    It will be found at yoursite.com/about

    neighbourly greetings from Manitoba

    Thread Starter ctrygstad

    (@ctrygstad)

    Thanks for the help, now that I have reworded the title of a page and a post, how do I get the permalink to update?

    Minnesota represent!

    What do you want to update?
    The Page is working:
    http://www.livinginminnesota.com/about-us-2/
    You probably have another Page with the same title that’s why WP – cleverly 😉 – adds the 2.

    Yeah, I just re-read your post:
    reworded the title of a page and a post – you mean you have a post and a Page with the same title?

    Thread Starter ctrygstad

    (@ctrygstad)

    Ugh, I decided to completely delete and recreate the page again, so now I have the url I want (http://www.livinginminnesota.com/about-us/). I have much to learn before I become a jedi master. Now, I’m off to learn how to insert description and keywords tags into posts and pages, and a function to list the last 5 blog posts.

    Thanks for your help again, but on a sidenote, I think there should be more customizing options so you can have a different url than the page title, I always try to optimize my url/title/description/keyword/h1 tags for google/yahoo.

    WP is an optimal tool an that regard! In well-coded (!) themes everything works well for SE. Actually you can manually edit the Page/post slug if you don’t want it to be the same as the title.
    Here is an example I did, compare the title and the slug:
    http://www.transycan.net/blogtest/2005/07/05/integrate/
    There is a plugin somewhere that makes keywords from the posts – but you are aware that good code and good content beat any meta tag trickery 🙂

    I think I ran into the same problem as you. I run gallery on my website and recently installed WP to give it a try and use it as the main theme on my site.

    I wanted to list ‘Photos’ under ‘Pages’ in the sidebar and have it go to the subdirectory /gallery, which is where all the gallery code lives. I couldn’t find an easy way to do this (I considered running runPHP on WP and grab the RSS feed from gallery to present links to the gallery in the WP Page, but runPHP wasn’t playing nice and it seemed like it was going to be allot of effort to get this idea working).

    Anyway, my quick hack job was to add a new field in ‘wp_posts’ in the dB called ‘post_link’, which holds the value for an external link for a page (which seems to just be a type of post). Then a quick edit to ‘wp-includes/template-functions-post.php’ to have both the functions ‘wp_list_pages’ and ‘_page_level_out’ use the value in ‘post_link’ if it exists, otherwise default to the link it would have used otherwise.

    I haven’t completely tested the change, plus I just installed WP today, so I’m not sure if there will be any bugs that come along with this change, or other functions that need updating to utilize the new field. I also have not looked into tweaking admin for supporting the new field, but it shouldn’t be any different than the functionality used to edit the slug.

    Because it could potentialy be an external link, it might be nice to add an ‘open in new window’ setting to this as well, but I don’t personally have anything I need to do this with yet.

    Sorry for the long post, but maybe someone will get some use out of it (or post an easy way to accomplish this without hacking the code).

    I don’t see how is your problem similar to the OP, but what you wanted could have been done with the Redirectify plugin.
    Download it for this page:
    http://redalt.com/downloads/

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘How do I customize permalinks for pages but not posts?’ is closed to new replies.