Support » Plugin: ACF: Sidebar Selector » How to use in page template

  • Resolved jphogan


    I looked through your readme files and couldn’t find what to use to include this in a page template. I am familiar with advanced custom fields and simply put this where I want to use the field

    if (get_field('the_field_name')) {

    When I include the get_sidebar();, how do I include your plugin?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author danielpataki



    Sorry about not replying, I wasn’t receiving notifications! You’ll need to merge the two things you mentioned, something like this:

    get_sidebar( get_field('the_field_name') );

    Sorry for being so late!


    Hi danielpataki,

    i included the above
    get_sidebar( get_field('the_field_name') );

    offcourse changed the “the_field_name” to my corresponding field i created but nothing is showing.

    Are there any new changes?

    Ok i just resolved it,

    for anyone who is kicking themself why this is not working the proper code is

    dynamic_sidebar( get_field('the_field_name') );

    So its dynamic_sidebar and not get_sidebar

    Hope this helps anyone out there.

    p.s danielpataki you really should include a simple to use tutorial for how
    to implement the code into their templates in order to show the sidebars.

    Thread Starter jphogan


    Thanks @lolosland!



    Thanks again @lolosland

    Plugin Author danielpataki


    Hi Guys,

    Oh, I’m so sorry about that, I didn’t notice the answers here, I now have emails sent to me about support stuff 🙂 Yes, @lolosland is completely right, sorry again!


Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to use in page template’ is closed to new replies.