Mar
Mar

Simple social connect with Advanced Custom Field Links (ACF Links) and Font Awesome

social-connect-links-sm_7Need to spin up a simple connection tool for a new WordPress project you’re working on? ACF Links (advanced custom field links) might do the trick.

I’m working on a new site with a lot of really cool functionality. One of the things we’re doing is creating a custom post type for a “staff member”, and part of that post type is having a selection of fields where a content manager can simply place the link to the staff member’s profile and have it display on their profile page.

I wanted this to be super easy and straight forward for the person working with the profiles in the future, so I used Advanced Custom Fields to create a set of custom fields, each one for a separate social media platform.

The custom fields look like this:

acf-font-awesome

Pretty simple. Just text fields with no formatting, each labeled appropriately for the social network I’m trying to connect, so visitors can click through to their profiles.

Next is the code that I put in to my template.php file to render those links. This is what that looks like:

This too, is pretty straightforward. I’ve got each one set up with a Font Awesome icon link as the link.

Then we get an output that looks like this:

output

Simple, straightforward, and to the point.

See Also:

How To Create A Digital Course

Aug

"Creating a digital course is easier than it’s ever been, and it can be the thing that takes your business from something that you dabble in as a side hustle to something that earns life-changing money for your business. Here’s how you can create your own digital course in 17 easy steps: Cultivate belief that […]"

Keep Reading...

The Three Main Factors Affecting the Cost of Your Website Project

Apr

"Let’s talk about the question, “How much does a website cost?” Back when I was first getting started learning about online business I had no idea how much a website would cost to build and I had no money, so I just decided I was going to dig in and learn how to do it […]"

Keep Reading...

5 Major Reasons You Should NOT Hire a Website Designer

Aug

"Want to know how to make an enormous mistake when you’re getting started with a new website? Just hire a website designer before you need them. You may be thinking, “but isn’t that what you do – web design & development?” Yep – it’s what I do all day, every day. Hiring a website designer […]"

Keep Reading...

How to write compelling content for your new blog

Jun

"We’re going to talk about what kinds of blog posts you need to create in a minute, but first we have to answer the question, “What content should be on a website?” Let’s talk about the pages that you need on your website first. STEP 4: Create compelling content for your new blog Create your […]"

Keep Reading...

Is ClickFunnels Legit? Read This First!

Apr

"Is ClickFunnels legit? It’s a fair question. There’s a lot of hype and a lot of people desperate for you to sign up using their affiliate link. And that’s probably at least part of the reason why you’re suspicious. And you’d be right to be at least a little concerned. But not about ClickFunnels. But […]"

Keep Reading...

Do I have to use WordPress to start a blog?

Jun

"You don’t have to use WordPress when you’re starting a new blog. WordPress is the industry-standard for good reason, but it’s not the only choice. There are a lot of alternatives to WordPress if you want to try something else. But keep this in mind: When it comes to finding advice about growing your blog […]"

Keep Reading...

How To Choose A Web Host

Sep

"Great web hosting comes down to four things: great support, great performance, great security and scalability. Now that you have chosen your new domain name, it’s time to talk about hosting your website. But you may be wondering: “what is web hosting?” Think about it this way. Your domain name is the equivalent of your […]"

Keep Reading...

How To Install & Configure Contact Form 7 | How To Make A WordPress Blog Step-by-Step 2020

Mar

" Looking to learn step-by-step how to install & configure Contact Form 7? You’re in the right place! Everyone needs to have a form on their site, even if it’s just for providing your visitors a simple and easy way to contact you without exposing your email address to spam bots. There are a bunch […]"

Keep Reading...

Website Content & Copywriting Costs

Sep

"One of the most important factors that often gets overlooked is the cost of copywriting. The visual design approach to a website is definitely important, but nothing is more important than the words on the page. Great content and great copy is a highly specialized skill. Consider the most persuasive pages you’ve encountered when you’ve […]"

Keep Reading...

Getting Ideas For Buying Expired Domain Names?

Sep

"Getting Ideas For Buying Expired Domain Names? So we’ve covered a lot so far. You’ve got a few ideas, but you need some inspiration. Here are a few sources where you can generate some ideas for your domain name Domain Tools – Find some great suggestions by starting with your idea, or keyword ideas Domainr […]"

Keep Reading...

Join The
Conversation

Leave a Reply

Your email address will not be published.

Name (required)