-
Notifications
You must be signed in to change notification settings - Fork 0
/
instructions.rtf
70 lines (65 loc) · 6.85 KB
/
instructions.rtf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{\rtf1\ansi\ansicpg1252\cocoartf1187\cocoasubrtf400
{\fonttbl\f0\fswiss\fcharset0 Helvetica;\f1\fswiss\fcharset0 Helvetica-Light;}
{\colortbl;\red255\green255\blue255;\red84\green84\blue84;\red84\green84\blue84;}
{\*\listtable{\list\listtemplateid1\listhybrid{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{disc\}}{\leveltext\leveltemplateid1\'01\uc0\u8226 ;}{\levelnumbers;}\fi-360\li720\lin720 }{\listname ;}\listid1}
{\list\listtemplateid2\listhybrid{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{disc\}}{\leveltext\leveltemplateid101\'01\uc0\u8226 ;}{\levelnumbers;}\fi-360\li720\lin720 }{\listname ;}\listid2}
{\list\listtemplateid3\listhybrid{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{disc\}}{\leveltext\leveltemplateid201\'01\uc0\u8226 ;}{\levelnumbers;}\fi-360\li720\lin720 }{\listname ;}\listid3}
{\list\listtemplateid4\listhybrid{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{disc\}}{\leveltext\leveltemplateid301\'01\uc0\u8226 ;}{\levelnumbers;}\fi-360\li720\lin720 }{\listname ;}\listid4}
{\list\listtemplateid5\listhybrid{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{disc\}}{\leveltext\leveltemplateid401\'01\uc0\u8226 ;}{\levelnumbers;}\fi-360\li720\lin720 }{\listname ;}\listid5}}
{\*\listoverridetable{\listoverride\listid1\listoverridecount0\ls1}{\listoverride\listid2\listoverridecount0\ls2}{\listoverride\listid3\listoverridecount0\ls3}{\listoverride\listid4\listoverridecount0\ls4}{\listoverride\listid5\listoverridecount0\ls5}}
\margl1440\margr1440\vieww12660\viewh18940\viewkind0
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural
\f0\fs56 \cf0 Post Formats for WP Galleries\
\f1\fs36 \cf2 A replacement for the NextGen Gallery Plugin\
\f0\fs24 \cf0 \
\i Below are instructions for using the files included in this folder. \
For additional documentation on post formats, go to:\
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\li180\fi-180\pardirnatural
{\field{\*\fldinst{HYPERLINK "http://codex.wordpress.org/Post_Formats"}}{\fldrslt \cf0 http://codex.wordpress.org/Post_Formats}}
\i0 \
\pard\tx220\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\li720\fi-720\sa200\pardirnatural
\ls1\ilvl0\cf0 \
{\listtext \'95 }This package was created in order to facilitate the retirement of the NextGen plugin from our multi-site. You are encouraged to customize these files in a way that best serves your work flow and style, and integrate them into your own starter theme/boilerplate.\
\pard\tx220\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\li720\fi-720\sa200\pardirnatural
\ls2\ilvl0\cf0 {\listtext \'95 }The files included in this folder are not a complete theme. Each file contains snippets of code necessary to utilize the WP Post Format function, as well as providing a basic structure and style to get you started.\
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\sa200\pardirnatural
\cf0 \
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\sa200\pardirnatural
\ls3\ilvl0
\fs36 \cf0 Using the Files\
\pard\tx220\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\li720\fi-720\sa200\pardirnatural
\ls3\ilvl0
\fs24 \cf0 {\listtext \'95 }
\b\fs28 \cf2 functions.php
\b0\fs24 \cf0 Add all of this code to your own theme's functions.php file. Two variable you will probably edit from time to time are the "Normal post thumbnails" and the "Photo gallery thumbnail size". The first number is the width, and the second number is the height. More documentation on these functions can be found here: {\field{\*\fldinst{HYPERLINK "http://codex.wordpress.org/Function_Reference/add_image_size"}}{\fldrslt http://codex.wordpress.org/Function_Reference/add_image_size}}\
{\listtext \'95 }
\b\fs28 \cf3 index.php
\b0\fs24 \cf0 This much simpler form of a loop for your index page partials out specialized loops based on post format to other post templates. For the purpose of this package, only two post templates are included: Gallery and None (which is a standard blog post). This file will continue to handle displaying a list of your standard blog posts for any page assigned to function as your Posts page as per your Settings. ({\field{\*\fldinst{HYPERLINK "http://codex.wordpress.org/Settings_Reading_Screen"}}{\fldrslt http://codex.wordpress.org/Settings_Reading_Screen}})\
{\listtext \'95 }
\b\fs28 \cf3 content-gallery.php
\b0\fs24 \cf0 Posts assigned to the Gallery Post Format will appear using this file.\
{\listtext \'95 }
\b\fs28 \cf3 content.php
\b0\fs24 \cf0 Standard single posts will appear using this file.\
{\listtext \'95 }
\b\fs28 \cf3 page-gallery.php
\b0\fs24 \cf0 This template filters out all posts
\i except
\i0 for posts in the Gallery Post Format. It is also counting images loaded into each Gallery post. If you choose to use an image for your Featured Image that does not appear in your gallery, it will include that image in your total image count.\
\pard\tx220\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\li720\fi-720\sa200\pardirnatural
\ls4\ilvl0\cf0 {\listtext \'95 }
\b\fs28 \cf3 style.css
\b0\fs24 \cf0 Add these styles to your own theme's style.css file to get started and edit as needed.\
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\sa200\pardirnatural
\cf0 \
\fs36 Creating Galleries\
\pard\tx220\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\li720\fi-720\sa200\pardirnatural
\ls5\ilvl0
\fs24 \cf0 {\listtext \'95 }After updating your theme files with the provided code snippets and page template, create a new page in your WP site and assign the Photo Gallery Page Template to it. Publish or save draft.\
{\listtext \'95 }Create a new post and assign the Gallery Post Format to it. If you do not see the Format panel, check your Screen Options at top to make sure the Format panel is visible.\
{\listtext \'95 }Create a gallery by following these instructions: {\field{\*\fldinst{HYPERLINK "http://codex.wordpress.org/The_WordPress_Gallery"}}{\fldrslt http://codex.wordpress.org/The_WordPress_Gallery}}\
{\listtext \'95 }Make sure the post has a title and a Featured Image assigned to it, then publish.\
{\listtext \'95 }Posts in the Gallery Post Format will automatically populate the page using the Photo Gallery Page Template.\
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\sa200\pardirnatural
\cf0 \
}