Support

Account

Forum Replies Created

  • I have forked this repo and created a pull request for it. I’ve also contacted the author of this plugin.

    I’m not that much of a PHP hero, but willing to spend some time to make this working. If either you or the original author can point me in the right direction, then hopefully people can use this again 🙂

  • Hi Elliot,

    I’ve been looking into this issue again this evening.

    It appears to be caused by this ACF extension which you mention on your extions page: https://github.com/stormuk/Gravity-Forms-ACF-Field/

    This thing is causing havoc and ACF will not work correctly as soon as I add a gravity forms field to my field group. You might wanna look into that.

    Thanks,
    Marcoevich

  • Hi @elliot,

    Before I forget to tell you: I have found the solution for my problem, which was actually rather simple 🙂 Found it by looking closely at your documentation.

    It is possible to update all fields on all pages using the options page! I simply had to add the attribute ‘option’ to the fields themselves! Like so:

    <?php the_field('opslogan', 'option'); ?>

    Works like a charm now 🙂

    The only thing I couldn’t find in the docs is how to use this option attribute in a shortcodes field. I’ve tried it like this, but this is not working:

    <img src="[acf field="usp1" "option" post_id="43"]" alt="usp" />
    

    Also options without quotes, or after a comma doesn’t seem to work.

    Do you have any tips on getting shortcode fields to work with the options pages?

    Thx in advance!

  • Hi @elliot,

    Well, what I’m try to achieve is basically exactly what you’re doing in your instruction video. http://www.advancedcustomfields.com/add-ons/options-page/

    A few posts back in this thread I asked you if my existing fields where compatible with options page plugin. I think this caused me to expect things from the options page that won’t work out of the box.

    I shall have another look at your docs and the video. I think I just have to delete my existing fields and replace them with options page fields.

  • @elliot What am I doing wrong?

    I create a new options page called ‘Global – Footer’.

    In my existing custom field group, I set the ‘show this field group if’ to options page ‘Global – Footer’.

    Now, when changing ANY value on the options page, this is not changed in the actual field group.

    In the above post I sugested if I should remove all information from the existing field groups, and fill them in again in the options page. Well, I did that for one field, but the field stays empty. Options page isn’t doing anything.

    Am I forgetting something?

  • Hi @elliot,

    When converting a group of normal ACF fields (that are used on multiple pages) to options page fields, there is one field in that group that I’d like to update on all pages, using the new options page I created.

    However, I see now that changing something in the options page doesn’t have any effect on those fields..

    Is it really nescessary to delete all information inside all fields in that group in order to change them with the options page? That would be a huge task lol.

    I’d love to hear if there’s a workaround for that 🙂 How can I force my options page to change the information in those fields?

  • That explains a lot yes. I guess I’ll have to be patient then. For now I’ll create my options in one options page.

    Any idea when multiple options pages support will be available?

    Thx for your support Elliot.

    Regards, Marcoevich

  • I see you have a Global Settings in your settings menu, instead of directly in the admin menu on the left hand side. Did you use the wordpress add_menu function for that?

    I’d like to have my 3 menu’s directly in the dashboard menu. But I can’t get it to work yet.

  • Sorry for not replying earlier, been very busy.

    I can see only one of my menu’s. The 2 other’s simply won’t display..?

  • Thx for your reply Elliot.

    It seems like I do get some errors on the edit post page:

    Notice: Undefined index: autosave in /wordpress/wp-includes/class.wp-scripts.php on line 169

    Notice: Trying to get property of non-object in /wordpress/wp-includes/class.wp-scripts.php on line 169

    I think that is because I disabled autosave a long time ago, but this shouldn’t be related to your options page menu, right?

    There are also 2 errors related to a plugin, which is working fine btw:

    Notice: Undefined variable: options in /wordpress/wp-content/plugins/dropdown-menu-widget/shailan.DropDownMenu.php on line 48

    Warning: Invalid argument supplied for foreach() in /wordpress/wp-content/plugins/dropdown-menu-widget/shailan.DropDownMenu.php on line 239

    I run these codes in the functions.php of my child theme, but they are in the root of that file. That shouldn’t be a problem, right?

  • Hi @elliot,

    I have followed this tutorial to create multiple options pages: http://www.advancedcustomfields.com/resources/functions/acf_add_options_sub_page/

    I have a seperate design for my homepage and all the other pages. So I thought I’d create multiple options pages for that:

    Home
    – Home Header
    – Home Content
    – Home Footer

    Global
    – Header
    – Content
    – Footer
    – Portfolio

    Special
    – Search results
    – Order form
    – Error 404 page

  • Hi @elliot,

    I have bought your options page plugin 🙂

    Got one question about creating multiple options pages. I want to create multiple, each with it’s own menu, to keep things simple for the client rather than having a huge list of field groups for one option page.

    It would be helpful if I could just page 3 of those blocks with a different name for the options page:

    function homepage_acf_options_page_settings( $settings )
    {
    	$settings['title'] = 'Homepage Settings';
    	$settings['pages'] = array('subHeader', 'USP_Icons', 'subFooter');
     
    	return $settings;
    }
     
    add_filter('acf/options_page/settings', 'homepage_acf_options_page_settings');

    But I guess that isn’t possible. So I tried this:

    if( function_exists('acf_add_options_sub_page') )
    {
        acf_add_options_sub_page(array(
            'title' => 'Global Settings',
            'parent' => 'options-general.php',
            'capability' => 'manage_options'
        ));
    }
    

    Now the options page for Global Settings won’t show up.

    Are there any more tricks I can do to create three different options pages?

    Thanks in advance! 😉

    Best regards,
    Marcoevich

  • Ok, thx for the heads up Elliot!

    Best regards,
    Marcoevich

  • Hi @admin,

    Thx for your reply!

    You said there will be a pro version with ACF v5. When will that version be available, and what will be the improvements over your options page plugin? Would you advice me to wait for that pro version, or should I go for the options page plugin?

    Thank you very much 🙂

    Marcoevich

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