Title: drale2k's Replies | WordPress.org

---

# drale2k

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

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

 Search replies:

## Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Infinite-Scroll] Custom Javascript execution still broken with WP 3.2](https://wordpress.org/support/topic/custom-javascript-execution-still-broken-with-wp-32/)
 *  Thread Starter [drale2k](https://wordpress.org/support/users/drale2k/)
 * (@drale2k)
 * [15 years ago](https://wordpress.org/support/topic/custom-javascript-execution-still-broken-with-wp-32/#post-2174208)
 * Tested just and seems everything works.
 * Anyway you should have tested at least critical thing like executing custom javascript
   since this is a main feature of your plugin before releasing it to the public.
 * thanks for the fix!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Infinite-Scroll] Plugin Request for Infinite Scrolling](https://wordpress.org/support/topic/request-optional-button-instead-of-automatic-scrolling/)
 *  [drale2k](https://wordpress.org/support/users/drale2k/)
 * (@drale2k)
 * [15 years ago](https://wordpress.org/support/topic/request-optional-button-instead-of-automatic-scrolling/#post-2115194)
 * Hey guys,
 * the plugin is still very broken in WordPress 3.2
 * Look at this topic please: [http://wordpress.org/support/topic/custom-javascript-execution-still-broken-with-wp-32?replies=3](http://wordpress.org/support/topic/custom-javascript-execution-still-broken-with-wp-32?replies=3)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Using 'category__and' returns no results in WordPress 3.2](https://wordpress.org/support/topic/using-category_and-returns-no-results-in-wordpress-32/)
 *  Thread Starter [drale2k](https://wordpress.org/support/users/drale2k/)
 * (@drale2k)
 * [15 years ago](https://wordpress.org/support/topic/using-category_and-returns-no-results-in-wordpress-32/#post-2174205)
 * UPDATE://
 * I have managed to fix it using this modified code
 *     ```
       $media_type = ( isset($_GET['media_type'])) ? get_category_by_slug($_GET['media_type']) : '';
       	$country = ( isset($_GET['country'])) ? get_category_by_slug($_GET['country']) : '';
   
       	$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
   
       	$filter = array(
       		$media_type->term_id,
       		$country->term_id
       	);
   
       	// remove false, null and empty values (category__and needs clean values)
       	$filter = array_filter($filter);
   
       	$args = array(
       		'category__and' => $filter,
       		'category__in' => array(8),
       		'paged' => $paged,
       		'monthnum' => $release_months,
       		'year'=> $release_years
       	);
   
       	query_posts($args);
       ```
   
 * Although i am sure that ‘category__and’, prior to WP 3.2, would check for invalid
   array values and remove it by itself.
 * However, i am happy to fixed this after many hours of try and error ;/
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [category__and not working after 3.1 update](https://wordpress.org/support/topic/category_and-not-working-after-31-update/)
 *  [drale2k](https://wordpress.org/support/users/drale2k/)
 * (@drale2k)
 * [15 years ago](https://wordpress.org/support/topic/category_and-not-working-after-31-update/#post-1946785)
 * Hey guys i still have that issue in WP 3.2 but the solutions you posted still
   not work for me.
 * It worked in 3.1 although
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Using 'category__and' returns no results in WordPress 3.2](https://wordpress.org/support/topic/using-category_and-returns-no-results-in-wordpress-32/)
 *  Thread Starter [drale2k](https://wordpress.org/support/users/drale2k/)
 * (@drale2k)
 * [15 years ago](https://wordpress.org/support/topic/using-category_and-returns-no-results-in-wordpress-32/#post-2174202)
 * Installing WordPress 3.1 did solve the issue so it is definitely a prob with 
   3.2, but i really would like to use the new version.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Infinite-Scroll] Custom Javascript execution still broken with WP 3.2](https://wordpress.org/support/topic/custom-javascript-execution-still-broken-with-wp-32/)
 *  Thread Starter [drale2k](https://wordpress.org/support/users/drale2k/)
 * (@drale2k)
 * [15 years ago](https://wordpress.org/support/topic/custom-javascript-execution-still-broken-with-wp-32/#post-2174171)
 * True, i can`t change the image too. Maybe some hook does not fire anymore?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Using 'category__and' returns no results in WordPress 3.2](https://wordpress.org/support/topic/using-category_and-returns-no-results-in-wordpress-32/)
 *  Thread Starter [drale2k](https://wordpress.org/support/users/drale2k/)
 * (@drale2k)
 * [15 years ago](https://wordpress.org/support/topic/using-category_and-returns-no-results-in-wordpress-32/#post-2174170)
 * No one else has this issue? I will need to downgrade to 3.1 i guess ;/

Viewing 7 replies - 1 through 7 (of 7 total)