-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ba3a94a
commit 3a7ddf3
Showing
7 changed files
with
191 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
# PDF Attachments for WordPress Posts & Pages | ||
This plugin will add a custom metabox controller to attach PDF files to WordPress posts | ||
Custom metabox controller to upload and manage posts / pages attachments | ||
|
||
The custom metabox name is <code>wppa_attachment_list</code>. It's saved as a JSON *string* list | ||
The custom metabox name is <code>wppa_attachment_list</code>. It's saved as a JSON *object* list: | ||
|
||
**Just download the source and install it as a plugin.** | ||
|
||
### AJAX path | ||
If the plugin doesn't work, try to specify the full wordpress ajax path in <code>main.js</code>: | ||
|
||
```javascript | ||
request.open("POST", '//' + window.location.host + '/wp-admin/admin-ajax.php', true); | ||
```json | ||
{ | ||
"name":"Attachment Name", | ||
"cover_image":"http://xyz/nice_image.jpg", | ||
"url":"http://xyz/nice_doc.pdf" | ||
} | ||
``` | ||
|
||
**Just download the source and install it as a plugin.** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.