Type: php
WordPress Trending Posts | Popular Posts Ticker Shortcode
/* Showcase your trending content with this scrolling WordPress ticker. Shortcode: [trending_postss count=5] Can change count as per your needs. Note: This shortcode requires the “Post Views Count | Post Views Tracking with Shortcode and Admin Column” snippet to be…Continue reading
Post Views Count | Post Views Tracking with Shortcode and Admin Column and Elementor Support
/* Description: Enhance your WordPress site with a post view tracking system. This snippet uses a one-hour cookie to avoid inflating counts, offers a get_post_views() function for developers, a [post_views] shortcode for users, and adds a sortable “Views” column to…Continue reading
Disable Gutenberg Editor (use Classic Editor)
add_filter(‘gutenberg_can_edit_post’, ‘__return_false’, 5); add_filter(‘use_block_editor_for_post’, ‘__return_false’, 5);Continue reading
Vacatures CPT – zonder taxonomies
Search Filter by Genre and Artist
add_action( ‘pre_get_posts’, ‘softcomplexmusic_custom_search_filter’ ); function softcomplexmusic_custom_search_filter( $query ) { if ( !is_admin() && $query->is_main_query() && $query->is_search ) { $tax_query = []; if ( !empty($_GET[‘genre’]) ) { $tax_query[] = array( ‘taxonomy’ => ‘genre’, // Ensure this matches your site’s taxonomy slug…Continue reading
Add Field Values for Dropdown, Checkboxes, and Multiple Choice Fields (copy)
/** * Add field values for dropdown, checkboxes, and multiple choice fields * * @link https://wpforms.com/developers/add-field-values-for-dropdown-checkboxes-and-multiple-choice-fields/ * * For support, please visit: https://www.facebook.com/groups/wpformsvip */ add_filter( ‘wpforms_fields_show_options_setting’, ‘__return_true’ );Continue reading
PASSWORD PROTECT
// Simple public password protection for WordPress Multisite Subsite with mapped domains add_action(‘init’, function() { $required_password = ‘letmein’; //Continue reading
Translating the Total Field’s Order Summary
add_action(‘wpforms_wp_footer_end’, function () { ?>Continue reading
Dynamically Setting Stripe Payment Description in WPForms
/** * Dynamically set Stripe payment description to include the current page/post title. * * @link https://wpforms.com/developers/ * * @param array $form_data Form data and settings. * @param array $entry Entry data. * * @return array */ function wpf_dev_process_form_data( $form_data,…Continue reading