The other day I was writing plugin code and I thought it would be useful to know the URL of the page a visitor is on.
Back in the day, I would get the user’s current URL with something like:
$url = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
Instead of going with how I used to do it, I thought it would be better to try the WordPress way. There’s a function for that, right?
Continue reading “Who Can Tell Me Where I Am?”
After creating my Developers Handbook custom post type, I decided it would be fun to extend its functionality, and usefulness, by building a couple meta boxes. I thought this would be a great way to learn more about WordPress development.
In the end, I did learn a lot more about WordPress, but I ultimately gave up on the project and threw all my new code away.
Here’s the story.
Continue reading “Extending my Custom Post Type with a Meta Box or Two”
I often hear these words at work: “We can build a custom post type for this” or “I built a custom post type for that” and I’ve always known, generally, what a custom post type was, but I didn’t really know what was involved in creating one.
Given I’m on this quest to become a WordPress developer, and it seems likely these three words will come up again in future conversations, I thought it would be worthwhile to spend some more time with custom post types.
Continue reading “Custom Post Types”
This post will wander. It will ramble.
If you’ve read any of my other posts, you know that rambling is my writing style. But this post will take it to another level. You see, for the last two days – since I opened up my text editor and started writing code – I’ve been all over. I’ve been easily distracted. I’ve explored multi… – squirrel!
If you make it to the end of this post, you’ll see I actually created something. I created a plugin that really has no useful purpose and is beyond over-architected for what it does… but it is a functioning plugin.
Shall we begin?
Continue reading “Come With Me On My Journey Into Plugin Development”
Build a plugin instead.
Today I read the first four chapters of the WordPress Plugin Handbook and found it very useful. I learned about the basics, security, and hooks. It’s a good resource and there is a lot more to read up on in this handbook: shortcodes, settings, custom post types, the HTTP API, and more.
I also found the following resources I want to review:
But, to be honest, I’m getting a little stir-crazy and I just gotta load up Sublime and start writing some code. So, I’m going to keep today’s post short and spend the next few hours working on coding tutorials and writing throw-away code.
It’s going to be fun.
Oh yeah, note to self: the alignment of that bulleted list is driving me insane. I may have to work on CSS a little sooner than I thought.
Yes, I know the world seems to be shifting to a front-end-functionality-first mentality and I really need to build my skills there, but I feel like its best to start with the fundamentals. And what better place to start than building a WordPress plugin?
Continue reading “WordPress First – Everything Else Second”
So, I have my local dev and prod environments set up. I think it’s a decent start, but I’m open to any suggestions for improvement. Here’s what I’ve got going so far.
Continue reading “Dev and Prod”
And so it begins. Another blog is born. And like so many before, it is very likely predestined to die a quiet, lonely death starved of regular nourishment or praise.
Well, so what?
This is day one. I’m optimistic and I intend to document within these posts my journey back to what I once was – a web developer.
Continue reading “Day 1”