Title: xave's Replies | WordPress.org

---

# xave

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

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

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Relevanssi - A Better Search] Exclude child posts](https://wordpress.org/support/topic/exclude-child-posts/)
 *  Thread Starter [xave](https://wordpress.org/support/users/xave/)
 * (@xave)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/exclude-child-posts/#post-3294561)
 * Fixed: Seems I just needed to return $all_children_left_behind as an array!
 *     ```
       add_filter('relevanssi_hits_filter', 'no_kids_allowed');
       function no_kids_allowed($hits) {
           $all_children_left_behind = array();
           foreach ($hits[0] as $post) {
               if ($post->post_parent == 0) $all_children_left_behind[] = $post;
           }
           return array($all_children_left_behind);
       }
       ```
   
 * Many thanks – saved the day!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Relevanssi - A Better Search] Exclude child posts](https://wordpress.org/support/topic/exclude-child-posts/)
 *  Thread Starter [xave](https://wordpress.org/support/users/xave/)
 * (@xave)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/exclude-child-posts/#post-3294560)
 * Thanks Mikko –
    However, the filter is returning error:
 * PHP Fatal error: Cannot use object of type stdClass as array in …/relevanssi/
   lib/search.php on line 918
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Relevanssi - A Better Search] Exclude child posts](https://wordpress.org/support/topic/exclude-child-posts/)
 *  Thread Starter [xave](https://wordpress.org/support/users/xave/)
 * (@xave)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/exclude-child-posts/#post-3294558)
 * Hi
 * I’ve been unsuccessful writing the filter.
 *     ```
       add_filter('relevanssi_modify_wp_query', 'mod_q');
       function mod_q($wp_query) {
       	if (is_search()) {
       		global $wp_query;
       		$wp_query->query_vars['post_parent'] = 0;
       	}
       	return $wp_query;
       }
       ```
   
 * Could you offer any guidence to simply filter out any child posts from a search.
   
   many thanks
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Drafts of Post Revisions] Serialised custom fields](https://wordpress.org/support/topic/serialised-custom-fields/)
 *  Thread Starter [xave](https://wordpress.org/support/users/xave/)
 * (@xave)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/serialised-custom-fields/#post-3202290)
 * Hi there dude – sorry, didn’t get email notification either!
 * I’ve updated my install with the maybe_unserialize – certainly works in slightly
   less clumsy way than my code..
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[File Gallery] Attach image from another post](https://wordpress.org/support/topic/attach-image-from-another-post/)
 *  [xave](https://wordpress.org/support/users/xave/)
 * (@xave)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/attach-image-from-another-post/#post-3330734)
 * Only way I’ve managed to see it is use ‘Media Tags’ section within uploader (
   if you have them enabled) – click on any media tag – then run a search term –
   then you’ll see old style media browser where you can select images and Attach
   to post as before..
 * hopefully update coming soon ?!?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WordPress Social Login] It is working with the new WordPress 3.5?](https://wordpress.org/support/topic/it-is-working-with-the-new-wordpress-35/)
 *  [xave](https://wordpress.org/support/users/xave/)
 * (@xave)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/it-is-working-with-the-new-wordpress-35/#post-3300157)
 * I also couldn’t see it workin on 3.5.
    Quick fix is to replace ‘plugins_url()’
   with the uri of your plugins folder on line 72 of authenticate.php. ie: $config[“
   base_url”] = ‘[http://domain.com/wp-content/plugins/&#8217](http://domain.com/wp-content/plugins/&#8217);.
   basename( dirname( __FILE__ ) ) . ‘/hybridauth/’;
 * Or wait for fix from the author!
 * merry xmas! 🙂
 *   Forum: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
   
   In reply to: [[Content Mirror] [Plugin: Content Mirror] Not Working](https://wordpress.org/support/topic/plugin-content-mirror-not-working/)
 *  [xave](https://wordpress.org/support/users/xave/)
 * (@xave)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-content-mirror-not-working/#post-2521835)
 * It appears the plugin has a comment at the top of the two javascript files, but
   within `<?php ?>` – therefore the javascript returns an error.
 * Just delete the php comments from these two files and it appears to solve this
   issue for now..
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Content Mirror] [Plugin: Content Mirror] A great need for this, but…](https://wordpress.org/support/topic/plugin-content-mirror-a-great-need-for-this-but/)
 *  Thread Starter [xave](https://wordpress.org/support/users/xave/)
 * (@xave)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-content-mirror-a-great-need-for-this-but/#post-2518673)
 * Hi Stratoponjak
 * In chrome, I get javascript error “Uncaught SyntaxError: Unexpected token <“
   
   Any clues 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Viper's Video Quicktags] [Plugin: Viper's Video Quicktags] Custom fields](https://wordpress.org/support/topic/plugin-vipers-video-quicktags-custom-fields/)
 *  [xave](https://wordpress.org/support/users/xave/)
 * (@xave)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/plugin-vipers-video-quicktags-custom-fields/#post-1921006)
 * Hiya
 * The $videourl variable is being passed as a string.
    Try this:
 * <?php
    $videourl = get_post_meta( $post->ID, ‘video’, true ); if ( $videourl )
   echo apply_filters( ‘the_content’, ‘[vimeo]’ . $videourl . ‘[/vimeo]’ ); ?>

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