WP_Query orderby meta key/value suddely stopped working

Some things to check. Have permissions changed during your migration? Sometimes those things change unexpectedly. Use Chrome inspector to see if any Javascript is failing to load (look for the red x). Have you updated permalinks? Is your new dedicated environment able to support the requirements of everything you’re running? If your code hasn’t changed, … Read more

How to Insert Self-Hosted Video in WordPress Post

HTML 5 <video width=”640″ height=”360″ src=”https://wordpress.stackexchange.com/wp-content/uploads/2012/04/my_video.mp4″ autobuffer> <div class=”fallback”> <p>You must have an HTML5 capable browser.</p> </div> </video> For Flash Check out JW Player

In Loop Output Place Custom Field Content In Between Paragraphs

After researching this, here is what works for me: <?php $paragraphAfter= 1; //show box after selected paragraph $content = apply_filters(‘the_content’, get_the_content()); $content = explode(“</p>”, $content); for ($i = 0; $i <count($content); $i++) { if ($i == $paragraphAfter) { ?> <!– START OF BLOCKQUOTE –> stuff <!– END OF BLOCKQUOTE –> <?php } echo $content[$i] . … Read more

Add existing user as administrator

WordPress user accounts are unique to a single installation of WordPress. Even if they are hosted on the same server, there’s no simple way (and, more importantly, probably no secure way) to hook them together. WordPress accounts on WordPress .com can be added to other sites, but not accounts on self-hosted WordPress installations. The only … Read more

How do i use postMash to order posts in a custom loop?

That plugin is 3 years old. I’m not sure if it uses the menu_order column to set the order but if it does you can filter pre_get_posts or your custom query with: ‘orderby’ => ‘menu_order’, ‘order’ => ‘ASC’ This would all have to be done before the $post object is added to the $events array … Read more

Migrate comments to Disqus

During the process of installing the Disqus Comment System plugin on WordPress, it actually allows you to export your comments to Disqus, as shown in the screenshot above. And they’ve quite a helpful documentation as well: Install Disqus on WordPress (self-hosted) Exporting comments from WordPress to Disqus Not to mention the numerous ‘how-to’ videos on … Read more