612-293-8629 HELLO@THEMIGHTYMO.COM

Today I ran into a frustrating issue where a simple “get_posts()” query was not working in a custom widget.  The query worked fine when embedded into the page template.

The solution was actually quite simple – calling global $post; before my query in the widget did the job!

Movin’ on up!

Thanks to Aaron  and Matt for helping find a solution!

PHONE, EMAIL, TEXT

We love to communicate: phone, email, text, Facebook, Twitter, LinkedIn, you name it.

LOCATIONS

PAYMENTS ACCEPTED

Call Now

Enroll in Our Free Beginner WordPress Class - delivered to your Email Inbox!

Become a WordPress superstar for FREE in only minutes a day!  Our free Beginner WordPress Email Class will be delivered to your inbox!

Learn More 

You Have Successfully Enrolled! Prepare For Amazing!