Forums

Broken Link Checker
Custom Fields Cause Phantom Broken Links (4 posts)

  1. billybitmap
    Member
    Posted 3 months ago #

    I'm checking a custom field for broken links. Each field causes a 404 in the report, even if there are no links in the custom field.

    The custom field is an optional text field which can be filled out in addition to the main editing area on a page. (It stores text for a sidebar area.)

    In the broken links report:

    • The "Link Text" column shows the variable name for the custom field. (Not sure if that's normal.)
    • The URL column shows a malformed link. The link starts with the full address of the page that the custom field is associated with. The text of the custom field is then appended to the link.

    For instance, let's say the text "More turtle info" is stored in the custom field for the page at "http://myblog.com/turtles/". This will cause the plugin to think there's a broken link with the URL: "http://myblog.com/turtles/More turtle info"

    The entry for the custom field in the database doesn't look strange.

    Has anyone seen this before? Any suggestions?

    http://wordpress.org/extend/plugins/broken-link-checker/

  2. sickhippie
    Member
    Posted 1 month ago #

    I just ran into this same issue. I use ACF to create my custom fields, and fixed the issue by selecting 'field groups' instead of manually entering the custom fields. Switching your custom fields to field groups should fix the issue.

  3. billybitmap
    Member
    Posted 1 month ago #

    Thanks SickHippie.

    I didn't realize that "field groups" would check the same content. I appreciate the reply. :)

  4. billybitmap
    Member
    Posted 1 month ago #

    Just tried adding a bad external link to a custom field and then doing a "re-check all pages". Unfortunately the plugin didn't catch the bad link.

    Does anyone know what the difference between "custom fields" and "field groups" is on the "look for links in" tab in the settings?

Reply

You must log in to post.

About this Plugin

About this Topic