Create a desk in WordPress with out plugin or code
You possibly can obtain this utilizing Shortcodes within WordPress. Including them is comparatively easy. A fundamental working instance of making this shortcode within your theme capabilities.php is as follows.
operate _my_theme_sc_table( $atts, $content material ){// Normalise the attributes:$a = shortcode_atts(array('cols' => 4), $atts);// Now extract the content material (will probably be a CSV of things):$cells = explode(',', $content material);$numCells = depend($cells);$rows = ceil( $numCells / $a['cols'] );$html = '
'.( ($index < $numCells) ? trim($cells[$index]) : '' ).' | ';}$html.= '
Utilization is as follows:
c1, c2, c3, c4, c5, c6 |