Tag: WordPress

Get WordPress user_id from meta_key meta_value pair

Earlier today I was working on a user-account class that talks to an api and needed to get the associated user_id from the returned value. All I had to from was a custom user_meta value and the meta_key. I figured there would be a wp function called get_user_id_by_meta, or something similar, but I didn’t find one. So, I made one.

This function is rather simple, but could easily be much more. This function is actually a method in a class so the naming convention is safe. However, if you plan to use it outside of a class I suggest that you change the name.

Get a WordPress users id from meta_key and meta_value:

If you found this helpful please let me know. If you have any questions, comments, or a more efficient way let me know.

JellyTelly

JellyTelly

Every now and then I get to work on a project that I’m supper excited about, and JellyTelly worked it’s way to the top in heartbeat! Smooth, Clean and Easy! I’ve never had something with this much depth be made so simple.

If you have kids and don’t mind messy fingers touching your keyboard, screen and touchpad then you’re in luck! You should definitely go and check out some of the videos, games, crafts and their [...] Read More

WordPress Galleries Got You Down?

You ever put in a Gallery in a Post and it acts weird and looks off and there just seems to be no hope. And then you look at the html only to find out there is a style right in the middle of your code…

Well, here is a little something I decided to pay attention to yesterday. It’s been around for a while, but you know how it is when there are a million [...] Read More

Dan Evans

Over the last two weeks I’ve been doing quite a bit of work, but Dan Evans was the main project. I honestly think it’s one of the best I’ve done.

There is a lot to see over there, so be sure to go through the site and check it. Listen to some of his music, give him a hello and tell him to make some music and stuff.

I met Dan and his Mom and their both [...] Read More

The Cycle Of Construction

Have you ever found yourself in a position of Learning? I’m talking about that point where you could literally go back on your work every week.

Not to say your work or my work isn’t worth it’s weight, but none the less you feel as though there is a definite learning curve going on here.

I can absolutely admit that with every project I complete I’ve learned so much that I could start over by the time [...] Read More

Damian Horne

This is Damian Horne, he’s a musician out of Auburn, Ca. [...] Read More

New Theme – Elijah Stephen

This was probably one of the most painless projects I’ve ever done, and I have to say I’m really happy with it. [...] Read More

New Theme – Joy Whitlock

Here is a little something that I’ve been working on for a couple of weeks. We’ve been seriously putting in the hours lately on getting things done and making sure they work… [...] Read More

VC Simplicity

So I think it’s official, I never sleep and I never stop building stuff. Here we have a one night stand with some simple concepts that were floating around in my head last night. [...] Read More

2 New Themes

In the last two weeks I busted some serious typing and completed to projects. Outdoor Encounter and Daniel Renstrom… [...] Read More