Facebook share thumbnail not showing until refreshed

Google “facebook linter”. Choose the first search result which will be from official facebook website. Go there, enter your url, hit submit (or similar button for submission). Now come back to facebook profile, and post the url as an update. You will get the thumbnail.

Get posts by category or author

I used the following in my child theme ‘functions.php’ to get posts by category name. You can also use category ID number but that didn’t work for me. add_action(‘pre_get_posts’, ‘ad_filter_categories’); function ad_filter_categories($query) { if ($query->is_main_query() && is_home()) { $query->set(‘category_name’,’tips’); } }