function show_category(){ global $wpdb; $request = “SELECT $wpdb->terms.term_id, name FROM $wpdb->terms “; $request .= ” LEFT JOIN $wpdb->term_taxonomy ON $wpdb->term_taxonomy.term_id = $wpdb->terms.term_id “; $request .= ” WHERE $wpdb->term_taxonomy.taxonomy = ‘category’ “; $request .= ” ORDER BY term_id asc”; $categorys =...
index.php is a strictly required file. Its job is to render all of our theme’s front-end output. Since index.php will render all of our pages (home, posts, categories, archives), it will do a lot of work. First, we need a...
005
Comments (0)
Note: Please be respectful and civil in your comments Cancel reply
Comments (0)