Skip to content

Instantly share code, notes, and snippets.

View _mixins.scss
// Meida Queries
@mixin break($args...) {
@if length($args) == 1 {
@media (min-width: nth($args, 1)) {
@content;
}
} @else {
@media (min-width: nth($args, 1)) and (max-width: nth($args, 2)) {
@content;
}
View count-post-to-rest-api.php
<?php
/*
Plugin Name: Count Posts to Rest API
Description: Counts the post types and add them to the rest API
Plugin URI: https://webbiz.ie
Author: Jason Morton
Author URI: https://webbiz.ie
Version: 1.0
License: GPL2
Text Domain: count-posts