Skip to content

Instantly share code, notes, and snippets.

View DJIO's full-sized avatar

Dionizio Bach | DJIO DJIO

View GitHub Profile
@DJIO
DJIO / random_testimonial_widget.php
Created April 1, 2012 22:39 — forked from BronsonQuick/random_testimonial_widget.php
A WordPress widget to generate random Testimonials from the Testimonials Custom Post Type
<?php if( ! class_exists( 'Testimonials_Widget' ) ) :
/**
* Create a widget to display a random testimonial post.
* Refer to https://gist.github.com/1971046 and https://gist.github.com/1971054 for the Custom Post Type and Meta Box Setup
*
* @since 1.0
*/
class Testimonials_Widget extends WP_Widget {
function Testimonials_Widget() {