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 taxonomy to the Space Content CPT and populate with initial values | |
| if ( ! taxonomy_exists( 'space-content-type' ) ) { | |
| // Define your taxonomy labels | |
| $labels = array( | |
| 'name' => _x( 'Content Types', 'taxonomy general name', 'textdomain' ), | |
| 'singular_name' => _x( 'Content Type', 'taxonomy singular name', 'textdomain' ), | |
| 'search_items' => __( 'Search Content Types', 'textdomain' ), |
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 | |
| // Change OG image for single objects | |
| // Based on snippet here https://gist.github.com/amboutwe/811e92b11e5277977047d44ea81ee9d4 | |
| add_filter( 'wpseo_opengraph_image', 'change_opengraph_image_url' ); | |
| function change_opengraph_image_url( $url ) | |
| { |
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' ), |