Home Forums WC Vendors Pro Support ACF – Error in Knowledgebase

NOTICE: We've Moved to a Ticket System for Support

As of August 31, 2017 (12am EST) our support forums will be retired (read-only), and we will be moving to a support ticket system.  This will allow us to better organize and answer support requests, and provide a more personalized experience as we assist our customers.

For the time being, we will leave our forums open for reading and learning while we work on creating a more robust Knowledge Base for everyone to use.

If you are a WC Vendors Pro customer please open a support ticket here. 

If you are a WC Vendors user please open a support ticket on the Wordpress.org forums.

The information on this forum is outdated and in most instances no longer relevant. Please be sure to check our documentation for the most up to date information.

https://docs.wcvendors.com/

Thank you to all of our customers!

 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #11006
    Martin
    Participant

    as per acf docs and this thread:

    acf_form_head() MUST be placed before get_header() or more precise before the wp_head() function.
    otherwise any conditional logic won’t work.

    please update your docs accordingly.

    This generates an issues though. The function acf_form_head() should only be used on pages that have acf-fields.

    A solution could be to use a template for the dashboard and to place the following in the header (before the wp_head() function):

    if ( is_page_template( ‘template-dashboard.php’ ) ) {
    acf_form_head();
    }

    however, how can we distinguish the settings page? in the pro version the setting page would have the same template as the dashboard because the page is generated using the shortcode [wcv_pro_dashboard].

    #11023
    WC Vendors Support
    Participant

    Ben Lumley wrote that code, so let’s ask him: @benlumley

    ACF support is not “official” by us, we just added that to the KnowledgeBase because Ben Lumley wrote it and it worked well for him, so we posted it for everyone to use as well.

    Ben A. – (not Ben Lumley ;))

    #11038
    Martin
    Participant

    thx, just adding this for others not to scratch their heads 😀

    advanced custom fields is very widely used

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘WC Vendors Pro Support’ is closed to new topics and replies.
This website uses cookies to ensure you get the best experience on our website.