Category: What I Learned
I’m big on setting goals and areas of focus for the short term. My general goals and mantra for 2017 are summed up in the post Harder, Better, Faster, Stronger… I usually like to see where I’m at halfway through the year and adjust accordingly to either get back on track or set some different goals.
So far, 2017 has been crazy busy and a lot of fun. We celebrated the birth of our daughter January 11th and the fun (and work!) has not stopped. Being a parent has been awesome, and our daughter is an exceptionally easy infant. I know others don’t have as easy of a time, but this gal is already sitting, standing, eating pureed food, and smiling ear to ear. We love her a ton!Continue reading
Recently, I was asked to add a button to the visual editor for posts and pages on a WordPress install that would insert the
<!--nextpage--> code for article pagination . I had done this before, but wanted to write about it here, since I’d totally forgotten how to do it, and wanted to make sure I had a snippet or two for reference.
This is a quick post, just to share something I learned.
Recently I got a request to create a simple submit form with a an email input that would direct to another page and take the email address and pre-fill a more complex form with email, name, address, etc.
Below is the code I used for it.
My friend and I are working on a little side project. It’s a job posting site for an industry we’re familiar with: ESL jobs around the world. While this project could be seen as “just another job board”, we’re hoping to add some features that will make it fun to use and valuable for schools and recruiters. I of course want to build it on WordPress, but to get a some of the functionality I want, I need to expose some post meta to the WP REST API.
In researching how to do this, I quickly found out that the WP REST API doesn’t naturally expose post or user meta. As with most things WP REST API, you don’t have to go too far down the rabbit hole before you find a practical article written by the Josh Pollock. While the
register_api_field function isn’t in use anymore, the
register_rest_field function is, so this article and that function were all I needed to get going.
It’s that time of the year, reviewing what has been done, assessing what was good, discarding what was not, and moving forward in a better situation than I was before.
After my theme and goal setting at the end of 2015, I moved into the new year with hope and optimism. This year was very interesting to say the least. I’ve experienced the lowest lows and the highest highs.
However, I think 2016 will go down as the most significant year for me since marriage.
Read on to find out why…