Title: squizeers's Replies | WordPress.org

---

# squizeers

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

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

 Search replies:

## Forum Replies Created

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

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] file-uploading-and-attachment](https://wordpress.org/support/topic/file-uploading-and-attachment-1/)
 *  Thread Starter [squizeers](https://wordpress.org/support/users/squizeers/)
 * (@squizeers)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/file-uploading-and-attachment-1/#post-4658511)
 * I am so tired now… Both functions below result the same. You can see the result
   [here](http://www.rajumaharjan.com/project/hain/test-do-not-delete/).
 * This one works, sends the attachments.Attachments are hard coded.
 *     ```
       /*WORKING*/
       	add_filter( 'wpcf7_mail_components', 'mycustom_wpcf7_mail_components1' );
       	function mycustom_wpcf7_mail_components1( $components ) {
       		$components['attachments'] = array('wp-content/uploads/2014/02/JASON-Deodorant1.pdf','wp-content/uploads/2014/02/JASON-Dandruff.pdf');
   
       		return $components;
       	}
       /*WORKING*/
       ```
   
 * This one does not work. Attachments are dynamically pulled from the custom meta
   box.
 *     ```
       /*NOT WORKING*/
       	add_filter( 'wpcf7_mail_components', 'mycustom_wpcf7_mail_components2' );
       	function mycustom_wpcf7_mail_components2( $components ){
   
       		$differentarray = array();
       		$sheets = rwmb_meta( 'brand_sell_sheet','type=file' );
       		foreach ((array)$sheets as $value) {
       			$differentarray[]= ltrim($value["path"],'/home/rajumaha/public_html/project/hain/');
       		}
       		$components['attachments']= $differentarray;
       		return $components;
       	}
       /*NOT WORKING*/
       ```
   
 * Somebody please help
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] file-uploading-and-attachment](https://wordpress.org/support/topic/file-uploading-and-attachment-1/)
 *  Thread Starter [squizeers](https://wordpress.org/support/users/squizeers/)
 * (@squizeers)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/file-uploading-and-attachment-1/#post-4658485)
 * This is the closest I could get but still not working.
 *     ```
       add_filter( 'wpcf7_mail_components', 'mycustom_wpcf7_mail_components' );
       	function mycustom_wpcf7_mail_components( $components ){
       		$differentarray = array(); 
   
       		$sheets = rwmb_meta( 'brand_sell_sheet', $args = array('type'=>'file' ), $post_id = null );
       		foreach($sheets as $value){
       			$differentarray[] = ltrim($value["path"],'/home/rajumaha/public_html/project/hain/');
       		}
       		//print_r ($differentarray);
       		$components['attachments']= $differentarray;
       		return $components;
       	}
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] file-uploading-and-attachment](https://wordpress.org/support/topic/file-uploading-and-attachment-1/)
 *  Thread Starter [squizeers](https://wordpress.org/support/users/squizeers/)
 * (@squizeers)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/file-uploading-and-attachment-1/#post-4658481)
 * WHY IS THE NOT WORKING?
    The emails doesn’t get send… the sending gif animation
   loads forever…
 *     ```
       function mycustom_wpcf7_mail_components( $components ){
   
       		$sheets = rwmb_meta( 'brand_sell_sheet', $args = array('type'=>'file' ), $post_id = null );
       			foreach($sheets as $key => $value){
       				$path.= "'".ltrim($value["path"],'public_html/project/hain/')."',";
       			}
       		$attachments = rtrim($path,",");
   
       		$components['attachments']= array($attachments);
       		return $components;
       	}
   
       	add_filter( 'wpcf7_mail_components', 'mycustom_wpcf7_mail_components' );
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] file-uploading-and-attachment](https://wordpress.org/support/topic/file-uploading-and-attachment-1/)
 *  Thread Starter [squizeers](https://wordpress.org/support/users/squizeers/)
 * (@squizeers)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/file-uploading-and-attachment-1/#post-4658356)
 * Very close to what I want :
 *     ```
       add_filter( 'wpcf7_mail_components', 'mycustom_wpcf7_mail_components' );
   
       function mycustom_wpcf7_mail_components( $components ) {
       	$components['attachments'][] = 'wp-content/uploads/pdf/r.maharjan.pdf';
   
       	return $components;
       }
       ```
   
 * Now I have to collect the PATH of all the pdfs listed in a post. HOW?
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Get the large image of the gallery image](https://wordpress.org/support/topic/get-the-large-image-of-the-gallery-image/)
 *  Thread Starter [squizeers](https://wordpress.org/support/users/squizeers/)
 * (@squizeers)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/get-the-large-image-of-the-gallery-image/#post-4435231)
 * Solved the issue by using the function at:
 * [http://philipnewcomer.net/2012/11/get-the-attachment-id-from-an-image-url-in-wordpress/](http://philipnewcomer.net/2012/11/get-the-attachment-id-from-an-image-url-in-wordpress/)
 * now my code looks like:
 *     ```
       <?php
       $galleries = get_post_galleries_images( $post );
                   foreach( $galleries as $gallery ) {
                       foreach( $gallery as $image ) {	
   
       					echo $imageID = get_attachment_id_from_url( $attachment_url = $image );
       					$largeImage = wp_get_attachment_image_src( $imageID,large );
   
                          $image_list .= '
       				   <div class="col-xs-4 col-sm-4">
       				   <a class="fancybox'.$post->ID.'" rel="fancybox'.$post->ID.'" href="'.$largeImage[0].'"><img src="'. $image .'"/></a>
       				   </div>';
                       }
                   }
               echo $image_list;
               ?>
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Collapsing Archives] [Plugin: Collapsing Archives] Can't include or exclude categories](https://wordpress.org/support/topic/plugin-collapsing-archives-cant-include-or-exclude-categories/)
 *  [squizeers](https://wordpress.org/support/users/squizeers/)
 * (@squizeers)
 * [14 years ago](https://wordpress.org/support/topic/plugin-collapsing-archives-cant-include-or-exclude-categories/#post-2820977)
 * ya this is strange… “Why do the year and month links produce a list of all posts
   in all categories?”
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [active ancestor category while on the post](https://wordpress.org/support/topic/active-ancestor-category-while-on-the-post/)
 *  Thread Starter [squizeers](https://wordpress.org/support/users/squizeers/)
 * (@squizeers)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/active-ancestor-category-while-on-the-post/#post-2876452)
 * any one???
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[JQuery Accordion Menu Widget] [Plugin: JQuery Accordion Menu Widget] Active Link or current Page Link Style Children](https://wordpress.org/support/topic/plugin-jquery-accordion-menu-widget-active-link-or-current-page-link-style-children/)
 *  [squizeers](https://wordpress.org/support/users/squizeers/)
 * (@squizeers)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-jquery-accordion-menu-widget-active-link-or-current-page-link-style-children/#post-2826388)
 * can u share the link so that i can take a look at it?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Smarter Navigation] [Plugin: Smarter Navigation] Tell reader that the next/previous links are browsing a specific tag/ca](https://wordpress.org/support/topic/plugin-smarter-navigation-tell-reader-that-the-nextprevious-links-are-browsing-a-specific-tagcategory/)
 *  [squizeers](https://wordpress.org/support/users/squizeers/)
 * (@squizeers)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-smarter-navigation-tell-reader-that-the-nextprevious-links-are-browsing-a-specific-tagcategory/#post-2516155)
 * Looks like I am in the right discussion.
    So I installed the smarter navigation
   so that the posts can be navigated if they have the same tags. But there is no
   plugin setting page where i can manage the plugin. And I am not sure if the plugin
   does what i am looking for. Does this plugin navigate the posts whaich have same
   tags?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Custom fields in search](https://wordpress.org/support/topic/custom-fields-in-search/)
 *  Thread Starter [squizeers](https://wordpress.org/support/users/squizeers/)
 * (@squizeers)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/custom-fields-in-search/#post-2705362)
 * I do not want to use that plugin because it searches everything but i want to
   include only certain custom fields.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Social Preview and Open Graph Tags] [Plugin: Wonderm00n's Simple Facebook Open Graph Meta Tags] Take out use images from content or](https://wordpress.org/support/topic/plugin-wonderm00ns-simple-facebook-open-graph-meta-tags-take-out-use-images-from-content-or-gallery/)
 *  [squizeers](https://wordpress.org/support/users/squizeers/)
 * (@squizeers)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-wonderm00ns-simple-facebook-open-graph-meta-tags-take-out-use-images-from-content-or-gallery/#post-2434506)
 * I am trying to use this plugin for sharing the individual images of the default
   wordpress gallery. How do I do that?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Cat + Tag Filter] [Plugin: Cat Tag Filter] Exclude Taxonomy](https://wordpress.org/support/topic/plugin-cat-tag-filter-exclude-taxonomy/)
 *  [squizeers](https://wordpress.org/support/users/squizeers/)
 * (@squizeers)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-cat-tag-filter-exclude-taxonomy/#post-2191474)
 * FOR CATEGORY AND SUB CATEGORY FILTER I DID FOLLOWING
 *     ```
       <?php
       wp_dropdown_categories('selected=-1
       &hierarchical=1
       &depth=1
       &hide_empty=0
       &exclude=1,4,6,11,12,149,150,151
       &show_option_none=Select Category
       &name=main_cat');
       ?>
   
       <select  name="sub_cat" id="sub_cat" disabled="disabled">
       </select>
   
       <script type="text/javascript">
           var dropdown = document.getElementById("sub_cat");
           function onCatChange() {
       		if ( dropdown.options[dropdown.selectedIndex].value > 0 ) {
       			location.href = "<?php echo get_option('home');
       ?>/?cat="+dropdown.options[dropdown.selectedIndex].value;
       		}
           }
           dropdown.onchange = onCatChange;
       </script>
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Error establishing a database connection (Config file OK)](https://wordpress.org/support/topic/error-establishing-a-database-connection-config-file-ok/)
 *  [squizeers](https://wordpress.org/support/users/squizeers/)
 * (@squizeers)
 * [14 years, 12 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-config-file-ok/#post-1642994)
 * I am using the OVH hosting also. I have contacted thier technical support for
   database host but it has not workrd for me. Can u please tell me what would be
   the database host?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Cat + Tag Filter] [Plugin: Cat Tag Filter] Exclude Taxonomy](https://wordpress.org/support/topic/plugin-cat-tag-filter-exclude-taxonomy/)
 *  [squizeers](https://wordpress.org/support/users/squizeers/)
 * (@squizeers)
 * [15 years ago](https://wordpress.org/support/topic/plugin-cat-tag-filter-exclude-taxonomy/#post-2191432)
 * Thanks for the quick response. Will try it and let you know.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Cat + Tag Filter] [Plugin: Cat Tag Filter] Exclude Taxonomy](https://wordpress.org/support/topic/plugin-cat-tag-filter-exclude-taxonomy/)
 *  [squizeers](https://wordpress.org/support/users/squizeers/)
 * (@squizeers)
 * [15 years ago](https://wordpress.org/support/topic/plugin-cat-tag-filter-exclude-taxonomy/#post-2191429)
 * Is it possible to have sub categories instead of tags of the categories selected?
   Or if there is any plugin that does it.

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

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