Title: Andrés Sanhueza's Replies | WordPress.org

---

# Andrés Sanhueza

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

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

 Search replies:

## Forum Replies Created

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

1 [2](https://wordpress.org/support/users/atoon/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/atoon/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Block Builder - Lazy Blocks] Plugin Preventing Adding Blocks to Widget Area](https://wordpress.org/support/topic/plugin-preventing-adding-blocks-to-widget-area/)
 *  [Andrés Sanhueza](https://wordpress.org/support/users/atoon/)
 * (@atoon)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/plugin-preventing-adding-blocks-to-widget-area/#post-14790246)
 * I had the same issue. I didn’t had a `wp-edit-post` dependence either, but I 
   did had a similar line in a custom plugin I use:
 * `wp_enqueue_script('wd-editor', plugin_dir_url( __FILE__ ) . 'js/editor.js', 
   array( 'wp-blocks', 'wp-dom' ), filemtime( get_stylesheet_directory() . 'js/editor.
   js' ), true );`
 * I changed to something similar to what [@azragh](https://wordpress.org/support/users/azragh/)
   said:
 * `wp_enqueue_script( 'theme-blocks', plugin_dir_url( __FILE__ ) .'js/blocks.js',
   array( 'wp-blocks', 'wp-dom-ready' ) );`
 * And now it works with the Lazy Blocks plugin activated. I’m not sure what’s the
   exact issue.
 * Edit: it didn’t work actually, but indeed the problem is related to Lazy Blocks
   as the widgets only works when the plugin is deactivated.
    -  This reply was modified 4 years, 8 months ago by [Andrés Sanhueza](https://wordpress.org/support/users/atoon/).
      Reason: typo
    -  This reply was modified 4 years, 8 months ago by [Andrés Sanhueza](https://wordpress.org/support/users/atoon/).
    -  This reply was modified 4 years, 8 months ago by [Andrés Sanhueza](https://wordpress.org/support/users/atoon/).
    -  This reply was modified 4 years, 8 months ago by [Andrés Sanhueza](https://wordpress.org/support/users/atoon/).
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [“No results found” when trying to add any block to a widget area](https://wordpress.org/support/topic/no-results-found-when-trying-to-add-any-block-to-a-widget-area/)
 *  Thread Starter [Andrés Sanhueza](https://wordpress.org/support/users/atoon/)
 * (@atoon)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/no-results-found-when-trying-to-add-any-block-to-a-widget-area/#post-14790241)
 * Update: It’s «Partially solved»: It has something to do with the Lazy Blocks 
   plugin, yet I’m not sure what it is, but there’s a thread for it: [https://wordpress.org/support/topic/plugin-preventing-adding-blocks-to-widget-area/](https://wordpress.org/support/topic/plugin-preventing-adding-blocks-to-widget-area/)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Jetpack - WP Security, Backup, Speed, & Growth] Jetpack blocks don’t show at all on the «add new block» menu](https://wordpress.org/support/topic/jetpack-blocks-dont-show-at-all-on-the-add-new-block-menu/)
 *  Thread Starter [Andrés Sanhueza](https://wordpress.org/support/users/atoon/)
 * (@atoon)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/jetpack-blocks-dont-show-at-all-on-the-add-new-block-menu/#post-14119802)
 * I disconnected and reconnected and it started working again. Thanks!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Pods - Custom Content Types and Fields] Change how the title of a Pod shows in a relationship field and the admin column](https://wordpress.org/support/topic/change-how-the-title-of-a-pod-shows-in-a-relationship-field-and-the-admin-column/)
 *  Thread Starter [Andrés Sanhueza](https://wordpress.org/support/users/atoon/)
 * (@atoon)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/change-how-the-title-of-a-pod-shows-in-a-relationship-field-and-the-admin-column/#post-13108195)
 * I used another code [based on a snipped posted on Github](https://github.com/pods-framework/pods/issues/3379#issuecomment-391289779),
   but still don’t work
 *     ```
       add_filter('pods_field_pick_data_ajax_items', 'show_first_and_lastname_in_pick_field', 1, 6);
   
       function show_first_and_lastname_in_pick_field($items, $name, $value, $field, $pod, $id){
               if ($name == "lugar_de_eventos") {
                   foreach ( $items as $key => &$data ) {
                       if( $data['id'] ){
                           $p = pods('lugar_de_eventos', $data['id']);
                           $namer = $p->field('name');
                                   $city = $p->field('venue_city');
       							$country = $p->field('venue_country');
                          $data['text']  = $namer . ' (' . $city . ', ' . $country  . ')';
       					$data['name']  = $namer . ' (' . $city . ', ' . $country  . ')';
                       }
                   }
               }
               return $items;
           }
       ```
   
 * BTW:
    - The pod that the relationship field calls is `lugar_de_eventos`
    - The pod where the relationship field is located is `eventos`
    - The relationship field itself is `venue_rel`. It has a list view.
    - The `lugar de eventos` fields I want to display on the `venue_rel` field when
      showing on the `eventos` pods (or any other relationship field) are `name`,`
      venue city` and `venue_country`
    - I’m posting the snippets on a custom plugin.
 *  -  This reply was modified 5 years, 10 months ago by [Andrés Sanhueza](https://wordpress.org/support/users/atoon/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[YARPP - Yet Another Related Posts Plugin] Exclude core "page" post types from related post not using templates](https://wordpress.org/support/topic/exclude-core-page-post-types-from-related-post-not-using-templates/)
 *  Thread Starter [Andrés Sanhueza](https://wordpress.org/support/users/atoon/)
 * (@atoon)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/exclude-core-page-post-types-from-related-post-not-using-templates/#post-5128486)
 * I wish to display related post from various custom post types, but not all, including
   the “core” page post type, but I don’t know how to officially exclude it while
   including the rest (unlike “custom” post types, that are added to the related
   post scheme at will).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Pods - Custom Content Types and Fields] Problem with excluding a pod with a post_tag on a pods widget](https://wordpress.org/support/topic/problem-with-excluding-a-pod-with-a-post_tag-on-a-pods-widget/)
 *  Thread Starter [Andrés Sanhueza](https://wordpress.org/support/users/atoon/)
 * (@atoon)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/problem-with-excluding-a-pod-with-a-post_tag-on-a-pods-widget/#post-4724055)
 * I’m working with the core “post” type.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Pods - Custom Content Types and Fields] Problem with excluding a pod with a post_tag on a pods widget](https://wordpress.org/support/topic/problem-with-excluding-a-pod-with-a-post_tag-on-a-pods-widget/)
 *  Thread Starter [Andrés Sanhueza](https://wordpress.org/support/users/atoon/)
 * (@atoon)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/problem-with-excluding-a-pod-with-a-post_tag-on-a-pods-widget/#post-4724040)
 * I have tried above solutions, but the problem persists. I don’t see any pattern
   in the tags that work to the ones that don’t. Something worth of note is that
   I’m using the tag taxonomy to support two kinds of post types, but I still don’t
   get why it don’t work at times.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Dynamic Widgets] Add option for post format archives](https://wordpress.org/support/topic/add-option-for-post-format-archives/)
 *  Thread Starter [Andrés Sanhueza](https://wordpress.org/support/users/atoon/)
 * (@atoon)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/add-option-for-post-format-archives/#post-4664198)
 * No, I was thinking about these: [https://codex.wordpress.org/Post_Formats](https://codex.wordpress.org/Post_Formats).
   Some kind of Tumblr-like taxonomy put in core a while ago. The permalink for 
   the archives is `/type/[format]/`
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Twitter Widget Pro] Keep fixed the number of items displayed](https://wordpress.org/support/topic/keep-fixed-the-number-of-items-displayed/)
 *  Thread Starter [Andrés Sanhueza](https://wordpress.org/support/users/atoon/)
 * (@atoon)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/keep-fixed-the-number-of-items-displayed/#post-3151834)
 * It could also be related to the fact if one disable showing some kind of twitts,
   like replies or RT, but I’m not sure.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [WordPress gets hacked at wp-blog-header.php or index.php](https://wordpress.org/support/topic/wordpress-gets-hacked-at-wp-blog-headerphp-or-indexphp/)
 *  Thread Starter [Andrés Sanhueza](https://wordpress.org/support/users/atoon/)
 * (@atoon)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/wordpress-gets-hacked-at-wp-blog-headerphp-or-indexphp/#post-2850134)
 * I noticed there where some hidden files of a previous hack in a plugin folder,
   I deleted it and the problem disappeared for about a week, but it started again
   twice. Only the second time I got to see an access log [http://pastebin.com/TXKGagBj](http://pastebin.com/TXKGagBj).
   It looks that at first the ‘hacker’ looks for old files that are supposed to 
   contain hacks. As those are all deleted or never existed, then the hacker _logs_
   into the site and edit a theme file. I’m not entirely sure about what to do in
   that case. I have two plugins that limit login attemp after a few failed tries,
   so I guess the hack knew a password beforehand. The obvious thing is to change
   my user password, yet there are other users on the site I guess I must ask them
   for the same. But even with that, I don’t know which user the hack used or if
   it was something else more obscure that is not obvious by the log itself and 
   could have involved the MySQL database. Is there any way to keep track of it?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [WordPress gets hacked at wp-blog-header.php or index.php](https://wordpress.org/support/topic/wordpress-gets-hacked-at-wp-blog-headerphp-or-indexphp/)
 *  Thread Starter [Andrés Sanhueza](https://wordpress.org/support/users/atoon/)
 * (@atoon)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/wordpress-gets-hacked-at-wp-blog-headerphp-or-indexphp/#post-2850086)
 * For some reason, the logs of the server don’t say anything about those hacks 
   and the modified date of the files changed don’t change either. I deleted a bunch
   of older files unrelated to WordPress and tested some security plugins with no
   luck.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Avoid the WYSIWYG editor replaces b and i tags with strong and em](https://wordpress.org/support/topic/avoid-the-wysiwyg-editor-replaces-and-tags-with-and/)
 *  Thread Starter [Andrés Sanhueza](https://wordpress.org/support/users/atoon/)
 * (@atoon)
 * [14 years ago](https://wordpress.org/support/topic/avoid-the-wysiwyg-editor-replaces-and-tags-with-and/#post-2691198)
 * I solved it by reading the [Codex](http://codex.wordpress.org/TinyMCE) and some
   [TinyMCE documentation](http://www.tinymce.com/wiki.php/Configuration:Cleanup/Output).
   Something like this has to be added to a plugin or theme function:
 *     ```
       function myformatTinyMCE($in)
       {
        $in['inline_styles']=false;
        $in['extended_valid_elements']="b,i";
        return $in;
       }
       add_filter('tiny_mce_before_init', 'myformatTinyMCE' );
       ```
   
 *   Forum: [Requests and Feedback](https://wordpress.org/support/forum/requests-and-feedback/)
   
   In reply to: [What Should 2011 Hold for WordPress?](https://wordpress.org/support/topic/what-should-2011-hold-for-wordpress/)
 *  [Andrés Sanhueza](https://wordpress.org/support/users/atoon/)
 * (@atoon)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/what-should-2011-hold-for-wordpress/page/3/#post-1832589)
 * Summarizing stuff I have proposed elsewere:
 * —A better approach to post formats, like something that actually simplifies the
   UI with only the needed fields instead of letting the theme do calculations of
   how interpret it, as I explained better here: [http://wordpress.org/extend/ideas/topic/a-better-approach-to-post-formats](http://wordpress.org/extend/ideas/topic/a-better-approach-to-post-formats)
   —
   Add a ‘question’ post format. This is very nit-picky, yet I suggest it because
   post formats are a fixed thing by now and it’s actually used in some micro-blogging
   systems. I try to explain it better here (including replies) [http://wordpress.org/extend/ideas/topic/add-a-question-post-format](http://wordpress.org/extend/ideas/topic/add-a-question-post-format)—
   Consider upgrading the Blicki plugin. —Consider upgrading the self-hosted VideoPress
   framework (I think is considered for the 3.2 release, but still). —Convert the
   links feature into a custom post type. By now it looks like something like a 
   plugin should do, so instead of removing it, it could be better make a post type
   to harmonize better with the rest of the system and maintaining all the current
   features. —Allow the taxonomies to hold metadata. This by itself may solve a 
   lot of problems that by now have to resort to proprietary workarounds. —Fix a
   great bunch of bugs with the shortcode API that are still waiting in the trac.—
   In general, instead of adding to many nitpicky stuff for each release that’s 
   hardly extensible for the users, try to make the API even more flexible and trying
   to get an approach similar to CCK in Drupal. Drupal has the problem of having
   a ridiculous learning curve, but it actually much more flexible in terms of how
   can you play with fields, views and stuff. For example, you may allow to put 
   some of the default metaboxes more than once in a custom post type (if that’s
   already possible, don’t worry), and give more flexibility to the options of the
   default metaboxes, even if they aren’t used in core by default (something like,
   allowing something like a “post thumbnail” metabox that can hold any kind of 
   file from the library, not just images and maybe more than one per page).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Shortcode that counts each ocurrence of it in a post](https://wordpress.org/support/topic/shortcode-that-counts-each-ocurrence-of-it-in-a-post/)
 *  Thread Starter [Andrés Sanhueza](https://wordpress.org/support/users/atoon/)
 * (@atoon)
 * [16 years ago](https://wordpress.org/support/topic/shortcode-that-counts-each-ocurrence-of-it-in-a-post/#post-1470650)
 * That works, thanks.
    Is there a way to reset the count in each post (like when
   more than one appear in a loop)?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Insert shortcodes inside attributes of other shortcodes](https://wordpress.org/support/topic/insert-shortcodes-inside-attributes-of-other-shortcodes/)
 *  Thread Starter [Andrés Sanhueza](https://wordpress.org/support/users/atoon/)
 * (@atoon)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/insert-shortcodes-inside-attributes-of-other-shortcodes/#post-1415286)
 * It works but I don’t want to limit the attribute to a single shortcode. More 
   like when `do_shortcode` is used in the content of an enclosing shortcode.

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

1 [2](https://wordpress.org/support/users/atoon/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/atoon/replies/page/2/?output_format=md)