Title: implenton's Replies | WordPress.org

---

# implenton

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

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

 Search replies:

## Forum Replies Created

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

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Help with Variation display in cart](https://wordpress.org/support/topic/help-with-variation-display-in-cart/)
 *  [implenton](https://wordpress.org/support/users/implenton/)
 * (@implenton)
 * [9 years ago](https://wordpress.org/support/topic/help-with-variation-display-in-cart/#post-9207022)
 * Hello,
 * I was wondering the same thing, then I dug a little deeper in the code:
 * If you are using 3.0+
 * >  Variation values are shown only if they are not found in the title as of 3.0.
   > 
   > This is because variation titles display the attributes.
 * This is an actual comment from `woocommerce/includes/class-wc-cart.php` comment
   from line 541-542
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Duplicate Page] Filters](https://wordpress.org/support/topic/filters-15/)
 *  Thread Starter [implenton](https://wordpress.org/support/users/implenton/)
 * (@implenton)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/filters-15/#post-8547962)
 * If it is not a big problem please add a filter to the `post_meta_infos` as well
   🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Optimize your feed for feedly] SVG Upload Not Enabled in WordPress](https://wordpress.org/support/topic/svg-upload-not-enabled-in-wordpress/)
 *  Plugin Author [implenton](https://wordpress.org/support/users/implenton/)
 * (@implenton)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/svg-upload-not-enabled-in-wordpress/#post-8300599)
 * Hello [@noumaan](https://wordpress.org/support/users/noumaan/),
 * sorry for the late reply.
 * You raised a good topic!
 * You are right about the SVG upload. WordPress does not support it by default.
   There is a long discussion about that here [https://core.trac.wordpress.org/ticket/24251](https://core.trac.wordpress.org/ticket/24251).
 * It was a deliberate decision to include an input field first and the media selector
   under it, exactly for the reason WordPress does not allow it. Uploading the file
   via FTP might be a pain for some users. I believe you are right about this too.
 * I will consider your suggestion, until then I will update the plugin description
   to make it more clear the limitation around SVG and recommend the snippet you
   mentioned and also plugins to enable the SVG support.
 * Thanks, I appreciate your comment.
    -  This reply was modified 9 years, 7 months ago by [implenton](https://wordpress.org/support/users/implenton/).
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Double Posts in search results](https://wordpress.org/support/topic/double-posts-in-search-results/)
 *  [implenton](https://wordpress.org/support/users/implenton/)
 * (@implenton)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/double-posts-in-search-results/#post-8294492)
 * That is fantastic 🙂
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Double Posts in search results](https://wordpress.org/support/topic/double-posts-in-search-results/)
 *  [implenton](https://wordpress.org/support/users/implenton/)
 * (@implenton)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/double-posts-in-search-results/#post-8294272)
 * Hello [@fransin](https://wordpress.org/support/users/fransin/),
 * I don’t think it is related to the import.
 * You should check the search.php file if you have one, if not then the index.php
   file. I believe you have some repeating code that simply displays the content
   twice.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Related topics](https://wordpress.org/support/topic/related-topics/)
 *  [implenton](https://wordpress.org/support/users/implenton/)
 * (@implenton)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/related-topics/#post-8252912)
 * Hello [@ivanko82](https://wordpress.org/support/users/ivanko82/),
 * you might want to consider adding the `s` (Search Parameter) as an argument to
   the `$args`
 * [https://codex.wordpress.org/Class_Reference/WP_Query#Search_Parameter](https://codex.wordpress.org/Class_Reference/WP_Query#Search_Parameter)
 * Please note that using the `s` paramater works the same way as using the default
   search provided by WordPress – it searches in the content as well.
 * It seems that there are ways to limit the search only to the title this might
   give you furher ideas:
 * [http://wordpress.stackexchange.com/questions/11822/how-to-limit-search-to-post-titles/11826#11826](http://wordpress.stackexchange.com/questions/11822/how-to-limit-search-to-post-titles/11826#11826)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Warning: call_user_func_array() expects parameter 1](https://wordpress.org/support/topic/warning-call_user_func_array-expects-parameter-1-4/)
 *  [implenton](https://wordpress.org/support/users/implenton/)
 * (@implenton)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/warning-call_user_func_array-expects-parameter-1-4/#post-8252859)
 * Hello [@rwvanleer](https://wordpress.org/support/users/rwvanleer/),
 * with `add_action( ‘init’, ‘register_my_menus’ );` you are calling the `register_my_menus`
   function which is not defined – at least it does not appear in the code you pasted
   here.
 * What you have to do is add the `register_nav_menus` into the function you specified:
 *     ```
       register_nav_menus( array(
           ‘primary’ => esc_html__( ‘Primary’, ‘cedargold’ ),
           ‘cgls’ => esc_html__( ‘Labs’, ‘cedargold’ ),
           ‘cgac’ => esc_html__( ‘Accountable’, ‘cedargold’ ),
       ) );
       ```
   
 * like this:
 *     ```
       function register_my_menus() {
   
           register_nav_menus( array(
               ‘primary’ => esc_html__( ‘Primary’, ‘cedargold’ ),
               ‘cgls’ => esc_html__( ‘Labs’, ‘cedargold’ ),
               ‘cgac’ => esc_html__( ‘Accountable’, ‘cedargold’ ),
           ) );
   
       }
       ```
   
 * > Again it works correct in local environment, no warnings.
 * You might have different error reporting set on your local and live/staging site.
 * [https://codex.wordpress.org/Debugging_in_WordPress#PHP_Errors.2C_Warnings.2C_and_Notices](https://codex.wordpress.org/Debugging_in_WordPress#PHP_Errors.2C_Warnings.2C_and_Notices)
    -  This reply was modified 9 years, 8 months ago by [implenton](https://wordpress.org/support/users/implenton/).
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [WP Insert Post](https://wordpress.org/support/topic/wp-insert-post/)
 *  [implenton](https://wordpress.org/support/users/implenton/)
 * (@implenton)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/wp-insert-post/#post-8214765)
 * Maybe we can try using [https://gitter.im/wp-insert-post-duplicate/Lobby](https://gitter.im/wp-insert-post-duplicate/Lobby)
   🙂
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [WP Insert Post](https://wordpress.org/support/topic/wp-insert-post/)
 *  [implenton](https://wordpress.org/support/users/implenton/)
 * (@implenton)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/wp-insert-post/#post-8210441)
 * Hello [@disenorapido](https://wordpress.org/support/users/disenorapido/),
 * I think at this point figuring out the issue you have using the support forum
   is quite hard. I am willing to help you debug it using some kind of IM.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [post_class(); usage](https://wordpress.org/support/topic/post_class-usage/)
 *  [implenton](https://wordpress.org/support/users/implenton/)
 * (@implenton)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/post_class-usage/#post-8199388)
 * Hello [@csjwp](https://wordpress.org/support/users/csjwp/),
 * try replacing this part from your code
 *     ```
       $terms = get_the_terms( $iso->ID, 'typologi' );
       foreach ($terms as $term) {
           echo <div class="element-item . $term->slug";
       }
       ```
   
 * with this:
 *     ```
       // get all the typologi terms from the post
       $terms = get_the_terms( $post->ID, 'typologi' );
   
       // since get_the_terms returns WP_Term and you need only the slugs
       $terms_only_slugs = array_map( function( $term ) {
           return $term->slug;
       }, $terms );
   
       // when multiple terms set make it a string
       $element_item_classes = implode( ' ', $terms_only_slugs );
   
       // pass the string as an attribute
       echo '<div class="element-item ' . $element_item_classes . '">';
       ```
   
    -  This reply was modified 9 years, 8 months ago by [implenton](https://wordpress.org/support/users/implenton/).
    -  This reply was modified 9 years, 8 months ago by [implenton](https://wordpress.org/support/users/implenton/).
    -  This reply was modified 9 years, 8 months ago by [implenton](https://wordpress.org/support/users/implenton/).
      Reason: code modified based on @csjwp new request
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [two different links in post ?](https://wordpress.org/support/topic/two-different-links-in-post/)
 *  [implenton](https://wordpress.org/support/users/implenton/)
 * (@implenton)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/two-different-links-in-post/#post-8199169)
 * Hello [@markuswedl](https://wordpress.org/support/users/markuswedl/),
 * the easiest solution for you problem would be using a custom field as a second
   link. [https://codex.wordpress.org/Custom_Fields](https://codex.wordpress.org/Custom_Fields)
 * This articles gives you plenty of example using custom fields [https://www.smashingmagazine.com/2009/05/10-custom-fields-hacks-for-wordpress/](https://www.smashingmagazine.com/2009/05/10-custom-fields-hacks-for-wordpress/)
   and will also link to many more resources.
 * I hope you find this helpful.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Is get_posts search key always partial ?](https://wordpress.org/support/topic/is-get_posts-search-key-always-partial/)
 *  [implenton](https://wordpress.org/support/users/implenton/)
 * (@implenton)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/is-get_posts-search-key-always-partial/#post-8199148)
 * Hello [@mstdmstd](https://wordpress.org/support/users/mstdmstd/),
 * search not only matches the titles, but the content as well.
 * You can specify the `exact` (to make it only match whole titles/posts) or `sentence`(
   to make it do a phrase search) to alter the search query. [https://wordpress.org/support/topic/how-to-search-phrases/](https://wordpress.org/support/topic/how-to-search-phrases/)
 * This a good article regarding search in WordPress: [https://premium.wpmudev.org/blog/build-your-own-custom-wordpress-search/](https://premium.wpmudev.org/blog/build-your-own-custom-wordpress-search/)
 * As a note:
 * Prepending a term with a hyphen will exclude posts matching that term. Eg, ‘pillow-
   sofa’ will return posts containing ‘pillow’ but not ‘sofa’ (available since Version
   4.4).
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Question about the loop and template parts](https://wordpress.org/support/topic/question-about-the-loop-and-template-parts/)
 *  [implenton](https://wordpress.org/support/users/implenton/)
 * (@implenton)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/question-about-the-loop-and-template-parts/#post-8199114)
 * Hello [@csjwp](https://wordpress.org/support/users/csjwp/),
 * `get_header` and `get_template_part` are very similar in nature; basically they
   [include](http://php.net/manual/ro/function.include.php) certain PHP files. Including
   files is convenient to organize your code in a better way or not the repeat the
   same code over and over.
 * `get_header` by default includes the `header.php` file and `get_template_part('
   file' )` includes the file you specified, in my simplistic example the `file.
   php`.
 * You can “create” loops in the files which are included.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [post_class(); usage](https://wordpress.org/support/topic/post_class-usage/)
 *  [implenton](https://wordpress.org/support/users/implenton/)
 * (@implenton)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/post_class-usage/#post-8199082)
 * Hello [@csjwp](https://wordpress.org/support/users/csjwp/),
 * if you want to use the `post_class` you can apply a filter to it: [https://developer.wordpress.org/reference/hooks/post_class/](https://developer.wordpress.org/reference/hooks/post_class/)
 * and remove the classes you don’t need.
 * Here you can read more about filters: [https://developer.wordpress.org/reference/functions/add_filter/](https://developer.wordpress.org/reference/functions/add_filter/)
 * You might also want to take a look at the `get_the_terms` function it could be
   a starting point to write your own `post_class` function. [https://developer.wordpress.org/reference/functions/get_the_terms/](https://developer.wordpress.org/reference/functions/get_the_terms/)
    -  This reply was modified 9 years, 8 months ago by [implenton](https://wordpress.org/support/users/implenton/).
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [WP Insert Post](https://wordpress.org/support/topic/wp-insert-post/)
 *  [implenton](https://wordpress.org/support/users/implenton/)
 * (@implenton)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/wp-insert-post/#post-8194001)
 * Hello [@luis](https://wordpress.org/support/users/luis/) Alberto Agea Duran,
 * it would be helpful to know in what context you are running `wp_insert_post`?
   Are you calling this function after a specific action? Can you share more of 
   your code?

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

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