This week I’ve been busy working on a WordPress Plugin to display NFTs from OBJKT, so I haven’t had that much time to write.
At first, I thought I’ll look in the WordPress Plugin catalog, but I couldn’t find one to do what I want.
Actually, that’s being nice. I couldn’t find anything related to OBJKT, so I came to the realization, I’m going to have to do this myself.
Now, I’m not really a coder. Sure, in the past I’ve been able to reverse engineer some code and painstakingly figure out what does what and how to make small modifications to do what I want.
But this was different. I had to start from scratch.
At first, I started with the API documentation, and after going over it and playing with the GraphiQL explorer that OBJKT provides, I was able to figure it out.
Especially, with the help of ChatGPT. AI helped me, a non-coder, actually build a WordPress Plugin from scratch.
Not going to lie, I used AI a lot. Being able to feed it some code and ask for help as far as what’s working and what’s not was a huge help.
Anyway, I figured why not write a little bit about what I’ve been working on.
This WordPress plugin integrates with OBJKT to display NFTs on my WordPress website. I incorporated three distinct ways to showcase a small collection as highlighted below.
Fetch and Display Specific NFTs using Artifact Uri
At first, I was trying to fetch the NFT via the contract and token id but using 2 variables like that proved tricky. I did get it to work but it was buggy and sometimes didn’t work properly. Therefore, I tried using the artifact_uri and seems to work perfectly now.
This method works by entering a list of a comma separated values obtained from the metadata. So far, I tested it with 2-3 values.
I will be using this to showcase and promote specific NFTs alongside content. My plan is to write content as normal but use photography from the community has helpful examples in addition to my own photography.
I will also be creating a guide to help onboard new photographers and collectors to Tezos. That way if someone unfamiliar with web3 stumbles upon one of my posts and gets curious about collecting, they will have a guide to help them collect your work.
If I can help people with useful content, promote your NFTs, and onboard new users, then we are doing three positive things.
Fetch and Display Collected NFTs by Wallet Address
This was straight forward. Fetch collected NFTs by the user wallet address and display them in order of last collected. Tested with a limit of 10 but should be able to show more.
I only plan to use 3 inside post content to show what I’m collecting.
This could also be used in future interviews or something with collectors/artists and will allow me to display an updated “What are You Collecting” list or something.
Here are the last 3 NFTs I collected on OBJKT. Go check them out!
Fetch and Display NFTs by Curation Slug
Finally, I wanted a way to display NFTs on my site via a curation slug. This was also pretty straight forward but perhaps my favorite feature. By using curations, I can think of some pretty cool ideas like writing about community curations and showcasing a small sample here.
The collection below, The Art of Pure Photography, curated by @TiBA, is a tribute to the essence and artistry of photography.
And damn, let me tell you. It is not easy to find a curation of photography on Objkt where some AI don’t sneak its way in. Thankfully we have community members doing the hard work and giving you some real gems.
Let me Know what you think in the comments
That’s it for now. Look for the plugin in action for upcoming posts, especially for the Kindred frames section.
Next week there will be a regular post about photography or something but let me know what you think of my WordPress plugin in the comments. If you have any ideas or suggestions, I definitely want to hear those. Thanks for dropping bye.
WOW! I need this for my website/blog. I also use wordpress! Well done, Michael!!!
Thanks so much Fer, once I extensively test it and make sure it meets all the requirements, I’ll look at adding it to the Plugin Directory