This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function unserialize_meta_data($data) { | |
if (is_array($data)) { | |
foreach ($data as $key => &$item) { | |
if (is_array($item) && isset($item[0]) && is_serialized($item[0])) { | |
$item = maybe_unserialize($item[0]); | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--put this in a code block at top of mailing--> | |
<link rel="preconnect" href="https://fonts.googleapis.com"> | |
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | |
<link href="https://fonts.googleapis.com/css2?family=Roboto+Slab:[email protected]&family=Source+Serif+4:ital,opsz,wght@0,8..60,200..900;1,8..60,200..900&display=swap" rel="stylesheet"> | |
<style> | |
p { | |
font-family: "Roboto Slab", serif !important; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Mastodon | |
https://tootpick.org/#text=[text] | |
https://twitter.com/intent/tweet?via=[sitename]&text=[text] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Poopers", | |
"description": "My first widget.json.", | |
"data": { | |
"content_url": "https://thirty8.co.uk/" | |
}, | |
"layouts": { | |
"hello_small": { | |
"size": "small", | |
"styles": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'init', 'create_my_post_types' ); | |
function create_my_post_types() { | |
register_post_type('exhibition', array( | |
'labels' => array( | |
'name' => __( 'Exhibitions' ), | |
'singular_name' => __( 'Exhibition' ), |