Skip to content

Instantly share code, notes, and snippets.

@nocean
nocean / language-independent-acf-theme-options-output.php
Last active August 9, 2018 01:55 — forked from senlin/language-independent-acf-theme-options-output.php
How to get language independent ACF theme options on a WPML site
<?php
/**
* To get this to work, you need to tinker with the acf/settings/ filter and reset the default language
* so that the get_field() function returns the correct results even when not on the default language.
*
* You can add the filter before you call the get_field() function and then remove it once complete.
*
* answer courtesy of James of ACF Support + love on GitHub
*/
@nocean
nocean / 0_reuse_code.js
Last active August 29, 2015 14:07
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console