Fix wordrpess permalink not working issue in Linux OS – Install mod_rewrite module on server

Step 1: Use below comment to install 
sudo a2enmod rewrite

Step 2: After successful install, restart the apache using below comment.
service apache2 restart
or
sudo /etc/init.d/apache2 restart

Step 3: Check the site to confirm 404 error fixed or not.

Step 4: To fix the issue, go to “/etc/apache2/apache2.conf ” and edit apache2.conf using below comment.
vi apache2.conf

Step 5:  Replace the “AllowOverride None” with “AllowOverride All”. So, it will be look like below image.

Step 6: Use “Esc” and type  “:wq” comment to save and quit after completed the changes.

Step 7: Reload apache using below comment.
apache2 reload

OR

systemctl restart apache2

Step 8: I hope your issue fixed now.

Step 9: Still you have the issue! Please follow the below reference image instruction. I hope, this is more helpful for you. (Click below image to view)

Not able to access admin panel after updating WordPress

Step1: Update the ‘db_version’ in ‘wp_options’ table – Open the wp_options table in your database.

– find the ‘db_version’ value in table.

– Compare the database ‘db_version’ value to version.php file ‘$wp_db_version’ value.

Note: path:wp-includes/verion.php

– Its different update the database ‘db_version’ value.

Step2: Its same value Update the your siteurl in ‘wp_options’ and other table

dbverision

ACF Option Page Plugin Settings

Add the Sub Pages for ACF Option Page Plugin  Options  Page Settings:

Note : Add the below code in functions.php

function my_acf_options_page_settings( $settings )
{
	$settings['title'] = 'Theme Settings';
	$settings['pages'] = array('Header', 'Home Widget One', 'Footer', 'Footer Slider','Footer Social Link');
 
	return $settings;
}
 
add_filter('acf/options_page/settings', 'my_acf_options_page_settings');

 

Add Custom Post Meta Field For All Posts

Step1: Add Custom Meta Function

function add_custom_meta_box()
{
    add_meta_box("instruction-meta-box", "Instruction Field", "custom_meta_box_post", "post", "normal", "high", null);
}
 
add_action("add_meta_boxes", "add_custom_meta_box");

 

Step2: Create Add Custom Meta Field Function

function custom_meta_box_post($object)
{
    wp_nonce_field(basename(__FILE__), "meta-box-nonce");
 
    ?>
        <div>
            <textarea name="meta-box-text" style="width: 1000px;height: 200px;"><?php echo get_post_meta($object->ID, "meta-box-text", true); ?></textarea>
        </div>
    <?php  
}

 

Step3: Save the Custom Meta Field Data Function

function save_custom_meta_box($post_id, $post, $update)
{
    if (!isset($_POST["meta-box-nonce"]) || !wp_verify_nonce($_POST["meta-box-nonce"], basename(__FILE__)))
        return $post_id;
 
    if(!current_user_can("edit_post", $post_id))
        return $post_id;
 
    if(defined("DOING_AUTOSAVE") && DOING_AUTOSAVE)
        return $post_id;
 
    $slug = "post";
    if($slug != $post->post_type)
        return $post_id;
 
    $meta_box_text_value = "";
    $meta_box_dropdown_value = "";
    $meta_box_checkbox_value = "";
 
    if(isset($_POST["meta-box-text"]))
    {
        $meta_box_text_value = $_POST["meta-box-text"];
    }   
    update_post_meta($post_id, "meta-box-text", $meta_box_text_value);
}
 
add_action("save_post", "save_custom_meta_box", 10, 3);

Display the Rating Star in Magento Pages

step1: Display the Rating Star in Magento Pages:

<?php
 
    $storeId = Mage::app()->getStore()->getId();
 
    $summaryData = Mage::getModel('review/review_summary')->setStoreId($storeId)  ->load($_product->getId());
 
?> 
 
<div class="ratings">
 
        <div class="rating-box">
 
            <div class="rating" style="width:<?php echo $summaryData['rating_summary']; ?>%"></div>            
 
         </div>
 
</div>