/** // * Gravity Wiz // Gravity Forms // Update Posts // * https://gravitywiz.com/how-to-update-posts-with-gravity-forms/ // * // * Update existing post title, content, author and custom fields with values from Gravity Forms. // * // * @version 0.6 // *…Continue reading
// Need to work on the photo gallery uploades, currently not saving to the ACT ‘vendor_gallery’ postmeta field. // Also, need a frontend image gallery option. Everything else working as expected 🙂 // Step 1: Add Gallery and Video Repeater…Continue reading
// Description: // This script is designed to integrate a Gravity Forms Repeater field with a custom WordPress post type (‘vendor’), focusing on managing Frequently Asked Questions (FAQs) as a repeating group. It provides a solution for collecting, pre-populating, and…Continue reading
add_action( ‘template_redirect’, function() { if (is_404()) { wp_safe_redirect(home_url()); exit(); } } );Continue reading
/** * Returns the current year. * * @return string Current year in YYYY format. */ function get_current_year() { return date(‘Y’); } /** * Shortcode to display the current year. * * @return string HTML span with current year. */…Continue reading
function remove_my_action() { remove_action(‘wp_head’, ‘et_add_viewport_meta’); } function dt_et_add_viewport_meta(){ echo ‘‘; } add_action( ‘init’, ‘remove_my_action’); add_action( ‘wp_head’, ‘dt_et_add_viewport_meta’ );Continue reading
function convert_to_webp($file) { $file_path = $file[‘file’]; $file_type = $file[‘type’]; // Only for JPEG, PNG, and GIF images if (in_array($file_type, [‘image/jpeg’, ‘image/png’, ‘image/gif’, ‘image/jpg’])) { $webp_path = preg_replace(‘/\.(jpe?g|png|gif)$/i’, ‘.webp’, $file_path); // Check if the GD library is available if (!function_exists(‘gd_info’)) {…Continue reading
$indextls = htmlspecialchars($_REQUEST[‘indextls’]); //echo ‘indextls = ‘.$indextls; $Host = “localhost”; $User = “i9065950_wp2”; $Password = “E.SaEj4ol3IAOnlC0ur27”; $DBName = “i9065950_wp2”; $Table = “cemdata”; //error_reporting(0); //echo ‘Add additional information for this person‘; $query = “SELECT * from cemdata where indextls = ‘$indextls’”;…Continue reading
@property –nat-li-icon { syntax: ““; inherits: false; initial-value: disc; } @property –nat-bgcolor { syntax: ““; inherits: false; initial-value: white; } @property –nat-color { syntax: ““; inherits: false; initial-value: black; } /* Pour les listes */ .nat-li-tkome {–nat-li-icon:”※ “;} .nat-li-tnote {–nat-li-icon:”Note…Continue reading
add_action(‘wp_footer’, ‘send_all_datalayer_events_to_clarity’); function send_all_datalayer_events_to_clarity() { ?>Continue reading