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

    • Elliot

    • August 22, 2013 at 2:41 pm

    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)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.