I’ve been meaning to get all the stuff that used to be automated to Twitter to work with Mastodon. I took about 15 minutes1 after reading a Mastodon-related post from Alan to mess around and see what I could figure out. Now I’ve got 15 minutes to write it down. Consider that half an hour […]
Tag: json
Google Sheets JSON the Long Way
Ever since Google turned off direct access to the JSON data from Google Sheets, I’ve used a couple of App Script workarounds. They were a bit clumsy for what I was doing but better than re-writing the entire page. I find going through the whole oAuth and Google project process to be more hassle than […]
Finding a Lost Site in a Massive Multisite
In WordPress Multisite there are some scenarios where a site with a custom domain can get lost. There is the central place in network admin where you can assign custom domains but you can also do it at the site level. If it’s done at the site level, it’s possible for that site to become […]
JSON and the WP REST API
This post is supporting a bunch of tweets going out for pressedconf22 on March 24. Why? The basic idea is that WordPress is good for taking care of the mechanics of writing on the Internet. It deals with users, logins, uploading media, writing to the database, etc. On the other hand, WordPress themes can feel […]
All ACF Fields to Custom Post Type
A long time ago, I put a post up about getting ACF Fields for a custom post type in the WP JSON API response but you’d have to do that one by one. Sometimes that would be good but if you have a lot of fields and don’t mind them being public it’s not so […]
All the TAGS Twitter Avatars
I have someone who gathered a bunch of tweets for their research using Martin’s TAGS aggregator. She wanted to show all the avatars. Once I published the spreadsheet, here’s all the javascript needed to make that happen. It’s lightly annotated for your reading pleasure and the functioning codepen example is included below. See the Pen […]
Zombie Posts/Pages Shortcode
Origin Story This is an odd one but has a number of uses outside this weird scenario. In this case authors have access to Site B but want the content they write to show up on Site A on the appropriate pages/posts. Given this is a multisite I could tie the sites together and do […]
PHP Middleware for Keeping Your JS API Secrets Secret
Origin Story We were looking to pull in live weather data for a eco-related design contest that VCU Qatar is hosting. I found a free API for weather but wanted a way to use it via javascript and not expose any secrets. That led to the script below. Many APIs have query strings that require […]
Read More… from PHP Middleware for Keeping Your JS API Secrets Secret
An Option for dealing with CORS
As we do more things with JSON, I run into CORS access issues. They can be solved in various ways but it’s often a hassle. It often irritates me as I build demos in COde After wanting a simple solution this AM, I made this tiny, insignificant PHP file that I think might be useful […]
Add Custom Field to Custom Post Type JSON Endpoint
In this case, I just wanted to make a custom field from ACF visible in the JSON returned for a custom post type which was named faculty. That’s all there is to it. […]
Read More… from Add Custom Field to Custom Post Type JSON Endpoint