Skip to content

Instantly share code, notes, and snippets.

Avatar

Robbie Mathieu rob-mathieu

View GitHub Profile
@rob-mathieu
rob-mathieu / widget-recent-posts.php
Last active Jan 25, 2020
A customized recent posts widget for WordPress. Find the full tutorial for implementing the widget in my blog.
View widget-recent-posts.php
<?php
/**
* Widget for a Recent Posts
*/
// Register and load the widget
function load_custom_widget() {
register_widget('Custom_Recent_Posts_Widget');
}
You can’t perform that action at this time.