Thursday, August 25, 2016

How to remove the date and author of a post in the Affinity Theme

Ok, this one took me a while...


  1. Log in as Admin to the WordPress site
  2. Navigate to Appearance | Editor
  3. Click on template-tags.php in the right hand navigation with all of the pages.
  4. Search for the following line:
    1. echo '' . $posted_on . ''; // WPCS: XSS OK
  5. If you don't want the date and the author to show, change this line to the following:
    1. //echo '' . $posted_on . ''; // WPCS: XSS OK
  6. If you don't want to only show the date, change this line to the following:
    1. echo '' . $posted_on . ''; // WPCS: XSS OK
  7. If you don't want only show the author, change this line to the following:
    1. echo ''; // WPCS: XSS OK

No comments: