Type: php
Increase Max File Upload
@ini_set( ‘upload_max_size’ , ‘256M’ ); @ini_set( ‘post_max_size’, ‘256M’); @ini_set( ‘max_execution_time’, ‘300’ );Continue reading
Tag Cloud Lov
function s11_word_cloud2( $atts ) { $atts = shortcode_atts( array( ‘words’ => ‘Awesome, Fabulous’, ‘colors’ => ‘#21759b, #d54e21, #464646’, ), $atts ); $colors = array_map(‘trim’, explode( ‘,’, $atts[‘colors’] )); if (empty($colors)) { $colors = [‘#000000’]; } $words = array_filter( explode( ‘,’,…Continue reading
archive-listings.php
Property ListingsContinue reading
functions.php (copy)
jQuery(function($) { $(document).on(‘click’, ‘.favorite-toggle’, function(e) { e.preventDefault(); const btn = $(this); const post_id = btn.data(‘post-id’); const isFavorited = btn.attr(‘data-favorited’) === ‘1’; $.post(”, { action: ‘toggle_favorite’, post_id: post_id }, function(response) { if (response.success) { btn.text(isFavorited ? ‘♡’ : ‘❤️’).attr(‘data-favorited’, isFavorited ?…Continue reading
functions.php
archive-listings.php
Property ListingsContinue reading
Disable XML-RPC
add_filter( ‘xmlrpc_enabled’, ‘__return_false’ );Continue reading
Disable Attachment Pages
add_action( ‘template_redirect’, function () { global $post; if ( ! is_attachment() || ! isset( $post->post_parent ) || ! is_numeric( $post->post_parent ) ) { return; } // Does the attachment have a parent post? // If the post is trashed, fallback…Continue reading
lps-school-search-wpcode PHP
// Prevent duplicate execution if (defined(‘LPS_SCHOOL_SEARCH_LOADED’)) { return; } define(‘LPS_SCHOOL_SEARCH_LOADED’, true); // Output HTML and JavaScript ?> Nearby Schools Hide School Search Data from Florida Department of Education Pre-K Kindergarten Elementary Middle/Jr. High Senior High Combination Adult Other Pre-K Show…Continue reading