Support

Account

Forum Replies Created

  • it works! also this code works!

    if( function_exists(‘acf_add_options_sub_page’) )
    {
    acf_add_options_sub_page( ‘Header’ );
    }

  • hmm, the folder which contain the acf-option-page.php is inside my theme (themes/mytheme/acf-option-page) and the code (include_once(‘/acf-options-page/acf-options-page.php’);) is place in my function.php (themes/mytheme/function.php).

    thanks

  • hi Silveredge, yes its a function.php which is inside my theme directory…

    Maybe thats the problem?

  • Thanks elliot,

    This is exactly what it looks on my function.php

    include_once(‘/acf-options-page/acf-options-page.php’);

    add_filter(‘acf/options_page/settings’,’my_options_page_settings’);

    function my_options_page_settings( $options )
    {
    $options[‘title’] = __(‘Options’);
    $options[‘pages’] = array(
    __(‘Contact Information’),
    __(‘Carousel Slider’)

    );
    }

    And also this is the code u suggested (function.php)

    include_once(‘/acf-options-page/acf-options-page.php’);

    if( function_exists(‘acf_add_options_sub_page’) )
    {
    acf_add_options_sub_page(array(
    ‘title’ => ‘Footer’,
    ‘parent’ => ‘options-general.php’,
    ‘capability’ => ‘manage_options’
    ));
    }

    ——————–

    Both return an error… Forgive me if i’m too damn for doing this code.. Im a Front-end / Graphic Designer.

Viewing 4 posts - 1 through 4 (of 4 total)