Wednesday, 28 January 2015

How to change the author of a post in Wordpress

How to change the author of a post in Wordpre


There are number of methods to change the author of word-press post and are following.




Method 1: Change Author by manually edit the POST, Follow the simple steps. 
  • Login as Administrator.
  • Go to Posts.
  • Edit the post which's author you want to change.
  • Now you are on edit post.
  • Scroll down till you get "Author List" under "Author".
  • Now select the Author from dropdown/selectbox to whom you want to assign. 
  • See screenshot below

Wordpress how to change the author of a post by manually




Method 2: Change Author by MySQL edit the POST, Follow the simple steps
  • Login to your database.
  • Get the backup of wp_posts table, incase you want to revert back.
  • Get the post_author of author which post you want to assgin another user (Suppose post_author is 28).
  • Get the post_author of author to whom you want to assign.(Suppose post_author is 30).
  • Execute the Following MySQL Query.
  • update wp_posts set post_author="30" where post_author="28"
  • It will change the author of all post from one author (28) to another author (30)


How to clear Facebook image cache

How to clear Facebook image cache

Following are way to clear the facebook's image from cache.
Step 1, Update the Image URL with version in Meta Tags
<meta content="http://www.aboutcity.net/images/web-technology-experts-notes.jpg?v=12" property="og:image"/>

Step 2:
A) Go to https://developers.facebook.com/tools/debug/
B) Enter URL and Press "Debug" Submit button
C) Click On "Show existing scrape information", It will remove the caching
D) Check the updated image


Following is Screenshot which explain, how to clear the Image Cache?

Facebook Open Graph not clearing cache