Forums

[resolved] Social links problem: <a href=”http://digg.com/submit?phase=2&url=<?php the_perm (3 posts)

  1. dominoeffect
    Member
    Posted 4 years ago #

    Hi all,

    I found this sweet guide for setting up social bookmarking links at the base of your post using the following example of code:

    <a href=”http://digg.com/submit?phase=2&url=<?php the_permalink() ?>”>DIgg it</a>

    However for some reason it doesn't accept this as an outside link, and it produced something like this:

    http://MY-DOMAIN.com/%EF%BF%BDhttp://digg.com/submit?phase=2&url=http://MY-DOMAIN.com/?p=11%EF%BF%BD

    Does anyone know why this might be happening? I really hope to sort it soon before I relaunch my site.

    Thanks!!!

  2. Otto
    Tech Ninja
    Posted 4 years ago #

    Make sure that your quotes are normal quotes and not smart quotes. Like this:

    <a href="http://digg.com/submit?phase=2&url=<?php the_permalink() ?>">Digg it</a>

  3. dominoeffect
    Member
    Posted 4 years ago #

    Thanks Otto42!!!

    Problem solved.

Topic Closed

This topic has been closed to new replies.

About this Topic