That will happen if the link doesn’t include http:// in it. For example, if the user has entered just linkedin.com
into the field. In that case <a href="https://wordpress.stackexchange.com/questions/284064/linkedin.com">
will be treated as a relative link by the browser.
Use esc_url
on output to ensure a full valid URL with protocol is output:
<?php echo esc_url( $directors['linkedin'] ); ?>
PS: The URL field in ACF, rather than just a text field, has validation that would help with this.
Related Posts:
- Adding jquery and thickbox to WordPress theme
- Get ACF value in external jQuery document
- JSON output returns page source code [closed]
- get value from selected input
- oEmbed Video in Modal
- inner anchor scrolling with wordpress
- Get with jQuery the value of an ACF field
- Accessing Advanced Custom Fields with Repeater using jQuery instead of PHP
- How to set time delay in javascript
- Disable button in jQuery
- JavaScript: filter() for Objects
- Is jQuery $.browser Deprecated?
- jQuery date formatting
- $ versus jQuery
- How to center image in carousel
- jQuery dynamic selector
- How to pass $(this) properly in click jQuery function
- How to remove specific value from array using jQuery
- how to remove default jquery and add js in footer?
- CSS not pulling in for jQuery UI dialog
- Check if jquery library exist
- Loading style.css and Jquery using HTTPS
- Access Customizer’s DOM – jQuery
- Media manager multiple selection
- Uncaught TypeError: Cannot read property ‘replace’ of undefined
- How to include jQuery properly?
- How to load whole WordPress pages dynamically with AJAX/jQuery like this following website?
- Creating custom AJAX requests
- How to pass jQuery ajax URL value
- trigger(‘change’) not working
- how to get the comment ID in the front end when the REPLY button is clicked?
- Gravity list field override and adding javascript [closed]
- Change header image loaded by jQuery to use HTTPS
- Admin wp_ajax hook returning 0
- Need To Deregister Scripts Via Functions.Php
- Add a Fancybox automatically to post type “post” images
- enqueued script with jquery dependency not getting jquery
- Uncaught TypeError: jQuery is not a function
- WordPress customizer refresh screen after save
- Creating multiple enclosing shortcodes and fixing JS issues on click
- Include jQuery plugin in WordPress
- Hide metabox dependant on page template chosen
- Trying to remove duplicate jquery scripts
- How to make an WordPress element sticky? [closed]
- I want to import my Json file into a custom made display-modal. How do i link my Json file?
- Frontend Post with JQuery AJAX to Php Issue
- How do I remove WordPress Custom Menus hover event and replace it with jQuery onclick?
- How to get all users by custom current user meta (array)?
- wp_dequeue_script not working in my plugin
- jQuery script isn’t posting to database
- $.browser Undefined Seemingly Causing Faulty Page Display
- Loading scripts on a single page plants the script in the footer
- jQuery Show DIV and Remove Button [closed]
- timeouts (ERR_CONNECTION_RESET) on seemingly random files after upgrading to HTTPS
- Moving jQuery to footer from header
- jQuery plugin not loading
- Flexslider won’t work with WordPress’ jQuery | Dependencies
- Applying jquery to WordPress admin edit.php
- Search query with Ajax
- admin ajax php success returns 0
- Load an action which is in an url with Jquery
- After inserting jquery weather code, my responsive menu is lost
- Tabbed content for WordPress sidebar
- Selecting multiple options onclick
- my example with ajax doesn’t work
- Best way to add some custom javascript using jquery to a child theme
- jQuery works in console but not when in a file
- Cannot remove error “Conflict with another plugin which overwrites jQuery” from wordpress site
- WordPress not showing jQuery
- wp_deregister_script(‘jquery’) not working
- Loop through WordPress API response errors
- Add JQuery As Code Snippet
- How Do I change Markup of a link in WordPress
- How can publish my bootstrap created table ( huge amount of data) on my word-press theme?
- My website frequently redirect to a different advertisement URL
- Javascript when Customizer preview is ready/refreshed?
- Jquery scroll animate offset asynchronous
- JQuery toggle in Visual Composer
- WP Media Uploader modal conflicts with Bootstrap modal
- Javascript function to switch out images
- How to add a custiomized javascipt into a template
- Enqueue javascript that inserts custom php widget into jQuery-constructed div
- jQuery does not appear to be enqueued on static homepage
- Uncaught TypeError: Object [object Object] has no method ‘dialog’
- JQuery multiple toggle values
- How to pass more information though separate post keys via AJAX
- Adding jQuery timepicker to contact form
- Rollover Image jQuery help
- Loop not appending through infinite-scroll ajax call
- wp_register_script Question
- Add mark-up after/before link in wp_list_categories
- Need help with adding jQuery script to WP and calling script to page
- How to add gif as preloader in wordpress?
- Drop Down Category Menu Not Working
- Monarch JS has not been loaded. After changing the $dep parameter, it start being loaded
- controlling the showing and hiding of the website logo
- Combo box populating a DIV using ajax/jquery
- How to Add jQuery cod in wordpress [duplicate]
- can’t make jQuery work (change image on time interval) [closed]
- jQuery datepicker not showing on admin menu