Viewing 15 replies - 1 through 15 (of 24 total)
  • Try re-saving your permalinks.

    If that doesn’t help, try one of the default permalink settings (not off), one of the standard structures.

    Thread Starter Stef Verbeeck

    (@twizted)

    I tried that, it resulted in my site no longer working as it should, all pages (including the feed) returned a 404 error.

    Ok so what are your permalink settings set to currently?

    Thread Starter Stef Verbeeck

    (@twizted)

    /%postname%

    Try using /%postname%/

    I use that on one of my test installs, and all the feed URLs you’ve shown above work with fine for me..

    Thread Starter Stef Verbeeck

    (@twizted)

    Changed the setting, problem stays the same. Only the category feed works for me.

    Feed validator says it’s still broken too: https://validator.w3.org/feed/check.cgi?url=http%3A%2F%2Fwww.twizted.be%2Ffeed

    Any plugins installed?

    Try disabling plugins, re-saving the permalinks (after deactivation) and see if there’s a change.

    Thread Starter Stef Verbeeck

    (@twizted)

    Disabled all plugins, re-saved permalinks. No change…

    Have you added any custom rewrite rules, or installed anything that writes extra rules into WordPress?

    I can only see it being one of two things..

    1. A custom rewrite rule
    2. A conflict/problem with the rules in the rewrite array

    If you’ve not got any custom htaccess rules setup, can you place this into one of your theme files (index.php is probably easiest)..

    <?php
    print '<!-- code to copy ' . "\n" . '<pre>';
    print_r( get_option('rewrite_rules') );
    print '</pre>' . "\n" . 'end code to copy -->';
    ?>

    Then load up a page that uses that file, and look in the source code of the page, you should see a large array of data enclosed inside the “code to copy” area… copy it, place it into a pastebin, and report the link back here.

    That’s just so i can take a look at your rewrite array… You can ignore this process if you have your own custom htaccess rules, as it may be something with those.

    Thread Starter Stef Verbeeck

    (@twizted)

    Sorry for the delay. Meanwhile I’ve downloaded the contents of my .htaccess file, and although I’m not an expert, I don’t think it has anything out of the ordinary, right?

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

    I tried pasting the code you provided in both my theme’s index.php and header.php, but with no results, all I see in the code is an extra blank line where the array should appear…

    You should at the very least see..

    <!-- code to copy <pre></pre>end code to copy -->';

    ..in the source..

    I purposely added a few words into the comments to make it easy to find.. so you should see more then a single blank line, even if there’s nothing in the array..

    Thread Starter Stef Verbeeck

    (@twizted)

    Okay, so now I’ve pasted this code in my footer.php file, ut all I get is plain text, no array. ??

    <!-- code to copy <pre></pre>end code to copy -->

    Are you sure that’s what you see, that shouldn’t all be on one line..

    Being empty would indicate you don’t have any rewrite rules, in which case no permalinks would work, so that can’t be the case.

    Are you familiar with PhpMyAdmin?

    Thread Starter Stef Verbeeck

    (@twizted)

    That’s all I see, it is on 3 lines like such:

    <!-- code to copy
    <pre></pre>
    end code to copy -->

    No info there, though my permalinks work as they should using /%postname%

    I am familiar with PhpMyAdmin, yes.

    Can you export the rewrite rules for the options table and post it into a pastebin for me?

    Easy way would be to run this SQL query in Phpmyadmin (after selecting your wordpress db from the left)..

    SELECT option_value
    FROM wp_options
    WHERE option_name = 'rewrite_rules'

    You should get one result.. and below that some text that reads.

    With selected:

    To the right of that are three icons, the third one is “export”.. looks like an icon of a page

    NOTE: Above query assumes default prefix, adjust if/where appropriate.

Viewing 15 replies - 1 through 15 (of 24 total)
  • The topic ‘RSS feed only works for categories’ is closed to new replies.