WordPress.org

Ready to get started?Download WordPress

Forums

Custom Permalinks
Fixed a bug (3 posts)

  1. koneu
    Member
    Posted 2 years ago #

    I just discovered your very useful plug-in and wanted to put it into a site we're currently readying for production. Alas, I found a little bug that hits when the site is using a non-default table prefix.

    In the Query (on about line 165) you reference the wp_posts table directly, as opposed to using $wpdb->posts. This means that for our site, we always hit 404, without an error explanation. Applying the fix solved it, so we can now have the site up and running soon!

    http://wordpress.org/extend/plugins/custom-permalinks/

  2. dgeri
    Member
    Posted 2 years ago #

    I can't even tell you how much you saved my life, koneu.

    I changed:
    " wp_posts.post_status = 'publish' AND ".
    to
    " $wpdb->posts.post_status = 'publish' AND ".

    SAVED MY LIFE. THANK YOU!

  3. travxrose
    Member
    Posted 2 years ago #

    Hey guys,

    I'm having the same 404 issue without fail. I've searched for the phrase your referencing and I can find it. I'm looking in the file custom-permalinks.php... Is that not where I should be looking?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic