Putting it in an iframe doesn’t stop search engines, just FYI. Google will still see the links. If it’s on the web, Google will find it.
From Google:
IFrames are sometimes used to display content on web pages. Content displayed via iFrames may not be indexed and available to appear in Google’s search results. We recommend that you avoid the use of iFrames to display content. If you do include iFrames, make sure to provide additional text-based links to the content they display, so that Googlebot can crawl and index this content.
Because your TAGS are going to be linked to in your POSTS, Google will still be able to crawl them, which kinda defeats the purpose you’ve got going here.
Basic rule: If you don’t want Google to see it, don’t put it on the web!
From where i can edit the theme to call get_sidebar() inside the iframe. Please explain it more clearly
Go into your theme folder and open the .php files. In them (MANY of them), they have calls to get_sidebar() or perhaps include(sidebar.php). You want to take those out and replace them with an iframe call.
It may be just as simple as this: <iframe src="sidebar.php"></iframe>
But I cannot even guess if this might work as desired. I know you’ll have problems since iframes require you to define the absolute size, which means you’ll probably have scrolling issues.