// Reference URL: https://facetwp.com/help-center/listing-templates/wp-archive-page/ // // This script is used to detect the query loop on the post category pages below and // enables filter functionality via FacetWP facets. // // Applies to Post Categories: // – Real Weddings //…Continue reading
function insert_post_filter () { echo ‘ ‘; // get the current taxonomy term $term = get_queried_object(); the_field(‘post_filters_section’, $term); echo ‘ ‘; echo ‘ ‘; } add_action(‘loop_start’, ‘insert_post_filter’);Continue reading
// This script is designed to modify the query arguments used by WP Grid Builder // for vendor taxonomy archives, ensuring that only relevant posts are displayed // according to the current URL path. It targets a specific grid layout…Continue reading
add_filter(‘term_link’, ‘custom_vendor_term_link’, 10, 3); // Vendor Detail Link Enrichment // Ensure that all post terms listed on vendor detail layout link back to their // respective (deep link) term page. function custom_vendor_term_link($url, $term, $taxonomy){ switch ($taxonomy) { case ‘vendor-location’: return…Continue reading
echo “hello shortcode!!”; $a = 1; echo $a.’‘; echo do_shortcode(“[vision id='{$a}’]”); //echo do_shortcode(‘[vision id=”1″]’);Continue reading
if ( is_singular( ‘sfwd-courses’ ) ) { echo ‘ ‘; echo ‘ Course Faculty ‘; $authors = get_field(‘lead_faculty’); foreach($authors as $author_id) { $user_info = get_userdata($author_id); $username = $user_info->user_login; $first_name = $user_info->first_name; $last_name = $user_info->last_name; $email = $user_info->user_email; $username = $user_info->user_login;…Continue reading
namespace ARI; class WPFusionHubSpotOnDemandSync { public function __constructor() { if(!is_admin()) { \add_action(‘wpf_woocommerce_payment_complete’, [$this, ‘handle_payment_complete’], 0, 2); } } public function log($msg, $level= ‘info’) { \wpf_log($level, \wpf_get_current_user_id(), $msg, [‘source’ => __CLASS__ . ‘::’ . __FUNCTION__]); } public function handle_payment_complete($order_id, $contact_id) {…Continue reading
/* Add autofocus to the first form field of the form Original doc link: https://wpforms.com/developers/how-to-add-autofocus-on-your-form/ For support, please visit: https://www.facebook.com/groups/wpformsvip */ function wpf_dev_autofocus() { ?>Continue reading
function display_year() { $year = date(‘Y’); return $year; } add_shortcode(‘year’, ‘display_year’);Continue reading
function render_system_notices_page() { echo ‘ ‘; echo ‘ Systemmeldungen ‘; echo ‘ ‘; do_action( ‘admin_notices’ ); } function register_system_notices_submenu_page() { add_submenu_page( ‘index.php’, // Slug des Hauptmenüs (Dashboard) ‘Systemmeldungen’, ‘Systemmeldungen’, ‘manage_options’, ‘system-notices’, ‘render_system_notices_page’ ); } add_action(‘admin_menu’, ‘register_system_notices_submenu_page’); function move_plugin_notices_to_custom_view() { global…Continue reading