This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1; | |
$postcount = 10; | |
$wp_query = new WP_Query( array( | |
'post_type' => 'post', | |
'posts_per_page' => $postcount, | |
'author' => get_current_user_id(), | |
'paged' => $paged | |
) ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*** Menambahkan Custom Class ke Widget ***/ | |
function lmd_widget_form_extend( $instance, $widget ) { | |
$row = ''; | |
if ( !isset($instance['classes']) ) | |
$instance['classes'] = null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @link http://webdevstudios.com/2015/03/30/use-cmb2-to-create-a-new-post-submission-form/ Original tutorial | |
*/ | |
/** | |
* Register the form and fields for our front-end submission form | |
*/ | |
function lmd_frontend_form_register() { |