how to display sidebar on pages in wordpress
-
21-04-2021 - |
Domanda
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...
Soluzione
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
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a wordpress.stackexchange