Skip to content

Instantly share code, notes, and snippets.

View querysol's full-sized avatar

Qube One Ltd querysol

  • Qube One Ltd
View GitHub Profile
@querysol
querysol / gallery-item.html
Created April 5, 2017 08:32
WP Gallery item
@querysol
querysol / __INDEX.txt
Created August 14, 2017 07:24 — forked from facine/__INDEX.txt
Drupal 8 - Examples
# Taxonomy terms:
- https://gist.github.com/facine/35bb291811c146b6fc9e#file-create_taxonomy_term-php
# Menu links:
- https://gist.github.com/facine/35bb291811c146b6fc9e#file-create_menu_link-php
# File items:
- https://gist.github.com/facine/35bb291811c146b6fc9e#file-create_file-php
# Nodes:
function tattoo_submit() {
if (isset($_POST["addtattoo"])) {
$title = "Tattoo : ". $_POST["tatooInput"];
$my_post = array(
'post_title' => $title,
'post_status' => 'publish',
'post_author' => 1,