LuciferIAm
Forum Replies Created
-
Forum: Plugins
In reply to: [Jetpack - WP Security, Backup, Speed, & Growth] Export Most Viewed PostsCame up with a possible idea, idk how hard it would be to implement or simply tell me some code though.
Would there be a way to add view count to the WordPress Admin Posts page then sort by it? If so, I could do a slight workaround and merely add the highest view count posts to a specific category and only export that category.
If its a bit confusing why I’m requesting it to do as fast as possible its because its around 500-1000 posts in a 200k post blog.
Forum: Plugins
In reply to: [Jetpack - WP Security, Backup, Speed, & Growth] Export Most Viewed PostsWould there be any way to include the view count though in that export file? Something of that nature. If I could somehow sort with the view count or something..
Forum: Fixing WordPress
In reply to: Warning message in Product Gallery on Product Edit PageSorry to reply to a thread marked resolved but where you able to fix this LalitaK? this has been the only thread I’ve found through google with the error, I have the exact same error. I didn’t see a post from you in the woocommerce support forum and obviously I can’t pm.
Sorry i made progress in some ways but there was always something that didn’t end up clicking. Mostly the remote publishing stuff If i recall. I ended up realizing that my theme allows images to be displayed same as featured image when using the image post format.
Basically I could get it to work when updating/publishing the post but never remote publishing.
I have tried that filter in the past but I could never seem to get it to update anymore
When using that filter whats the right way to put the key?
update_post_meta( $post_id, 'nelioefi_url', $urlplz );
I also wondered if add_post_meta or one of those other functions could solve this :\
Another note nelio, for the life of me I can’t figure out why this code works via remote publishing;
function nelioefi_update_url( $post_ID ) { $ftid = get_post_thumbnail_id( $post_ID ); $fturl = wp_get_attachment_url($ftid); if ( $fturl!="" ) { update_post_meta( $post_ID, _nelioefi_url(), $fturl ); } } add_action('save_post', 'nelioefi_update_url'); add_action('the_post', 'nelioefi_update_url' ); add_action('draft_to_publish', 'nelioefi_update_url' ); add_action('new_to_publish', 'nelioefi_update_url' ); add_action('pending_to_publish', 'nelioefi_update_url' ); add_action('future_to_publish', 'nelioefi_update_url' ); function remove_images( $content ) { $postOutput = preg_replace('/<img[^>]+./','', $content); return $postOutput; } add_filter( 'the_content', 'remove_images', 100 );
When the OP code doesn’t.
I use this in conjunction with https://www.ads-software.com/plugins/qqworld-auto-save-images/
the original intention was to automatically input cloudfront urls into nelio, which worked but I’ve decided to go another route as cloudfront was costing me too much.
Basically what I’ve finally realized is it seems I can not update ‘_nelioefi_url’ outside of the edit page. Feel like there must be a fix but all the things I’ve tried have failed.
Pretty much yeah, although really the case will simply be similar to this; sending an image via email. So basically I can’t figure out why I can’t get _nelioefi_url() to update when using remote publishing. It just won’t fire no matter what I seem to try.
It occurred to me to maybe try a workaround of once a post is published, it then updates the post immediately after which would cause this could to execute, although haven’t figured out how to do that properly yet either. I’m quite a novice at php.