Question: after migrating my WP site to a different domain and making adjustments, Font Awesome stopped showing icons and shows some weird text instead, for example & # 61505; (I can't copy it as a text, looks like an automatically generated graphics).

Please see attached image.
[![enter image description here](https://i.stack.imgur.com/WsuFB.png)](https://i.stack.imgur.com/WsuFB.png)

Any help?

Thanks!

Answer: 
I had the same issue. I had searched many times for this issue. but I could not find a solution for this. 

> 
> get the most viewed post for the last 2 days not to get the posts for the last 2 days
> 
> 
> 

I have a table named "wp\_popularpostssummary".

[![enter image description here](https://i.stack.imgur.com/pAbjS.png)](https://i.stack.imgur.com/pAbjS.png)

Result ll be 

[![enter image description here](https://i.stack.imgur.com/eI1f9.png)](https://i.stack.imgur.com/eI1f9.png)

so from this table get result postids by using following custom query 

```
$results = $wpdb->get_results($wpdb->prepare('SELECT postid,COUNT(*) AS qy FROM `wp_popularpostssummary` WHERE `view_date` BETWEEN DATE_SUB(CURRENT_DATE(), INTERVAL 1 WEEK) AND CURRENT_DATE() GROUP BY postid ORDER BY qy DESC'));

```

query result ll be the post id's of most viewed posts for the last one week. 
then using following foreach loop to get post id

```
            $pids = [];

                $results = json_decode(json_encode($results), true);

                foreach ($results as $result) {
                   foreach ($result as $k => $v) {
                       if($k == 'postid'){
                           array_push($pids, $v);
                       }
                   };

                }

```

finally, use post id to fetch post details. code ll be following

```
                $args = array(
                    'post_type'         => 'post',
                    'post_status'       => 'publish',
                    'posts_per_page'    => '10',
                    'orderby'           => 'post__in',
                    'post__in'          => $pids

                );

                $query = new WP_Query( $args );   if ( $query->have_posts() ) {
                    // The Loop
                    while ( $query->have_posts() ) { //code here
                     }
                 }

```

Change date duration according to you needs.
I hope this ll help to anyone in the feature!  

Let me know if have a query.
Try adjusting your `$args`. You will need to get the date from two days ago and then pass the year, month and day into the after argument as an array. 

Try this:

```
$date = strtotime ( '-2 day' ); // Date from two days ago

$args = array(
    'post_type' => 'post',
    'meta_key' => 'post_views_count',
    'orderby' => 'meta_value_num',
    'date_query' => array(
        array(
            'after' => array(
                'year'  => date('Y', $date ),
                'month' => date('m', $date ),
                'day'   => date('d', $date ),
            ),
        )
    )
);

```

More documentation about `WP_Query` and its arguments, including `date_query` can be found [here](https://codex.wordpress.org/Class_Reference/WP_Query).