• Resolved publicradio

    (@publicradio)


    I don’t know what to do. I have put the whole network into safe mode, switched themes and switched off all the plugins. My code on dev appears to match prod, the config files seem the same, and yet on dev, when I go to edit an attachment, the permalink shows a link to the attachment URL. On prod, the permalink shows the path to the file itself.

    This is a problem because my templates are meant to have links to attachment pages, and now they don’t work because get_permalink() is returning the URL of the file and not the attachment. What could have happened here? I have even disabled mu-plugins. I’ve done everything I can think of.

Viewing 1 replies (of 1 total)
  • Thread Starter publicradio

    (@publicradio)

    I figured it out. I am running Relevanssi (premium) on all sites and there’s an option in the attachments tab to redirect attachments to the files themselves. This universally replaces get_permalink(). Also, when I enable WP Safe Mode, for whatever reason Relevanssi keeps running. Manually deactivating it fixed the problem.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.