WordPress Cheatsheet

A quick reference

Robert M Ricci
Jun 4 · 6 min read
Photo by Souvik Banerjee on Unsplash

THEMES

function wpb_custom_new_menu() {register_nav_menus(array(     'menu-2' => __( 'Menu 2' ),     'extra-menu' => __( 'Extra Menu' )) ); }add_action( 'init', 'wpb_custom_new_menu' );
<?phpwp_nav_menu( array('theme_location' => 'menu-2','container_class' => 'menu-two-class' ) );?>

PLUGINS

     <h2>  <?php the_field('name') ?>. </h2>

FORMS

gravity_form( $id_or_title, $display_title = true,  
$display_description = true, $display_inactive = false,
$field_values = null, $ajax = false, $tabindex, $echo = true );
gravity_form( 1, false, false, false, '', false );

CONCLUSION

Geek Culture

Proud to geek out. Follow to join our +1.5M monthly readers.