Make a Widget in WordPress
How to make you own widget in a theme for WordPress
A collection of 23 posts
How to make you own widget in a theme for WordPress
Inject parameter that control pagination of query result so that search.php can display paginated result
Base * Starter Theme: Underscore * General CSS and Layout: Bootstrap * Plugin Activation(requires plugins within theme): TGM Plugin Activation Plugins (Development Purpose) * Theme Customizer: Kirki * Template(/Page) Custom Field: ACF Plugins (Utilities) * SEO: Yoast (Breadcrumb) * Form: Contact Form 7 * Social Media Sharing: Addthis * Analystics: Baidu Tongji + Google Analystics * Functions Editor: My
Replace the default Old-New Pagination with Numbered Pagination Code <?php // Do not include the opening php code function numeric_pagination ($pageCount = 9, $query = null) { if ($query == null) { global $wp_query; $query = $wp_query; } if ($query->max_num_pages <= 1) { return; } $pageStart = 1; $paged = $query->query_vars[
Plugin My Custom Functions Simply put, the code injected with the plugin will be appended to functions.php Code // Below code will add <script> with wp_head hook to relative location function analytics_code() { ?> <script> // JS tracing code block </script> <?php } add_
Sagar Nangare Reference Block none-business(/Free/Certain) address from using the contact form Code (function.php) function varified_email($email){ if( preg_match('/@gmail.com/i', $email) || preg_match('/@hotmail.com/i', $email) || preg_match('/@live.com/i', $email) || preg_match('/@msn.com/
Reference Customiser Object Four main types Panels Containers for sections Sections UI containers Settings Accociate UI elements(controls) with settings $wp_customize->add_setting( 'setting_id', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options&
Reference Key Setting Arguments: --cache --update $FileName$:$FileParentDir$/$FileNameWithoutExtension$.css