by Garth | Mar 17, 2019 | PHP, Wordpress
<?php $category = get_terms(‘gallery_albums’);//custom category name foreach ($category as $catVal) { $AlbumName[] = $catVal->name; } echo “<pre>”; print_r($AlbumName); echo “</pre>”;...
by Garth | Mar 6, 2019 | Plugins, Wordpress
Album Gallery – WordPress...
by Garth | Mar 4, 2019 | PHP, Wordpress
<?php $category = get_terms(‘task_categories’);//custom category name foreach ($category as $catVal) { echo ‘<h2>’.$catVal->name.'</h2>’; } ?>
by Garth | Jan 9, 2019 | PHP, Wordpress
WPBeginner function posts_for_current_author($query) { global $pagenow; if( ‘edit.php’ != $pagenow || !$query->is_admin ) return $query; if( !current_user_can( ‘edit_others_posts’ ) ) { global $user_ID; $query->set(‘author’,...
by Garth | Dec 12, 2018 | Snippets, Themes, Wordpress
Create these files first functions.php style.css style-mobile.css script.js for functions.php <?php function my_theme_enqueue_styles() { $parent_style = ‘../Divi’; wp_enqueue_style( $parent_style, get_template_directory_uri() . ‘/style.css’...
by Garth | Dec 7, 2018 | Plugins, Wordpress
Really Simple...