-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Search / drag & drop to new truncates content #95
Comments
Content of the list or content of the post dragged over to the list? |
From the search dragged over to a list. |
Yes, but I need to know what content that's getting truncated. Do you mean that the content of the list (the articles) dissapears when you drop a post onto the list? Or, do you mean that the body text of the post dissapears once being dropped on a list? |
Yes, the preamble of the text from the post being dragged is truncated over 100-150 chars.
|
Ah, yes. That is the excerpt of the post I believe. Theres probably some wp-filter that you can use. I will look into it |
There's no obvious way to modify this behaviour. Here's a quick and dirty solution. $is_arlima_ajax = defined('DOING_AJAX') && DOING_AJAX && check_ajax_referer('arlima-nonce');
if( $is_arlima_ajax && $_REQUEST['action'] == 'arlima_query_posts' ) {
add_filter('the_post', function($post) {
$post->post_excerpt = $post->post_content;
return $post;
});
} Maybe it would be god to let you decide whether or not to use the post excerpt or the post content via a constant in wp-config.php. I will look into it. |
When using drag & drop from search article in Arlima to a list, the content is truncated.
How to avoid this feature?
The text was updated successfully, but these errors were encountered: