• Are there any sites or forums where I can get help with WordPress?

    I am running 2.7 as a CMS, everything works fine, but when I switch from default to permalinks, the pages stop working, namely

    – a page to list the posts, like headlines.php?cat=5 (to list all headlines in that category)

    – and a page to display a post, like show.php?p=532

    I’d like to switch to permalinks, but would like a way to keep using the old structure, or a new way to list the posts.

    Thank you.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Are there any sites or forums where I can get help with WordPress?

    Don’t really know of any. I mean, it would be great if there were a volunteer and end-user supported forum for this software.

    Are you migrating from one system to WordPress? Except for the headlines.php and show.php filenames, WordPress already does this with URL/?p=123 and another one (which escapes me) for categories.

    Also with .htaccess, the old URL format can usually be 301 redirected to the new URLs, regardless of if the new and old match up neatly.

    Thread Starter junx0r

    (@junx0r)

    I am not migrating, I just have a file show.php with this code:

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <?php the_content(__(‘read the rest of this article »’)); ?>

    And for headlines.php I just want to show the titles:
    <?php if (have_posts() && in_category(’15’)) : while (have_posts()) : the_post(); ?>
    ” ><?php the_title(); ?>

    This code works, but when I switch to permalinks, it doesn’t anymore.

    Any idea how I can make this work?

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    When you use fancy permalinks, WordPress puts this into your .htaccess`

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    You need to put in a condition so it won’t re-write your show.php request like this

    RewriteCond %{REQUEST_URI} !^show.php

    Put that right below the “RewriteBase /” line.

    That way, any URI that starts with show.php will not get rewritten and should just go through.

    Thread Starter junx0r

    (@junx0r)

    jdembowski, it still doesn’t work, though I feel you’re very close to the answer.

    The pages still say ‘sorry, no posts matched your criteria’

    As soon as I switch back to Default, they work.

    Any idea what it could be?

    Thanks!

    Thread Starter junx0r

    (@junx0r)

    I must mention I have a modified index.php if that makes any difference, since I am running it as a CMS.

    Thread Starter junx0r

    (@junx0r)

    And this is the permalink structure I use:
    /show.php/%category%/%monthnum%/%day%/%year%/%postname%/

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[WP2.7] Where can I get help?’ is closed to new replies.