[WP2.7] Where can I get help? (7 posts)

  1. junx0r
    Posted 6 years ago #

    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.

  2. 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.

  3. junx0r
    Posted 6 years ago #

    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?

  4. 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]
    # 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.

  5. junx0r
    Posted 6 years ago #

    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?


  6. junx0r
    Posted 6 years ago #

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

  7. junx0r
    Posted 6 years ago #

    And this is the permalink structure I use:

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.