-
Notifications
You must be signed in to change notification settings - Fork 0
PNEX Shortcodes
This is my modified version of the "Press, News, Events" plugin for WordPress. The original hasn't been updated in over 2 years and under WP 4.3 throws a bunch of errors. My "extended" version fixes all of that (tested compatible on WP 4.3.1) AND it adds custom taxonomies so you can categorize, organize, and filter your Press Releases, News, and Events however you like.
For example, create categories for "Radio, Television, Newspapers, Appearances, Interviews, Seminars" and so on. PNEX uses custom post types, which means they wouldn't show up in archive searches by category or tag even if they supported that. So they get their OWN custom categories.
On activation the plugin will also automatically create a page titled "PR News & Events" (you can change the title) which is pre-loaded with the shortcodes to display ten PNEX posts and links for filtering PNEX posts by whatever PR categories you've defined.
If you are already using the original "Press, News, Events" plugin you can safely upgrade to the PNEX plugin. It doesn't alter any of the original plugin's options. Unless you are using "Github Updater" you won't get auto-updates for this version of the plugin, as it is not (yet) available in the official WordPress plugins directory.
[getpr type="press-release" totalposts="3" category="interview" thumbnail="true" content="full" meta="true" ]
Inserts a list of the Press, News & Events posts into another page or post. Parameters:
- type = press-release | news | event (if omitted shows all three)
- class_name = optional class to apply to post
- totalposts = number of posts to display (omit to show all of them)
- category = comma-separated list of PR Category slugs to show (omit to show from all)
- thumbnail = true | false (show post thumbnail or not?)
-
content
- link | (title as link)
- excerpt | (standard wp excerpt text)
- full | (full post content)
- 140 | (character limit of excerpt, no title or link)
- meta = true | false (display meta information too?)
- date = true | false (display date under title?)
- orderby = any legal orderby parameter (default is 'post_date')
[pr_filter type="news" category="radio,television,print" advanced="false"]
By default it shows a horizontal list of links that let a user filter PR posts by a specific category.
- type = (optional) limit results returned to ONE of the post-types (press-release, news, event)
- category = (optional) comma-separated list of specific PR Category slugs to show, omit to show all of them.
- exclude = (optional) comma-separated list of specific PR Category slugs to exclude (over-rides category) if you include "children" in the list only top-level PR categories are displayed.
-
advanced = (optional)
- "false" - shows links to filter by one PR category
- "true" - shows advanced search with checkboxes
- "expand" - advanced search that expands/collapases on click