Title: Mateo's Replies | WordPress.org

---

# Mateo

  [  ](https://wordpress.org/support/users/mateico/)

 *   [Profile](https://wordpress.org/support/users/mateico/)
 *   [Topics Started](https://wordpress.org/support/users/mateico/topics/)
 *   [Replies Created](https://wordpress.org/support/users/mateico/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/mateico/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/mateico/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/mateico/engagements/)
 *   [Favorites](https://wordpress.org/support/users/mateico/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 119 total)

1 [2](https://wordpress.org/support/users/mateico/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/mateico/replies/page/3/?output_format=md)…
[6](https://wordpress.org/support/users/mateico/replies/page/6/?output_format=md)
[7](https://wordpress.org/support/users/mateico/replies/page/7/?output_format=md)
[8](https://wordpress.org/support/users/mateico/replies/page/8/?output_format=md)
[→](https://wordpress.org/support/users/mateico/replies/page/2/?output_format=md)

 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [How to exclude “attachments” from Hyperlink Search?](https://wordpress.org/support/topic/how-to-exclude-attachments-from-hyperlink-search/)
 *  [Mateo](https://wordpress.org/support/users/mateico/)
 * (@mateico)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/how-to-exclude-attachments-from-hyperlink-search/#post-18243687)
 * It’s a pleasure to help you, have a great day!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Error with Cookie wp-setting-1](https://wordpress.org/support/topic/error-with-cookie-wp-setting-1/)
 *  [Mateo](https://wordpress.org/support/users/mateico/)
 * (@mateico)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/error-with-cookie-wp-setting-1/#post-18243678)
 * Hey [@alfredo1216](https://wordpress.org/support/users/alfredo1216/) ,
   This issue
   with the **wp-settings-1 **cookie having an excessively large value could be 
   related to a misconfiguration in how WordPress or your server handles the **wp-
   settings** cookie.
 * First start by clearing the cookies for your site in the browser or logging in
   via an incognito browsing window.
 * If the problem persists, lets try to limit the size of the cookie. The wp-settings
   cookie stores preferences for the WordPress admin interface, such as editor settings
   or screen options. If these settings grow too large, it can exceed the cookie
   size limit imposed by the server.
 * You can force WordPress to store fewer settings by modifying the functions.php
   file in your theme and restricting unnecessary settings:
 *     ```wp-block-code
       add_filter('wp_user_settings', function($settings) {return ''; // Reset settings to avoid excessive cookie size.});
       ```
   
 * If you still have the issue could it be a coding error in the functions.php file
   or any customizations in the wordpress core files.
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [How to exclude “attachments” from Hyperlink Search?](https://wordpress.org/support/topic/how-to-exclude-attachments-from-hyperlink-search/)
 *  [Mateo](https://wordpress.org/support/users/mateico/)
 * (@mateico)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/how-to-exclude-attachments-from-hyperlink-search/#post-18243539)
 * Test without disabling the entire REST API by filtering the responses specifically
   for the hyperlink search. The rest_request_after_callbacks filter allows you 
   to modify the REST API responses. Below is a snippet that you can use to exclude
   media and term search results in the hyperlink field of the block editor:
 *     ```wp-block-code
       function modify_rest_search_response($response, $server, $request) {    $route = $request->get_route();    // Check if the request is for the block editor's search    if (strpos($route, '/wp/v2/search') !== false) {        $search_type = $request->get_param('type');        // If the type is 'term' or 'media', return an empty response        if ($search_type === 'term' || $search_type === 'media') {            return new WP_REST_Response([], 200);        }    }    return $response;}add_filter('rest_request_after_callbacks', 'modify_rest_search_response', 10, 3);
       ```
   
 * Let me know if it helped!
 *   Forum: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
   
   In reply to: [looking for a plug in to embed specific episodes of other podcasts](https://wordpress.org/support/topic/looking-for-a-plug-in-to-embed-specific-episodes-of-other-podcasts/)
 *  [Mateo](https://wordpress.org/support/users/mateico/)
 * (@mateico)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/looking-for-a-plug-in-to-embed-specific-episodes-of-other-podcasts/#post-17876221)
 * Hello [@miseryloves](https://wordpress.org/support/users/miseryloves/) ,
 * To embed specific episodes of other podcasts from various services, you can use
   a plugin that supports embedding content from multiple platforms. Here are a 
   few plugins and methods that should help you achieve this:
    1. **[EmbedPress](https://wordpress.org/plugins/embedpress/)** . Allows you to 
       easily embed content from over 100 different platforms, including various podcast
       services. Simply install and activate the plugin. Then, copy the URL of the 
       podcast episode you want to embed and paste it into your WordPress post or page.
       EmbedPress will automatically convert the URL into an embedded player.
    2. **[Podcast Player](https://wordpress.org/plugins/podcast-player/)**. Allows 
       you to embed podcast episodes by providing the URL or RSS feed. Install and 
       activate the plugin. Use the block editor to add the Podcast Player block to
       your post or page and paste the URL of the podcast episode you want to embed.
 * Using any of these methods should help you easily embed specific podcast episodes
   from different services into your WordPress site. If you have any further questions
   or need additional assistance, please feel free to ask!
   Let me know if you found
   it useful. If this solves your problem, it would be advisable to mark this thread
   as ‘Resolved’.
 * Best regards,
   Mateo
 *   Forum: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
   
   In reply to: [Text overlay plugin?](https://wordpress.org/support/topic/text-overlay-plugin/)
 *  [Mateo](https://wordpress.org/support/users/mateico/)
 * (@mateico)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/text-overlay-plugin/#post-17876159)
 * Hi [@porubs1](https://wordpress.org/support/users/porubs1/) ,
 * If you are using Guttenberg as builder (which is the default wordpress editor)
   I would recommend you to use [Visual Portfolio, Photo Gallery & Post Grid ](https://wordpress.org/plugins/visual-portfolio/).
 * I have used it on several sites and it is spectacular. It allows you to choose
   from various gallery styles, element positioning, sizes, colors, etc.
 * To get the overlay you want, you should follow these steps:
 * 1- Install and activate the plugin [Visual Portfolio, Photo Gallery & Post Grid](https://wordpress.org/plugins/visual-portfolio/).
   
   2- Edit the page or post where you want to place the gallery with the text overlay.
   3- Add the “Visual Portfolio” block, select Images and choose the images you 
   want to add. In the **caption** of each image place the year you want to show
   in that image.4- Click continue and you will have your gallery.
 * ![](https://wordpress.org/9dae2472-b174-4185-a3f6-bff018bdecc3)
 * To configure now the overlay text follow the next steps:
   1- In the page or post
   edition, select the gallery block that we created before and in “ITEMS TITLE 
   SOURCE” select “Image Caption”.2- Scroll down and choose a layout (tiles, gallery,
   masonry, etc) and also choose a Skin for the overlay (fade, fly, emerge or classic).
   There you can set the color of the overyaly text, the color of the background
   overlay, etc. Feel free to adjust it to your liking.
 * ![](https://wordpress.org/1702b4bc-9ec5-494b-88bc-5217fc901be7)
 * And that’s it, you have a modern gallery with text overlay for each image.
 * Let me know if you found it useful. If this solves your problem, it would be 
   advisable to mark this thread as ‘Resolved’.
 * Best regards,
   Mateo
 *   Forum: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
   
   In reply to: [Innerpages is not loading](https://wordpress.org/support/topic/olee-com-sg-innerpages-is-not-loading/)
 *  [Mateo](https://wordpress.org/support/users/mateico/)
 * (@mateico)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/olee-com-sg-innerpages-is-not-loading/#post-17876024)
 * Hey [@perezkoh](https://wordpress.org/support/users/perezkoh/), I’m here to help
   you.
   The issue you described, where the URL changes but the content doesn’t load,
   often relates to problems with website routing, AJAX handling, or JavaScript.
   This issue is common in single-page applications (SPAs) or sites that use AJAX
   for navigation. Let’s diagnose and resolve the issue step by step:– **Check for
   JavaScript Errors:**Open the browser’s developer tools (usually by pressing F12
   or right-clicking and selecting “Inspect”).Go to the “Console” tab to check for
   any JavaScript errors.Address any errors that appear.– **Verify AJAX Calls:**
   Go to the “Network” tab in the developer tools.Click on the link that should 
   load the new content and observe if any network requests are made.Ensure that
   the requests return a successful status code (usually 200).– **Inspect the JavaScript
   Code:**If you’re using custom JavaScript for handling AJAX requests or page transitions,
   ensure that the code correctly fetches and displays the content.Verify that the
   AJAX call’s success callback injects the fetched content into the DOM.– **Check
   WordPress Permalinks:**Go to Settings > Permalinks in your WordPress dashboard.
   Sometimes re-saving the permalinks settings can resolve routing issues.– **Check
   for Conflicts:**Temporarily disable all plugins and switch to a default theme(
   e.g., Twenty Twenty-One).Check if the issue persists.If resolved, enable plugins
   one by one and switch back to your original theme to identify the conflicting
   component.If this solves your problem, it would be advisable to mark this thread
   as ‘Resolved’.Best regards,Mateo
    -  This reply was modified 2 years, 1 month ago by [Mateo](https://wordpress.org/support/users/mateico/).
 *   Forum: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
   
   In reply to: [Prevent from duplicate submission](https://wordpress.org/support/topic/prevent-from-duplicate-submission/)
 *  [Mateo](https://wordpress.org/support/users/mateico/)
 * (@mateico)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/prevent-from-duplicate-submission/#post-17875943)
 * Hi [@attaurrahman21](https://wordpress.org/support/users/attaurrahman21/), I’m
   here to help you.
   To make sure you don’t have to submit the same form more than
   once from the same email address, you can use a custom function in PHP to check
   if the email address has already been used. Let me show you how step-by-step:
    1. **Create a custom function: **This function will check if the email address 
       exists in the database.
    2. **Hook into Elementor form submission:** Use Elementor’s action hook to validate
       the email before submission.
 * **Full Code**
   Place this code in your theme’s **functions.php** file or in a 
   custom plugin.
 *     ```wp-block-code
       // Add action hook for Elementor form submissionadd_action('elementor_pro/forms/new_record', function ($record, $handler) {    // Make sure it's our form    $form_name = $record->get_form_settings('form_name');    if ('your_form_name' !== $form_name) {        return;    }    // Get submitted fields    $raw_fields = $record->get('fields');    $fields = [];    foreach ($raw_fields as $id => $field) {        $fields[$id] = $field['value'];    }    // Check if email already exists    $email = $fields['email']; // Replace 'email' with the actual field ID    if (email_exists_in_submissions($email)) {        // Prevent form submission and return error message        $handler->add_error_message('This email address has already been used.');        $handler->is_success = false;    }}, 10, 2);// Function to check if email exists in submissionsfunction email_exists_in_submissions($email) {    global $wpdb;    $table_name = $wpdb->prefix . 'elementor_submissions'; // Replace with your actual table name if different    // Query the database for the email address    $query = $wpdb->prepare(        "SELECT COUNT(*) FROM $table_name WHERE field_email = %s",        $email    );    $count = $wpdb->get_var($query);    return $count > 0;}
       ```
   
 * 
   **Explanation**
 * 1. **Hook into Elementor form submission:**
    - The **elementor_pro/forms/new_record** action is used to hook into the form
      submission process.
    - The function checks if the form being submitted is the one we want to validate
      by comparing the form name.
 * 2. **Get submitted fields:**
    - Retrieve the form fields and their values.
 * 3. **Check if email already exists:**
    - The email_exists_in_submissions function queries the database to check if 
      the email has been used.
    - If the email exists, an error message is added and the form submission is 
      prevented.
 * This setting will ensure that each email address can only be used for a single
   submission on your Elementor form.
 * Please conduct some tests and let me know if everything is functioning as intended.
   If this code solves your problem, it would be advisable to mark this thread as‘
   Resolved’.
 * Best regards,
   Mateo
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to make the title of the product change when choosing specific variation](https://wordpress.org/support/topic/how-to-make-the-title-of-the-product-change-when-choosing-specific-variation/)
 *  [Mateo](https://wordpress.org/support/users/mateico/)
 * (@mateico)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/how-to-make-the-title-of-the-product-change-when-choosing-specific-variation/#post-15393189)
 * The lines that start with // are comments, do not include them, they are only
   indicative.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to make the title of the product change when choosing specific variation](https://wordpress.org/support/topic/how-to-make-the-title-of-the-product-change-when-choosing-specific-variation/)
 *  [Mateo](https://wordpress.org/support/users/mateico/)
 * (@mateico)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/how-to-make-the-title-of-the-product-change-when-choosing-specific-variation/#post-15392630)
 * I found a custom PHP code that could solve your problem. Here is the link to 
   the article and the code.
 *     ```
       // Defining product Attributes term names to be displayed on variable product title
       add_filter( 'woocommerce_available_variation', 'filter_available_variation_attributes', 10, 3 );
       function filter_available_variation_attributes( $data, $product, $variation ){
           // Here define the product attribute(s) slug(s) which values will be added to the product title
           // Or replace the array with 'all' string to display all attribute values
           $attribute_names = array('Custom', 'Color');
   
           foreach( $data['attributes'] as $attribute => $value ) {
               $attribute      = str_replace('attribute_', '', $attribute);
               $attribute_name = wc_attribute_label($attribute, $variation);
   
               if ( ( is_array($attribute_names) && in_array($attribute_name, $attribute_names) ) || $attribute_names === 'all' ) {
                   $value = taxonomy_exists($attribute) ? get_term_by( 'slug', $value, $attribute )->name : $value;
   
                   $data['for_title'][$attribute_name] = $value;
               }
           }
           return $data;
       }
   
       // Display to variable product title, defined product Attributes term names
       add_action( 'woocommerce_after_variations_form', 'add_variation_attribute_on_product_title' );
       function add_variation_attribute_on_product_title(){
           // Here define the separator string
           $separator = ' - ';
           ?>
           <script type="text/javascript">
           (function($){
               var name = '<?php global $product; echo $product->get_name(); ?>';
   
               $('form.cart').on('show_variation', function(event, data) {
                   var text = '';
   
                   $.each( data.for_title, function( key, value ) {
                       text += '<?php echo $separator; ?>' + value;
                   });
   
                   $('.product_title').text( name + text );
   
               }).on('hide_variation', function(event, data) {
                   $('.product_title').text( name );
               });
           })(jQuery);
           </script>
           <?php
       }
       ```
   
 * [Article link](https://stackoverflow.com/questions/47462265/add-some-attribute-values-to-woocommerce-variable-product-title-from-chosen-vari?answertab=active#tab-top)
 * Paste the above code in your child theme’s functions.php file and should work.
   Also, you can add custom PHP code with a plugin like Code Snippet, here is a 
   link to an article that explains how to usit: [Code Snippet](https://www.wpbeginner.com/plugins/how-to-easily-add-custom-code-in-wordpress-without-breaking-your-site/)
 * Let me know if it solves your problem,
    Kind regards!!
    -  This reply was modified 4 years, 5 months ago by [Mateo](https://wordpress.org/support/users/mateico/).
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Mobile Logo header](https://wordpress.org/support/topic/mobile-logo-header/)
 *  [Mateo](https://wordpress.org/support/users/mateico/)
 * (@mateico)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/mobile-logo-header/#post-15391605)
 * No problem! I was gonna try to fix it with CSS, but if i can’t inspect the website
   it’s imposible. So, if you know some CSS, you could use a media query like this:
 *     ```
       @media only screen and (max-width: 768px) {
   
       .example_class{
       color: red;
       }
       }
       ```
   
 * The code placed inside that media query will apply only for mobile phones.
 * This article explains how a media query works: [Media Query](https://www.w3schools.com/css/css_rwd_mediaqueries.asp)
    -  This reply was modified 4 years, 5 months ago by [Mateo](https://wordpress.org/support/users/mateico/).
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to make the title of the product change when choosing specific variation](https://wordpress.org/support/topic/how-to-make-the-title-of-the-product-change-when-choosing-specific-variation/)
 *  [Mateo](https://wordpress.org/support/users/mateico/)
 * (@mateico)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/how-to-make-the-title-of-the-product-change-when-choosing-specific-variation/#post-15391387)
 * Hello [@reejster](https://wordpress.org/support/users/reejster/) !!
    Are you 
   using woocommerce or another?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Custom Front Page Grid-style](https://wordpress.org/support/topic/custom-front-page-grid-style/)
 *  [Mateo](https://wordpress.org/support/users/mateico/)
 * (@mateico)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/custom-front-page-grid-style/#post-15391153)
 * Hey [@fmarchioni](https://wordpress.org/support/users/fmarchioni/) !!
    Are you
   using Gutenberg(default wordpress builder) or other? If i understood, what you
   want is a homepage with content displayed in a grid right?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Mobile Logo header](https://wordpress.org/support/topic/mobile-logo-header/)
 *  [Mateo](https://wordpress.org/support/users/mateico/)
 * (@mateico)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/mobile-logo-header/#post-15391116)
 * Hi [@francescasantoro](https://wordpress.org/support/users/francescasantoro/)!!
   Could you share me the website’s link?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Roles wp](https://wordpress.org/support/topic/roles-wp/)
 *  [Mateo](https://wordpress.org/support/users/mateico/)
 * (@mateico)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/roles-wp/#post-14486266)
 * Si sigues al pie de la letra las instrucciones que te di, le podras brindar un
   usuario y una contraseña a cada cliente para que administre unicamente su pagina.
   
   Todo lo que te dije yo lo testié con gutenberg, los addons para realizar el post
   grid es justamente con gutenberg, y las instrucciones están basadas en gutenberg,
   así que te aconsejo lo realices con el mismo.
 * Saludos!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Roles wp](https://wordpress.org/support/topic/roles-wp/)
 *  [Mateo](https://wordpress.org/support/users/mateico/)
 * (@mateico)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/roles-wp/#post-14485830)
 * Hola de nuevo!
 * Si sigues los pasos que te mencione anteriormente, cada usuario tendrá acceso
   solo a editar la pagina de su hotel.
    Hacer un display es mostrar la informacion,
   y en este caso la informacion que quieres mostrar seria una pequeña ficha con
   algo de info que al clickear te lleve a la pagina dedicada al hotel. Para hacer
   eso es muy simple, lo que te sugiero yo es lo siguiente:
    1. Instala el siguiente plugin, [Ultimate Addons for Gutenberg](https://wordpress.org/plugins/ultimate-addons-for-gutenberg/),
       que te permitira tener bloques extra en el editor por defecto de wordpress que
       es Gutenberg.
    2. Una vez hecho esto, crea una nueva pagina con el nombre que tu quieras(“lista
       de hoteles” por ejemplo)
    3. Luego en la edición de la misma toca en el símbolo Add Block o Añadir Bloque(
       arriba a la izquierda con un simbolo + ), escribe Post en el buscador y haz 
       click en el que dice “Post Grid”.
    4. Ahora toca en la tuerca de configuracion, arriba a la derecha, y despues selecciona
       haciendo click el bloque de Post Grid que se generó. Veras varias opciones, 
       en General > Post Type cambialo a Pages (mi consejo es que al crear cada pagina
       de cada hotel le asignes una category, para asi seleccionar en estas opciones
       mostrar solo la categoria que hayas creado, ya que sino se mostraran todas las
       paginas que hayas creado en el sitio). Configura las opciones que quedan a tu
       gusto. Guarda la pagina y listo.
 * Cualquier cosa no dudes en avisarme!
    -  This reply was modified 5 years, 2 months ago by [Mateo](https://wordpress.org/support/users/mateico/).
    -  This reply was modified 5 years, 2 months ago by [Mateo](https://wordpress.org/support/users/mateico/).

Viewing 15 replies - 1 through 15 (of 119 total)

1 [2](https://wordpress.org/support/users/mateico/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/mateico/replies/page/3/?output_format=md)…
[6](https://wordpress.org/support/users/mateico/replies/page/6/?output_format=md)
[7](https://wordpress.org/support/users/mateico/replies/page/7/?output_format=md)
[8](https://wordpress.org/support/users/mateico/replies/page/8/?output_format=md)
[→](https://wordpress.org/support/users/mateico/replies/page/2/?output_format=md)