fromthe80s
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Forum: Fixing WordPress
In reply to: PHP Deprecated notice when updating to PHP 8@jcastaneda this is not a plugin or paid theme, no one to reach out to. Custom code from an inherited site.
@mkarimzada Yes very helpful. The last comment in the 2nd link, implies that I can drop the
nullwithout implications.This should be true for my initial code example as
$contentis echoed to the page.I have several other shortcodes with
($atts, $content = null, $shortcode_tag)where$contentis not used in the function. Are there implications to drop the null in these cases?- This reply was modified 4 years, 4 months ago by fromthe80s.
- This reply was modified 4 years, 4 months ago by fromthe80s.
Forum: Developing with WordPress
In reply to: Different Menus for multiple PagesI agree 100% with your initial disclaimer and appreciated the code examples. I needed to migrate a page quickly while practicing a bit of PHP and this will do. Many Thanks!
Forum: Developing with WordPress
In reply to: Different Menus for multiple PagesActually this is what I what to achieve with the menu navs rather.
In site-nav.php:
<?php if ( is_page(3)) : wp_nav_menu([ 'theme_location' => 'auto', 'menu_class' => 'navbar-nav nav' 'container_class' => 'navbar navbar-s-page' ]); elsif ( is_page( array[1, 4])) : wp_nav_menu([ 'theme_location' => 'motorcycle', 'menu_class' => 'navbar-nav nav' 'container_class' => 'navbar navbar-s-page' ]); else : wp_nav_menu([ 'theme_location' => 'primary', 'menu_class' => 'navbar-nav nav' 'container_class' => 'navbar navbar-s-page' ]); endif; ?>
Viewing 3 replies - 1 through 3 (of 3 total)