Pilsgaard
Forum Replies Created
-
Forum: Plugins
In reply to: [Crop-Thumbnails] Feature request – GroupsHi,
Thank you for the quick reply!.
Yeah, i guess request two would be hard to make, because the grouping had to have the same ratio.
I know it already auto-select the same ratio images. But if you have many images in the list, you have to scroll to find one of the correct ratio images you want to crop.
If there was a small link for each ratio on the top, we didnt have to scroll and look for the correct image. The previous tool we used that is discontinued (post thumbnail editor), do it like this auto: https://ibb.co/VHKBm0wAnd once again, thank you for a great plugin!
Kindly Regards,
CasperForum: Plugins
In reply to: [Query Monitor - The developer tools panel for WordPress] Publish postOkay thank you for the quick answer!.
I will take a look on the branch you mentioned.
Thank you!
Forum: Plugins
In reply to: [WPSOLR - Elasticsearch and Solr search] Adding more fields to doc1 variableIm going to production this week, but i just use my own line. Can i subscribe to get a mail when there is a new release?
Or you can write in this thread, if you would like me to test the filters.
Thanks for the quick answers!
Regards,
CasperForum: Plugins
In reply to: [WPSOLR - Elasticsearch and Solr search] Adding more fields to doc1 variableIf someone is extending the plugin via filters, they probably got access to the schema and knows what they are doing. I think the custom posts and facets you already made in the plugin are awesome. This is only for really specific use.
I installed a fresh install of solr5 and they got a managed schema, so solr just adds the new field based on the datatype when i add more to $doc1.
e.g the $doc1->testing showed up automatically without a schema change, when i runned the code above.
You could make a solr5 version of the plugin, where people dont need to make any schema changes.
Regards,
CasperForum: Plugins
In reply to: [WPSOLR - Elasticsearch and Solr search] Adding more fields to doc1 variableJust tried to add this line in class-wp-solr.php:917 just before the return $doc1;
$doc1 = apply_filters( ‘wp_solr_plugin_filter_doc1’, $doc1, $updateQuery, $opt, $post, $attachment_body );
And this function in my theme functions.php
function sv_wp_solr_plugin_filter_doc1( $doc1, $updateQuery, $opt, $post, $attachment_body )
{$doc1->testing = “MyTest”;
return $doc1;
}
add_filter(‘wp_solr_plugin_filter_doc1’, ‘sv_wp_solr_plugin_filter_doc1’, 10, 5 );And its working (have to add testing to the solr schema offcource).
I dont know what all the variables to the create_solr_document_from_post_or_attachment function is doing, so i just added all of them if i need them.Hope you can add something like this to the plugin. : -)
Regards,
Casper