Skip to content

Instantly share code, notes, and snippets.

View rogertm's full-sized avatar
🐘
ERROR: Job failed: exit code 1;

RogerTM rogertm

🐘
ERROR: Job failed: exit code 1;
View GitHub Profile
/* Gist Embed - Dark Theme Styling - Thanks to MattD */
/* Body */
.gist-data tbody { background-color: Black; }
/* Line Numbers */
.gist-data tbody td:nth-of-type(1) {
color: #2B91AF !important;
}
@jackabox
jackabox / WPGeoQuery.md
Last active September 10, 2024 14:47
WordPress Geo Location Query

WP Geo Query

Quick and easy class created to modify the WP_Query on specific calls and pull in all posts within a radius from a given latitude and longitude.

// Get The Page ID You Need
get_option( 'woocommerce_shop_page_id' );
get_option( 'woocommerce_cart_page_id' );
get_option( 'woocommerce_checkout_page_id' );
get_option( 'woocommerce_pay_page_id' );
get_option( 'woocommerce_thanks_page_id' );
get_option( 'woocommerce_myaccount_page_id' );
get_option( 'woocommerce_edit_address_page_id' );
get_option( 'woocommerce_view_order_page_id' );
get_option( 'woocommerce_terms_page_id' );