Support

Account

Home Forums Add-ons Options Page Options page fine on home but not internal page

Solved

Options page fine on home but not internal page

  • Option fields don’t display in widgetized sidebar. On the homepage they work great, here is what I have:

    <?php the_field(‘percentage_raised’); ?>

    I have placed this in my homepage template. I then tried to place it in my sidebar.php template, the field doesn’t show, is there anything in particular I need to do when placing within my sidebar?

    Thanks

  • Hi @iamjustoneman

    Your code should not work. You need to sue ‘options’ as a second parameter.

    Please read the docs for loading values from the options page.

    Thanks
    E

  • Thanks Elliot,

    For anyone else coming across the post, all I had to do was:

    <?php the_field(‘percentage_raised’,'option'); ?>

    and it worked.

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

The topic ‘Options page fine on home but not internal page’ is closed to new replies.