xave
Forum Replies Created
-
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Exclude child postsFixed: 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
In reply to: [Relevanssi - A Better Search] Exclude child postsThanks 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
In reply to: [Relevanssi - A Better Search] Exclude child postsHi
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 thanksForum: Plugins
In reply to: [Drafts of Post Revisions] Serialised custom fieldsHi 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
In reply to: [File Gallery] Attach image from another postOnly 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
In reply to: [WordPress Social Login] It is working with the new WordPress 3.5?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”] = ‘https://domain.com/wp-content/plugins/’ . basename( dirname( __FILE__ ) ) . ‘/hybridauth/’;Or wait for fix from the author!
merry xmas! ??
Forum: Networking WordPress
In reply to: [Content Mirror] [Plugin: Content Mirror] Not WorkingIt 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
In reply to: [Content Mirror] [Plugin: Content Mirror] A great need for this, but…Hi Stratoponjak
In chrome, I get javascript error “Uncaught SyntaxError: Unexpected token <“
Any clues ??Forum: Plugins
In reply to: [Viper's Video Quicktags] [Plugin: Viper's Video Quicktags] Custom fieldsHiya
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]’ );
?>