Directory Generator
add_shortcode(‘organization_directory’, function () { ob_start(); ?> Categories Organizations Browse CategoriesContinue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
add_shortcode(‘organization_directory’, function () { ob_start(); ?> Categories Organizations Browse CategoriesContinue reading
function enqueue_datatables_assets() { wp_enqueue_style(‘datatables-css’, ‘https://cdn.datatables.net/1.13.4/css/jquery.dataTables.min.css’); wp_enqueue_script(‘datatables-js’, ‘https://cdn.datatables.net/1.13.4/js/jquery.dataTables.min.js’, [‘jquery’], null, true); } add_action(‘wp_enqueue_scripts’, ‘enqueue_datatables_assets’);Continue reading
add_shortcode(‘organization_category_table’, function () { if (!is_tax(‘organization-category’)) { return ‘ This shortcode must be used on an Organization Category archive page. ‘; } $term = get_queried_object(); if (!isset($term->term_id)) { return ‘ Invalid category context. ‘; } ob_start(); ?> ← Back to…Continue reading
add_shortcode(‘organization_type_table’, function () { if (!is_tax(‘organization-type’)) { return ‘ This shortcode must be used on an Organization Type archive page. ‘; } $term = get_queried_object(); if (!isset($term->term_id)) { return ‘ Invalid type context. ‘; } ob_start(); ?> ← Back to…Continue reading
define( ‘WP_DEBUG’, true ); define( ‘SAVEQUERIES’, true );Continue reading
/** * Custom function to change the name attribute of hidden fields in any form. * * @link https://wpforms.com/developers/how-to-change-the-name-attribute-of-a-hidden-field/ */ function wpf_field_properties_hidden( $properties, $field, $form_data ) { // Optional, you can limit to specific forms. Below, we restrict output to…Continue reading
function wpf_remove_currency_symbol() { ?>Continue reading
/* 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
add_filter(‘gutenberg_can_edit_post’, ‘__return_false’, 5); add_filter(‘use_block_editor_for_post’, ‘__return_false’, 5);Continue reading