Skip to content

Instantly share code, notes, and snippets.

@celltowertrees
celltowertrees / tailwind.config.ts
Created November 15, 2024 22:29
Web 1.0 Tailwind config
import type { Config } from "tailwindcss";
export default {
content: [
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
"./components/**/*.{js,ts,jsx,tsx,mdx}",
"./app/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
extend: {

Keybase proof

I hereby claim:

  • I am celltowertrees on github.
  • I am celltowertrees (https://keybase.io/celltowertrees) on keybase.
  • I have a public key ASDmbNkfHatb2OX1Cj_RZ66Ye--0AMz7iqrGDT9qeUvPxQo

To claim this, I am signing this object:

@celltowertrees
celltowertrees / children in parent post.php
Created October 2, 2013 06:08
For each child in a parent, echo the title
$child_posts = types_child_posts('artist');
foreach ($child_posts as $child_post) {
$album_id = wpcf_pr_post_get_belongs($child_post->ID, 'album');
$album = get_post($album_id);
echo $album->post_title;
}
@celltowertrees
celltowertrees / Wordpress Types parent post access.php
Created October 2, 2013 06:06
Show the features of a parent post, if there is any
<?php
$parent_id = wpcf_pr_post_get_belongs(get_the_ID(), 'parent-type-slug');
if (!empty($parent_id)) {
$parent = get_post($parent_id);
var_dump($parent);
}
?>