how to display sidebar on pages in wordpress
-
21-04-2021 - |
Вопрос
I want to display custom field's content in the sidebar on specific pages in WordPress so can anyone have an idea about it then please share it with me.
Thanks In Advance...
Решение
First you have to register the sidebar if you haven`t done yet with register_sidebar( $args );
, then display it in the page: dynamic_sidebar( $sidebar );
see documentation at: https://codex.wordpress.org/Sidebars
Не связан с wordpress.stackexchange