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 […]
Tag: wp api
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 […]
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 […]
Add Custom Field to Custom Post Type JSON Endpoint
![Yoda saying there is no can't.](https://bionicteaching.com/wp-content/uploads/2018/03/yoda_no_cant.jpg)
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
Tweaking the WP Base JSON Data
![Will Wonka asking you to tell him again what WordPress can't do.](https://bionicteaching.com/wp-content/uploads/2018/03/wonka_wp_cant_do.jpg)
We had a list of rampages sites in a Google Spreadsheet and wanted to know when they were created. I started to look that up but only managed to do it twice before I gave up and went in search of another way. In this case it took two little bits of code. This first […]
Add Custom Field to WordPress API & Filter
I found myself in a strange situation where I needed to know if a page had a child. Natively the WP API lets you know if a page has a parent but not the reverse. First I had to write a function that writes some data to a custom field if a page has a […]
WP API Feed Reader POC
![A drawing of a small terrier dog jumping through a hoop held by a monkey.](https://bionicteaching.com/wp-content/uploads/2017/07/dog-hoop.jpg)
Image from page 96 of “St. Nicholas [serial]” (1873) flickr photo by Internet Archive Book Images shared with no copyright restriction (Flickr Commons) I’ve talked to a number of people a number of times about seeing faculty using Feed WordPress to syndicate content to a motherblog when they’d really be better served by using a […]
WP JSON to Timeline JS
![timeline of last 50 posts](https://bionicteaching.com/wp-content/uploads/2017/05/Screen-Shot-2017-05-27-at-11.36.30-AM-1024x568.png)
As part of some thoughts on building out a series of reflective views for student portfolio blogs, I thought seeing your WordPress posts in the TimelineJS view might be a useful way to look back over your progress. I intend to wrap this into a custom spreadsheet template and/or a plugin1 but figured I’d sketch […]