WordPress.org

Ready to get started?Download WordPress

Forums

Advanced Custom Fields: Nav Menu Field
[resolved] Function code crashes theme (3 posts)

  1. Jason Paul
    Member
    Posted 1 year ago #

    Is it possible that you've got an error in your function code?
    Should:
    add_action('acf/register_fields', 'my_register_fields');

    be something like:
    add_action('acf_register_fields', 'my_register_fields');

    (this is crashing my theme...but I'd really like to use this)

    http://wordpress.org/extend/plugins/advanced-custom-fields-nav-menu-field/

  2. Jason Paul
    Member
    Posted 1 year ago #

    Just wanted to follow up and note that my fix IS THE fix. The beauty of this plugin and that function is that all you need to do once activated is drop in the most basic ACF display code into your template file for this to work:
    <?php the_field('sub_nav'); ?>

  3. Faison
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Jason,

    I'm glad you were able to figure it out :D

    Thanks,
    Faison

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.