Skip to content

Instantly share code, notes, and snippets.

<?php
$_GET['page_id']=2464;
// Replace the page id with actual id of page.
define('WP_USE_THEMES', true);
/** Load the WordPress Template */
require('../wp-blog-header.php');
@jackabox
jackabox / WPGeoQuery.md
Last active December 12, 2024 15:11
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.

@carolineschnapp
carolineschnapp / related-products.liquid
Last active February 10, 2025 17:37
Related Products — to add to product.liquid