We have programs and product environment, we want add both sites and subsites to the main page using content query web part? is it possible if yes how?
please check this post it might helpful to you..
If you have configured Search service application in your farm and associated with web application- publishing site collection- then its easier to use Content Search Web Part
and fetch all the sub sites from the site collection and display it in a CSWP.
please refer this-link-sharegate
also refer sharesilver.wordpress