Add SEO-friendly Breadcrumbs (copy)

// You can also use this snippet as a shortcode for more control. global $post; if ( ! is_home() ) { echo ‘ ‘; echo ‘Home / ‘; if ( is_category() || is_single() ) { the_category( ‘ / ‘ );…Continue reading

[Admin] – Manage clinic locations

// Register menus add_action(‘admin_menu’, ‘register_vtc_form_menus’); function register_vtc_form_menus() { add_menu_page(‘VTC Form’, ‘VTC Form’, ‘manage_options’, ‘vtc_form’, ‘display_vtc_form_admin_page’, ‘dashicons-forms’, 6); add_submenu_page(‘vtc_form’, ‘Manage Clinics’, ‘Manage Clinics’, ‘manage_options’, ‘vtc_form_clinics’, ‘display_vtc_form_clinics_page’); } // Display the main admin page content function display_vtc_form_admin_page() { if (!current_user_can(‘manage_options’)) return; echo…Continue reading

ConexionBD

// Código PHP echo ‘Se ejecutó el SEND’; // Database hostname define( ‘DB_HOST’, ‘localhost:3306’ ); // Database username define( ‘DB_USER’, ‘wp_j4cbx’ ); // Database password define( ‘DB_PASSWORD’, ‘uDFmf0E~?a2YgVj0’ ); // Nombre de la BD define( ‘DB_NAME’, ‘wp_n5p5f’ ); $conexion =…Continue reading

Allow SVG Files Upload (copy)

/** * Allow SVG uploads for administrator users. * * @param array $upload_mimes Allowed mime types. * * @return mixed */ add_filter( ‘upload_mimes’, function ( $upload_mimes ) { // By default, only administrator users are allowed to add SVGs. //…Continue reading

Location Inline Address

$contact_name = get_field(‘ph_tc_contact_name’); $contact_title = get_field(‘ph_tc_contact_title’); $phone = get_field(‘ph_tc_phone’); $phone_ext = get_field(‘ph_tc_phone_ext’); $fax = get_field(‘ph_tc_fax’); $phone_2_title = get_field(‘ph_tc_misc_contact_title’); $phone_2 = get_field(‘ph_tc_misc_contact_number’); $building = get_field(‘ph_tc_building’); $add_1 = get_field(‘ph_tc_address_1’); $add_2 = get_field(‘ph_tc_address_2’); $city = get_field(‘ph_tc_city’); $state = get_field(‘ph_tc_state’)->slug; $zip = get_field(‘ph_tc_zip’); $gmaps_link…Continue reading

Location Sticky Menu

$loc_services = get_field(‘service_location_relationship’); $loc_downloads = get_field(‘ph_tc_downloads’); $loc_relationship = get_field(‘ph_tc_location-gallery’); echo ‘ ‘; echo ‘INFO ’; if( $loc_services ) { echo ‘SERVICES ’; } if( $loc_downloads ) { echo ‘DOWNLOADS ’; } if( $loc_relationship ) { echo ‘PHOTOS ’; } echo ‘CONTACT‘; echo ‘ ‘;…Continue reading

Downloads List

$docs = get_field(‘ph_tc_downloads’); if( $docs ) { foreach( $docs as $doc_link ) { $docfile_name = $doc_link[‘ph_dl_name’]; $docfile_link = $doc_link[‘ph_dl_document’]; $dl_button = ‘[fusion_button link=”‘; $dl_button .= $docfile_link; $dl_button .= ‘” title=”” target=”_blank” link_attributes=”” alignment_medium=”” alignment_small=”” alignment=”” modal=”” hide_on_mobile=”small-visibility,medium-visibility,large-visibility” sticky_display=”normal,sticky” class=”download-btn” id=””…Continue reading