add_filter( ‘frm_filtered_lookup_options’, ‘change_lookup_options’, 10, 2 ); function change_lookup_options( $options, $args ) { if ( $args[‘field’]->id == 1137) { // change 808 to the id of the user ID field from the other form foreach ( $options as $k => $option…Continue reading
add_filter( ‘aioseo_disable_title_rewrites’, ‘aioseo_disable_term_title_rewrites’ ); function aioseo_disable_term_title_rewrites( $disabled ) { if ( is_category() || is_tag() || is_tax() ) { return true; } return false; }Continue reading
/** * 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
// Basic author information $author_id = get_the_author_meta(‘ID’); $author = [ ‘givenname’ => get_field(‘author_givenname’, ‘user_’.$author_id), ‘familyname’ => get_field(‘author_familyname’, ‘user_’.$author_id), ‘middlename’ => get_field(‘author_middlename’, ‘user_’.$author_id), ‘prefix’ => get_field(‘author_prefix’, ‘user_’.$author_id), ‘suffix’ => get_field(‘author_suffix’, ‘user_’.$author_id), ‘gender’ => get_field(‘author_gender’, ‘user_’.$author_id), ‘description’ => get_field(‘author_description’, ‘user_’.$author_id), ‘website’ =>…Continue reading
function generate_article_schema() { global $post; $author_id = ‘user_’ . get_the_author_meta(‘ID’); $org_url = get_field(‘org_url’, $author_id); // Determine if this is a BlogPosting or Article $post_type = (get_post_type() === ‘post’) ? ‘BlogPosting’ : ‘Article’; $schema = [ “@context” => “https://schema.org”, “@type” =>…Continue reading
function generate_profile_page_schema() { // Basic site/author info $site = [ ‘name’ => ‘Site Name’, ‘description’ => ‘Site Description’, ‘language’ => ‘en-US’, ‘website’ => ‘https://example.com’ ]; // Author details $author = [ ‘givenName’ => ‘John’, ‘familyName’ => ‘Doe’, ‘birthDate’ => ‘1980-01-01’,…Continue reading
function generate_about_page_schema() { // Basic author/site info $author = [ ‘givenName’ => ‘Your Given Name’, ‘familyName’ => ‘Your Family Name’, ‘website’ => ‘https://yourwebsite.com’, ‘image’ => ‘https://yourwebsite.com/images/profile.jpg’, ‘description’ => ‘Your author description’ ]; // Education & credentials $education = [ ‘name’…Continue reading
add_action(‘acf/init’, function() { if (!function_exists(‘acf_add_local_field_group’)) { return; } acf_add_local_field_group(array( ‘key’ => ‘group_services_catalog’, ‘title’ => ‘Services Catalog’, ‘fields’ => array( array( ‘key’ => ‘field_service_catalog’, ‘label’ => ‘Service Catalog’, ‘name’ => ‘service_catalog’, ‘type’ => ‘group’, ‘sub_fields’ => array( array( ‘key’ => ‘field_catalog_name’,…Continue reading