Skip to content

Instantly share code, notes, and snippets.

View bbirdme's full-sized avatar

Bruno Kos bbirdme

View GitHub Profile
<div class="page-inner">
<div class="around-add">
<div class="section-wide large-12 columns" style="margin:3px auto 10px;"><h2 class="section-title">Latest Stories</h2></div>
<?php
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$counter = 1;
$args = array(
'post_type' => 'post',
@bbirdme
bbirdme / custom_walker_comment.php
Last active June 3, 2016 20:39
bruno_walker_comment class is custom Walker_Comment class
<?php
class bruno_walker_comment extends Walker_Comment {
public $tree_type = 'comment';
public $db_fields = array ('parent' => 'comment_parent', 'id' => 'comment_ID');
public function start_lvl( &$output, $depth = 0, $args = array() ) {
$GLOBALS['comment_depth'] = $depth + 1;
switch ( $args['style'] ) {
case 'div':
break;
@bbirdme
bbirdme / woocommerce_by_tags.php
Last active March 31, 2020 08:34 — forked from corsonr/gist:5933479
List WooCommerce products by tags
<?php
/**
* Plugin Name: WooCommerce - List Products by Tags
* Plugin URI: http://www.remicorson.com/list-woocommerce-products-by-tags/
* Description: List WooCommerce products by tags using a shortcode, ex: [woo_products_by_tags tags="shoes,socks"]
* Version: 1.0
* Author: Remi Corson
* Author URI: http://remicorson.com
* Requires at least: 3.5
* Tested up to: 3.5