This repo will store/track all programming files related to the redesign of the New School Free Press website!
You can see a draft of the article page, AKA "reader" here.
The live blog is, well, live here
-
Advanced Custom Fields is used to fetch data for the Live Blog updates and other posts.
-
Co-Authors Plus is self explanatory. It is used in the new post template's php gets. Look for
get_coauthors($thepost);
-
Really Simple SSL is self explanatory.
The live blog is built as a custom single page (page-19929.php) in Wordpress. It has three sections, which are edited in different areas:
-
Live Updates uses a custom post type added through functions.php. Look for the
create_post_wp_covid()
andadd_action( 'init', 'create_post_wp_covid' );
functions. -
Our Coverage pulls from regular posts that have the
c19-our-coverage
tag. -
Resources pull directly from the Live Blog page content editor in Pages
For more information about the design and purpose of these sections, see this design concept document.
Some development gotchas for future custom pages:
- When you push to the server using FTP, you need to upload the custom single page in the
mobile
folder of the theme as well as the overall theme folder, because this theme uses a completely different template for mobile (I agree, it's silly).