Skip to content

Add new magazine article issue to the slider

Ashwin Ramaswami edited this page Feb 20, 2019 · 2 revisions

Objective

Add a new magazine issue to the slider on https://www.stanforddaily.com/category/magazine/ image

Steps

  1. go to https://issuu.com/home/published and sign in with [email protected] account image

  2. click add to website -> add to website image

  3. click "get code" image

  4. see that the id is equal to "28430991/67880779"

  5. Get an image of the article cover from the magazine editor, then upload it to wordpress and click on the image in the media tab. image

  6. Get the attachment id from the url (in this case, it is "1149963")

  7. Add a new entry to https://github.com/TheStanfordDaily/stanforddaily-website/blob/c7c48f8dfd8f23bd8c40198b18d8246531e80643/wp-content/themes/jnews-child/category-magazine.php#L107, for example:

    array("volume" => "III",
        "issue" => "3",
        "date" => "02.19.19",
        "id" => "28430991/67880779",
        "image" => 1149963),