the_widget() – filter only one instance
the_widget() – filter only one instance
the_widget() – filter only one instance
customise template to only show custom post type entries
If I understand your question right, here is the code to show the list of page siblings (having the same parent). Call the function from the sidebar. <?php function show_page_siblings( $id ) { $parent_id = wp_get_post_parent_id( $id ); // show only on child pages if( 0 == $parent_id ) { return; } $siblings = get_pages( … Read more
I just checked your site, if you want to move the sidebar to the left, add this to your CSS. @media (min-width:992px) { .col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9 { float:right; } } In case you don’t know how to add CSS, check this out.
I’d guess that the get_sidebar() inside the loop is causing the problem. It should be outside the loop. The way it is now, one post is displayed, then you call the get_sidebar() code, which displays the sidebar stuff, then the loop continues with the next post. Move the get_sidebar() outside the loop.
WordPress CPT save metadata in gutenberg
Literally, you can place the widget code anywhere inside your theme files (except template files) and include them from functions.php file. functions.php is the only file that WordPress includes when you theme is active There is no best practice where you put them, but that doesn’t mean you should mess things up. It is best … Read more
How to display custom sidebar in wordpress 5.5.2
As I noted in my comment, you can use the negation operator, like so: if ( ! is_page( ‘phnom-penh’ ) ) { get_sidebar( ‘not-phnom-penh’ ); } else { get_sidebar( ‘phnom-penh’ ); } Note the ! before the is_page – that means NOT. Also note that if you use more than once condition via || or … Read more
This question has already been posted and answered: Follow Get a Sidebar up and Running from the WordPress doc, but use PluginDocumentSettingPanel instead of PluginSidebar.