• I’m not sure if this is a WordPress core problem or an ACF problem, but whenever I want to link a text to go somewhere, it duplicates the anchor tag. This is a strange problem and hasn’t happened to be before until now.

    Let’s say for example I want to link to Google.

    1. First I select the text onto which I want to put a link
    2. I type the link onto the URL field and press the Open link in a new tab button button
    3. When I press the Add Link button, I get a duplicate of the anchor tag
    • Example: <em><a href="https://google.ca" rel="noopener noreferrer" target="_blank">Google</a><a href="https://google.ca" rel="noopener noreferrer" target="_blank">Google</a></em>

    As of this posting, I’m using WordPress version 5.4.1 and ACF version 5.8.9 which are all the latest versions.

    Did anyone run across this? Would you know how to fix this issue?

    • This topic was modified 4 years, 10 months ago by Behnam Nikkhah.
    • This topic was modified 4 years, 10 months ago by Behnam Nikkhah.
    • This topic was modified 4 years, 10 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic
Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator bcworkz

    (@bcworkz)

    Where exactly are you adding a link and get that behavior? I tried in a normal “p” block and could not replicate your experience. If you are instead in an ACF field, what field has an Add Link dialog?

    Thread Starter Behnam Nikkhah

    (@bnikkhah)

    @bcworkz So it’s just a standard ACF WYSIWYG editor with content. Let’s say for example I want to cite the text Google to go to its site. So here are the steps I perform to add a link to Google on the ACF WYSIWYG editor.

    1. First on the ACF WYSIWYG editor, I click on the left side of G and drag my mouse (or use keyboard shortcuts) to e to select the text Google
    2. On the WYSIWYG editor, there is a link button on the top right of the editor to add a link to that text. I click it.
    3. Now we get the typical WordPress Insert/edit link dialog box
    4. I type in the link in the URL field and when I’m happy with it, I click the Add Link button to confirm.
    5. The dialog box disappears and now I see two anchor links (duplicate)

    Here’s a loom video to better explain everything I wrote above in a video format.

    Thread Starter Behnam Nikkhah

    (@bnikkhah)

    Hi guys. Looks like this was an ACF issue. When I updated my ACF to version 5.8.11, the problem is now gone. Thanks to everybody that took a look at this.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Duplicate Link Problem’ is closed to new replies.