Forums

[resolved] Functions.php update_option for permalinks? (2 posts)

  1. lloydhumphreys
    Member
    Posted 9 months ago #

    I've migrated a site but my permalinks are broken (so nav is broken). I'll assume this is the prettylinks stuff I read up on and not copying the .htaccess file, but I don't have access to it so I think this is my only option.

    If you type the siteurl incorrectly you can reset them using

    update_option('siteurl','example.com')

    Does something similar exist for resetting permalinks to their standard ?page_id=123 state? Can I reset my permalinks some other way?

    Thanks

    Lloyd

  2. lloydhumphreys
    Member
    Posted 9 months ago #

    Figured it out with some more Googling

    update_option('permalink_structure','%id%')

Reply

You must log in to post.

About this Topic