Handbook Examples: Code Section

Beginning today, we will be discussing examples for the handbook requirements. Ultimately, these examples will end up on the Explanations and Examples page in the handbook.

Each week, we’ll focus on various sections. This week’s section is the Code section. What we need from everyone is to provide examples in the below comments. The admins will round up the examples and add them to the handbook.

Code section examples

I’ll get us started with a couple of examples just to get the ball rolling.

Required: Have a valid DOCTYPE declaration and include language_attributes.

<!DOCTYPE html>
<html <?php language_attributes(); ?>>

Required: No shortcodes are allowed.

The use of the add_shortcode() function is not allowed in themes as shown below:

add_shortcode( 'shortcode_name', 'shortcode_callback_func' );