How To Dual-Sort Query Results In WordPress Using get_posts

Author: , September 12th, 2019

Needed to build a feature for a Bookstore tool to have an optional sequence number for the Custom Post Type “books” that would allow items with a seq number to float to the top of the list and be sorted by seq #. The rest of the books would show underneath, sorted alphabetically.

How To Check If An ID Exists Using jQuery

Author: , May 10th, 2011

Use the .length property:

How to check if a javascript variable is defined

Author: , October 21st, 2009

[code]if ( typeof(myVar) !== ‘undefined’) { // variable is defined } [/code] ~or~ [code]if (typeof variable === ‘undefined’ || variable === null) { // variable is undefined or null } [/code]