Skip to content

Instantly share code, notes, and snippets.

View IProSoft's full-sized avatar
Working from home

Artur Śmigielski IProSoft

Working from home
  • Caltha - Krzewski, Potempski Sp.J.
View GitHub Profile
IProSoft /
Last active February 2, 2018 22:08 — forked from phlbnks/
#!/bin/bash -e
echo "============================================"
echo "WordPress Install Script"
echo "============================================"
echo "Do you need to setup new MySQL database? (y/n)"
read -e setupmysql
if [ "$setupmysql" == y ] ; then
echo "MySQL Admin User: "
read -e mysqluser


In this snippet I've gathered some examples and cases about how to get taxonomy terms programmatically in Drupal, using always the same method and the same mechanics: get terms and then processing it in order to get only the required under certain criteria.