Skip to content

Instantly share code, notes, and snippets.

View jvgraph's full-sized avatar

Juan Vargas jvgraph

View GitHub Profile
@jvgraph
jvgraph / .eslintignore
Created October 17, 2019 03:09 — forked from wpscholar/.eslintignore
Webpack 4 Config for WordPress plugin, theme, and block development
**/*.min.js
**/*.build.js
**/node_modules/**
**/vendor/**
build
coverage
cypress
node_modules
vendor
watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && npm cache clean && npm install && npm start -- --reset-cache
<?php
/*
* WordPress Breadcrumbs
* author: Dimox
* version: 2015.05.21
*/
function dimox_breadcrumbs() {
/* === OPTIONS === */
@jvgraph
jvgraph / frontendDevlopmentBookmarks.md
Last active August 29, 2015 14:27 — forked from dypsilon/frontendDevlopmentBookmarks.md
A badass list of frontend development resources I collected over time.
<div id="posts">
<?php
// Get category ID from Theme Customizer
$catID = get_theme_mod( 'tcx_category' );
// Only get Posts that are assigned to the given category ID
$args = array(
'post_type' => 'post',
'cat' => $catID
);
<?php
add_theme_support('menus');
/*
http://codex.wordpress.org/Function_Reference/register_nav_menus#Examples
*/
register_nav_menus( array(
'main-menu' => 'Main Menu' // registers the menu in the WordPress admin menu editor
) );