W
by James DiGioia
5 (1 reviews)
WP-Gistpen
A self-hosted alternative to putting your code snippets on Gist.
Tested up to WP 5.2 (Current: 6.9)
v1.2.1
Current Version v1.2.1
Updated 5 years ago
Last Update on 26 Apr, 2020
Synced 15 hours ago
Last Synced on
Rank
#32,112
-527 this week
Active Installs
10+
—
No change
KW Avg Position
42.5
—
No change
Downloads
5.8K
—
Total downloads
Support Resolved
0%
—
No change
Rating
100%
Review 5 out of 5
5
(1 reviews)
Next Milestone 20
10+
20+
4,809
Ranks to Climb
-
Growth Needed
8,000,000
Active Installs
Pro
Unlock Exact Install Count
See the precise estimated active installs for this plugin, calculated from real-time ranking data.
- Exact install estimates within tiers
- Track install growth over time
- Milestone progress predictions
Need 2 more installs to reach 20+
Rank Changes
Current
#32,112
Change
Best
#
Downloads Growth
Downloads
Growth
Peak
Upgrade to Pro
Unlock 30-day, 90-day, and yearly download history charts with a Pro subscription.
Upgrade NowReviews & Ratings
5.0
1 reviews
Overall
100%
5
1
(100%)
4
0
(0%)
3
0
(0%)
2
0
(0%)
1
0
(0%)
Tracked Keywords
Showing 2 of 2Unlock Keyword Analytics
Track keyword rankings, search positions, and discover new ranking opportunities with a Pro subscription.
- Full keyword position tracking
- Historical ranking data
- Competitor keyword analysis
Track This Plugin
Get detailed analytics, keyword tracking, and position alerts delivered to your inbox.
Start Tracking FreePlugin Details
- Version
- 1.2.1
- Last Updated
- Apr 26, 2020
- Requires WP
- 4.7+
- Tested Up To
- 5.2
- PHP Version
- 5.4 or higher
- Author
- James DiGioia
Support & Rating
- Rating
- ★ ★ ★ ★ ★ 5
- Reviews
- 1
- Support Threads
- 0
- Resolved
- 0%
Keywords
Upgrade to Pro
Unlock keyword rankings, search positions, and detailed analytics with a Pro subscription.
Upgrade NowFrequently Asked Questions
Common questions about WP-Gistpen
Your PHP version should be 5.4+, and you must be running WordPress v4.7+. This is because WP-Gistpen relies on the WP-API infrastructure.
Go to the "Pages" screen and create a new, blank page with the name "Gistpens" and click publish. That URL will now display all of your Gistpens. You can link to this page in the menu to direct users to your Gistpens archive page. You can change the name of the page; just make sure the slug of the page is "gistpens".
To add a new Gistpen, go to Gistpens -> Add New, and add your code. You can enable or disable Gist syncing on a a per-Gistpen basis. You can also create and insert a Gistpen directly into your post/page from the visual editor by clicking the code button. From the pop-up, search for your gistpen, select it, and click insert. Your shortcode will be inserted into the editor.
To highlight a specific line, add highlight=^^, where ^^ is a line number or range of numbers you want highlighted, like this (via PrismJS documentation): A single number refers to the line with that number Ranges are denoted by two numbers, separated with a hyphen (-) Multiple line numbers or ranges are separated by commas. Whitespace is allowed anywhere and will be stripped off. Examples: highlight="5": The 5th line highlight="1-5": Lines 1 through 5 highlight="1,4": Line 1 and line 4 highlight="1-2,5,9-20": Lines 1 through 2, line 5, lines 9 through 20
You can link to a specific line in your Gistpen by linking to #gistpen-{gistpen-slug}.{lines}. The lines don't need to be highlighted in advance for the link to work, and they will be highlighted when the link is clicked. The {lines} should match the same format as above.
Login to GitHub. Go to Settings -> Applications. Under "Personal access tokens", click "Generate New Token." Give it a name, click create The default settings work, but make you sure you at least include the gist and user scopes. Copy the generated token. Paste it into the settings page.
Profit!
Gistpens can be exported en masse. All Gistpens will be synced, only if the Gistpen hasn't been synced yet, but regardless of whether syncing for the Gistpen is enabled. Syncing will then be enabled on the exported Gistpens. If you do not want this, you can enable/disable Gistpen syncing on a per-Gistpen basis. Just click the checkbox on the Gistpen edit page, and any changes will be reflected on the corresponding Gist on update. If you uncheck that box, future changes will not be reflected on Gist. To go this, go to the Gistpens settings page and click "Jobs". Next to the the "Export Job", click "Dispatch Job". After the Job is done, check out the log messages to ensure everything exported correctly.
Go to the Gistpents settings page and click "Jobs". Next to the "Import Job", click "Dispatch Job", then check out the log messages to ensure everything was imported correctly.