Add to wp-config.php:
define( 'DISALLOW_FILE_MODS', true );
Useful when managing plugin updates via Composer.
Add to wp-config.php:
define( 'DISALLOW_FILE_MODS', true );
Useful when managing plugin updates via Composer.
<div class="blog-navigation"><?php posts_nav_link( ' ', 'Previous', 'Next' ); ?></div>
.blog-navigation {
display: flex;
justify-content: flex-start;
padding: 1rem 0;
a {
@extend .button;
@extend .button--primary;
}
// Ensures Next button is always right aligned, even when no Previous button
a:last-of-type {
margin-left: auto;
}
}
Otherwise it falls back to echoing another menu (the first?) instead of nothing.
<?= wp_nav_menu( [ 'echo' => false, 'fallback_cb' => false, 'theme_location' => 'footer-2-a' ] ) ?: ''; ?>
<?php
$args = [ 'show_in_rest' => true ];
register_post_type( 'post-type-slug', $args );