SEO On-Site Optimization Keyword Research, Title and Meta Optimization, Image Optimization etc for $80

SEO On-Site Optimization Keyword Research, Title and Meta Optimization, Image Optimization etc

My Experience: 6 years in SEO
Why Choose me: It will save your time and money to get services from professional, Guaranteed Results!

What you will get in this service:

  • SEO Audit 
  • Keyword Research
  • Competitors Research
  • Keywords Filtration and Finalization
  • Optimize all your website according to selected Keywords
  • 100% Guaranteed Professional Work
  • Any services related to seo..

Just contact and lets start the work!


Check the Specific Meta Key IF its Meta Value is Empty then… (WP Post Meta Query)

I’m trying to make a wp query to WP Post Meta Table where I want to check the post’s META KEY and its META VALUE if its EMPTY or NOT.

The meta key is wc_pay_per_post_product_ids.

IF the statement is TRUE, display the following:

<h1>The Meta Key Is Empty or NULL</h1>
<div class="row"><div class="col-2">One</div><div class="col-10">Two</div></div>


<h1>The Meta Key Is NOT Empty or NULL</h1>
<div class="row"><div class="col-4"></div><div class="col-4"></div><div class="col-4"></div></div>

Here’s the complete code.

  global $wpdb;
  $post_id = get_the_ID();
  $meta_value = 'wc_pay_per_post_product_ids';

    $args = array(
        'post_type' => 'post',
        'meta_query'     => array(
            'post_id' => get_the_ID(),
            'key'     => 'wc_pay_per_post_product_ids',
            'compare' => 'EXIST' // CHECK THE VALUE OF META KEY IF EXISTS?

    if ($arg == TRUE) {
        echo '<h1>The Meta Key Is Empty or NULL</h1><div class="row"><div class="col-2"></div><div class="col-10"></div></div>';
    } else {
        echo '<h1>The Meta Key Is NOT Empty or NULL</h1><div class="row"><div class="col-4">ONE</div><div class="col-4">TWO</div><div class="col-4">THREE</div></div>';


Here’s the screenshot of my table:

enter image description here

The issue I’m encountering is it always return the result “The Meta Key Is NOT Empty or NULL” Any idea what’s wrong?

plugins – Update specific user meta with same meta key and multiple array values

I have stored some image data as array values in user_meta with same key as “images”.
I would like to update and delete that image data in that array. But the meta_key as same so i can’t achieve the update and delete option. I’ll try to do that it will affect the all arrays.
I’m using this get_user_meta( $user_id, ‘images’ ); function to retrieve the image data.
Resultant array look like as follows.

    (0) => Array
            (location) => Calle Tacuba
            (images) => Array
                    (0) => 591

            (time) => 2020-06-25 17:14:18

    (1) => Array
            (location) => California
            (images) => Array
                    (0) => 593

            (time) => 2020-06-25 17:17:14


How to update and delete the images details inside the array using update_user_meta & delete_user_meta. i.e I would like to update the key(1) array only but the update function will affect all the data.

wp cli – How to add custom post meta key:value in woocommerce using wp-cli

I am Using WooCommerce cli to create product but having issue to add custom filed (key:value in postmeta table)

wp wc product create --name="Test Title" --description="Description goes here" --type=simple --sku=254896 --regular_price=50 --user=1 --meta_data="({"key1":"value1","key2":"value2"})"

Product is successfully saved but meta_data not saved against this product.

php – WooCommerce: Add custom meta to order item for internal use

I want to add some meta data to the order item in WooCommerce.
These meta fields are for internal use only and shouldn’t be visible.

I found a very good answer here:

add_action('woocommerce_add_order_item_meta', 'add_custom_order_item_meta_data', 1, 3 );
function add_custom_order_item_meta_data( $item_id, $values, $cart_item_key ) {

    global $order;

    // Get the user ID
    $user_id = get_post_meta( $order->id, '_customer_user', true );

    // Get User custom field value for 'billing_enumber'
    $billing_e_number = get_user_meta( $user_id, 'billing_enumber', true );

    // Setting this custom field in order item meta
        wc_add_order_item_meta($item_id, 'pa_billing-e-number', $billing_e_number, true);


But with this example, the content from the meta fields will appear in the order details for the customer.

Is there a way to make these fields only visible in the backend and usable for internal functions?

custom field – Update Instead of Rewriting Meta Value

I have repeatable fields inside post Post Type and the meta_value is a JSON Object once post saved. I was wondering if there is a way instead of rewriting the whole JSON, to only update the changed custom fields values.

My Save 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;

        return $post_id;

    $slug = "post";
    if($slug != $post->post_type)
        return $post_id;

    $meta_box_text_value = "";
            $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);

No ACF post meta when using get_post_custom during save_post

When I save/publish a page, I want it to save to all blogs in multisite including its custom fields (using Advance custom fields). The problem is that, when I tried to look at the value of post_meta during saving before passing it to every blog, it only contains edit_lock. But upon checking the database after the saving of the page, the meta key and value are in the post_meta table already. I tried modifying the priority but still the same. What could be the problem?

add_action( 'save_post', 'savetoall', 20, 2 );

function savetoall( $original_post_id, $original_post )
    if( defined('DOING_AUTOSAVE') && DOING_AUTOSAVE ) return $original_post_id;

    if( get_post_status( $original_post ) !== 'publish' ) return $original_post_id;

    remove_action('save_post', __FUNCTION__);

    if ($original_post_id && get_current_blog_id() == 1) 

    global $wpdb;
    $blogs = $wpdb->get_results( $wpdb->prepare("SELECT blog_id FROM $wpdb->blogs WHERE site_id = %d AND public = '1' AND archived = '0' AND mature = '0' AND spam = '0' AND deleted = '0' ORDER BY blog_id ASC", $wpdb->siteid), ARRAY_A );
    $blog_ids = array();

    foreach($blogs as $blog)
        array_push($blog_ids, $blog('blog_id'));

    $post_data = array(
    'post_author' => $original_post->post_author,
    'post_date' => $original_post->post_date,
    'post_modified' => $original_post->post_modified,
    'post_content' => $original_post->post_content,
    'post_title' => $original_post->post_title,
    'post_excerpt' => $original_post->post_excerpt,
    'post_status' => 'publish',
    'post_name' => $original_post->post_name,
    'post_type' => $original_post->post_type,

     $post_terms = wp_get_object_terms( $original_post_id, 'category', array('fields' => 'slugs') );
     $post_meta = get_post_custom( $original_post_id );
     //the value of post meta here is only edit_lock. 

     foreach( $blog_ids as $blog_id ) 

         switch_to_blog( $blog_id );

         if( get_posts( array( 'name' => $post_data('post_name'), 'post_type' => $post_data('post_type'), 'post_status' => 'publish' ) ) ) 

         $inserted_post_id = wp_insert_post($post_data);

         wp_set_object_terms( $inserted_post_id, $post_terms, 'category', false);
         $attachments = get_blog_post( 1, $meta_value );

        foreach ( $post_meta as $meta_key => $meta_values) 

            if( $meta_key == '_wp_old_slug' ) {
            foreach ($meta_values as $meta_value) {
                add_post_meta( $inserted_post_id, $key, $meta_value );



why my webpage updates are not reflected in seo tools (title, meta and keywords)

Hello Masters

I am facing serious issues on my website.

I am using IBP Seo and Seoprofiler tools to analyse my website/ webpage.

Whatever I change in the title, meta, on page words or keywords are not reflected in the above tools.

Its a WordPress site, cache plugin deactivated, SSL deactivated i checked all the ways, but not able to find the issues.

Anybody facing these issues or any solutions for this?