This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function get_wpml_home_ids(){ | |
//Globalizse the $wpdb variable (instantiation of the wpdb class) | |
global $wpdb; | |
//Get the front-page id from the options table | |
$home_id = get_option('page_on_front'); | |
//Run the query | |
$postids=$wpdb->get_col($wpdb->prepare(" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
filterElements = (validate, filter) -> | |
filtered = {} | |
for key, vars of validate | |
if key in filter then filtered[key] = value | |
filtered |
NewerOlder