Capitalize titles only when they precede a name, not when they follow a name or appear without a name.
Professor John Ganim | Aunt Alice |
John Ganim, my professor | Alice Jordan, my favorite aunt |
Note: References to the President (of the United States) and other major public figures are sometimes capitalized in all contexts.