Can’t access WP-Admin via HTTPS

@Tomc ‘s solution is a great start. Here it is formatted (you can’t format things in a comment). RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE] In addition, I’m not a fan of setting URLs in the configuration files. Best (IMHO) to set those two values in the wp-options table. You might need to … Read more

When creating a new product, auto assign it to all custom taxonomy woocommerce

For post types not using the block editor, you can use wp_terms_checklist_args filter to manipulate the selected terms of a hierarchical taxonomy. You can use the filter to set pre-selected terms like so, function auto_check_hierarchial_terms_on_new_post( $args, $post_id ) { // is it new post? if ( ‘auto-draft’ !== get_post_status($post_id) ) { return $args; } // … Read more

Unable to access my page or WP Admin

there might be these possibilities please check both the cases Please allow the debugging mode in your wp-config file define(‘WP_DEBUG’, false); make it true. If after enabling the debug you didn’t get any fatal error, then this problem is related to your hosting server, do check with their support.

How to view a post from the wordpress admin screen

Add this code to the functions ///Show on the counter function my_custom_dashboard_widgets() { global $wp_meta_boxes; wp_add_dashboard_widget(‘custom_help_widget’, ‘Posts’,’custom_dashboard_help’); } function custom_dashboard_help() { $randoms= new WP_Query(array( ‘post_type’=>’post’,’post_status’=>’publish’,’order’=>’DESC’,’orderby’=>’ID’, ‘posts_per_page’=>’10’)); if($randoms->have_posts()) : while($randoms->have_posts()) : $randoms->the_post();?> <!—-post—-> <div class=”img-in” style=”width: 96%;height: 60px;margin-bottom: 7px;background-color: bisque;padding: 9px;”> <img src=”https://wordpress.stackexchange.com/questions/362675/<?php $thumb_id = get_post_thumbnail_id(); $thumb_url = wp_get_attachment_image_src($thumb_id,”thumbnail-size’, true); echo $thumb_url[0]; ?>” alt=”” style=”width: 50px;float: … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)