WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Custom Permalinks] Fixed a bug

[Plugin: Custom Permalinks] Fixed a bug

  • 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/

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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!

    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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Custom Permalinks] Fixed a bug’ is closed to new replies.