Settings Page

Support MB Views Settings Page

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #35985
    David JirverusDavid Jirverus
    Participant

    Hi!

    I'm having some problem with Settings Page + Custom field + View.

    Site:
    Wordpress + Woocommerce

    This is what I have done:
    1. Created Settings Page ( Sotnosen info )
    2. Created Custom Fields with Location = Page settings - ( Sotnosen info ) The custom fields I'm using is Tab, Text and Group. In Group I have fields type text.
    3. Created a View to loop the fields within the Group of the Settings Page

    {% set group = attribute( site, 'sotnosen-info' ) %}
    {% for clone in group.oppettider %}
    	INSERT SUB-FIELDS HERE
    {% endfor %}

    When I dump group I get array(0) { } even if I know there is content. Any ideas?

    #35989
    Long NguyenLong Nguyen
    Moderator

    Hi David,

    Can you please share the code that creates the custom fields and settings page on your site? If you are using the Builder, please follow this documentation https://docs.metabox.io/extensions/meta-box-builder/#getting-php-code

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.