Display the Last Updated Date

$u_time = get_the_time( ‘U’ ); $u_modified_time = get_the_modified_time( ‘U’ ); // Only display modified date if 24hrs have passed since the post was published. if ( $u_modified_time >= $u_time + 86400 ) { $updated_date = get_the_modified_time( ‘Y-m-d’ ); $updated_time =…Continue reading

Grocery List App

Create a grocery list organized by store departments. Add items, choose departments, and easily find everything during your shopping trip. Print your list or copy to clipboard for use anywhere. Add custom departments to match your local store layout. New…Continue reading

Social Share Buttons

$post_url = urlencode( get_permalink() ); $post_title = urlencode( get_the_title() ); $facebook_url = “https://www.facebook.com/sharer/sharer.php?u=$post_url”; $x_url = “https://twitter.com/intent/tweet?url=$post_url&text=$post_title”; $linkedin_url = “https://www.linkedin.com/shareArticle?mini=true&url=$post_url&title=$post_title”; $social_buttons = ‘ ‘; echo $social_buttons; // Styles for the social sharing buttons. echo ‘ ‘;Continue reading

Price Range Slider (JS)

document.addEventListener(‘DOMContentLoaded’, function() { const priceRangeSlider = document.getElementById(‘priceRangeSlider’); const priceDisplay = document.getElementById(‘priceDisplay’); const hiddenField = document.querySelector(‘input[name=”input_9″]’); priceRangeSlider.addEventListener(‘input’, function() { const value = this.value; priceDisplay.textContent = value; hiddenField.value = value; }); });Continue reading

Social Share Buttons

$post_url = urlencode( get_permalink() ); $post_title = urlencode( get_the_title() ); $facebook_url = “https://www.facebook.com/sharer/sharer.php?u=$post_url”; $x_url = “https://twitter.com/intent/tweet?url=$post_url&text=$post_title”; $linkedin_url = “https://www.linkedin.com/shareArticle?mini=true&url=$post_url&title=$post_title”; $social_buttons = ‘ ‘; echo $social_buttons; // Styles for the social sharing buttons. echo ‘ ‘;Continue reading