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..
We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.
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