• So, I want to have custom URL link in some posts and I managed to do it with custom fields, but now the url comes with the main site url in front of the custom url (www.site.com/www.customurl.com…) How can I set the external url to not include my site url?

Viewing 3 replies - 1 through 3 (of 3 total)
  • When you made the code to display this, do you for some reason have a part that looks like:

    <?php echo bloginfo('url'); ?>

    followed by your url display from the custom field?

    Take that out. That is a wp function that displays your URL.

    Link?

    Also make sure your custom link starts with https://www.
    because some servers see “www” as local for some reason and treat it as a file and not an external link.

    Thread Starter elated

    (@elated)

    with https:// is fine. Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom field URL problem’ is closed to new replies.