Skip to content

Instantly share code, notes, and snippets.

View andiaziz's full-sized avatar

Andi Aziz andiaziz

  • Yogyakarta
View GitHub Profile
@andiaziz
andiaziz / oxygen-repeater-dynamic-query.php
Created February 18, 2023 02:07 — forked from yankiara/oxygen-repeater-dynamic-query.php
Use dynamic queries with Oxygen's repeater
/* I'll put here different examples of dynamic query for Oxygen repeater :
* - Use one of the following repeater_dynamic_query definitions
* in code block just BEFORE the repeater
* - Set the repeater custom query settings : post type, number of posts, order...
* - Add the remove_action in a code block AFTER the repeater
*/
/****************************************************************************************************
* Display related posts for any CPT with taxonomy:
@andiaziz
andiaziz / calendar.php
Created November 14, 2021 19:12 — forked from joecue/calendar.php
PHP Script to Generate a Calendar Grid for the month of the Current date.
<html>
<head>
<link href='https://fonts.googleapis.com/css?family=Lato' rel='stylesheet' type='text/css'>
<style>
body{font-family: Lato;}
caption{font-size: 22pt; margin: 10px 0 20px 0; font-weight: 700;}
table.calendar{width:100%; border:1px solid #000;}
td.day{width: 14%; height: 140px; border: 1px solid #000; vertical-align: top;}
td.day span.day-date{font-size: 14pt; font-weight: 700;}
th.header{background-color: #003972; color: #fff; font-size: 14pt; padding: 5px;}