replaced static content with dynamic content in wordpress custom theme