Add links metabox to custom post type (3 posts)

  1. Don Betts
    Posted 3 years ago #

    I'm creating a site for an annual lecture series (http://slatermaguirelectures.ca)and want to display links to external sites for lecturers online works in each lecturer post.

    I've created a custom post type for lectures but I'd like to add a place in the admin of custom post type for the user to add several external links that would display on the specific post. I'd like the user to input the name of the link and the url in separate metaboxes, but only display the link name on the site - like the built in link manager does.

    Any thoughts appreciated.

  2. watermelonkid
    Posted 3 years ago #


    Use the above to do stuff like that all the time. Set up a field group with either multiple text boxes for as many links as you want to allow (or just use the handy Repeater field type). For the field group, you can set ACF to only put those text boxes for Post Type of Lectures.

    Make sense? Great tool that I use on almost every site I build now.

  3. Don Betts
    Posted 3 years ago #

    I'll check it out. Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic