Change formatting of Date parameter on custom post type

Use the post_date_column_time filter to change the time format. The documentation says it changes the “published time of the post”, but it will change the scheduled time as well (ticket). Tested: add_filter( ‘post_date_column_time’, static function ( $time, $post ) { if ( ‘wp_events’ !== get_post_type( $post ) || ‘future’ !== get_post_status( $post ) ) { … Read more

Staging site on subdomain – all links dont work except home page

I’d change the first part of your htaccess from RewriteEngine On RewriteCond %{HTTP_HOST} !^stagin\.mysite\.com$ RewriteRule ^(.*)$ https://stagin.mysite.com/$1 [R=301,L to RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE] This will take any request to any site and force it to SSL. Then the rest of the htaccess will take care of the WordPress stuff. I … Read more

How do I remove/hide embed excerpts from posts

I was able to remove those excerpts with the following code in functions.php remove_filter(‘get_the_excerpt’, ‘wp_trim_excerpt’); Keep in mind that I’m using a theme “Newspaper” for other excerpt settings, which are not affected by the above code

How to apply an additional fee for the layaway payment

You’re using the Payment Method Checkout Fee plugin. This looks like it’s relatively simple, just a woocommerce_cart_calculate_fees hook and some code to configure it. https://plugins.svn.wordpress.org/payment-method-checkout-fee-for-woocommerce/trunk/checkoutfee.php You didn’t say what you’re using to implement layaways but since this doesn’t work I’m guessing it’s treated as a separate payment gateway internally, i.e. when you have a layaway … Read more

Failed to import File_name Invalid post type jp_pay_product

Although it will not fix the error, if your goal is to just remove it from view you could edit your wp_config file and above the stop editing line put the following: ini_set(‘display_errors’,’Off’); ini_set(‘error_reporting’, E_ALL ); define(‘WP_DEBUG’, false); define(‘WP_DEBUG_DISPLAY’, false); As far as whats happening from what I can guess there was a post type … Read more

WordPress Media Uploader not displaying image that has just been uploaded

Your issue sounds like a visual bug in the WordPress Media Uploader’s interface after an image has been uploaded, especially since you mentioned that the image appears in the right-hand preview pane but not as a selectable thumbnail. Try to force refresh the media frame after upload. You can use the add:attachment event to force … Read more

Video autoplay doesn’t work in slider revolutioun plugin

Slider Revolution may have some kind of workaround for this, but in general autoplay of un-muted videos is prevented at the browser level (Chrome, Firefox, Safari, Edge). Usually you can get autoplay to work if the video is muted; but if you want both play + sound, the user must interact with the video. Reach … Read more