=== upPrev === Contributors: iworks Donate link: http://iworks.pl/donate/upprev.php Tags: animation, featured, previous, related, SEO Requires at least: 3.5 Tested up to: 4.8 Stable tag: 3.4.0.1 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Display cool, animated fly-out or fade box with related content. Just like New York Times. == Description == Display cool, animated fly-out or fade box with related content. Just like New York Times. When a reader scrolls to the bottom of a single post, page or custom post type, a button animates in the page’s bottom right or left corner, allowing the reader to select the previous or random available post or posts in the selected configuration: 1. Just previous 2. Previous in category 3. Previous in tag 4. Random 5. Related using YARPP (only post/pages) == Installation == There are 3 ways to install this plugin: = The super easy way = 1. **Log in** to your WordPress Admin panel. 1. **Go to: Plugins > Add New.** 1. **Type** ‘upPrev’ into the Search Plugins field and hit Enter. Once found, you can view details such as the point release, rating and description. 1. **Click** Install Now. After clicking the link, you’ll be asked if you’re sure you want to install the plugin. 1. **Click** Yes, and WordPress completes the installation. 1. **Activate** the plugin. 1. A new menu `upPrev` in `Appearance` will appear in your Admin Menu. *** = The easy way = 1. Download the plugin (.zip file) on the right column of this page 1. In your Admin, go to menu Plugins > Add 1. Select button `Upload Plugin` 1. Upload the .zip file you just downloaded 1. Activate the plugin 1. A new menu `upPrev` in `Appearance` will appear in your Admin *** = The old and reliable way (FTP) = 1. Upload `upprev` folder to the `/wp-content/plugins/` directory 1. Activate the plugin through the 'Plugins' menu in WordPress 1. A new menu `upPrev` in `Appearance` will appear in your Admin == Frequently Asked Questions == = upPrev is turn on, but there is no box, what now? = First of all, check your template. To proper work plugin requires function `wp_head` and `wp_footer`. If your template don't use one of theme, upPrev will not work. If you cant check this action in your templates manually use this code to check it: https://gist.github.com/378450 = My website is not in English, will upPrev work? = upPrev plugin will work on websites in the following languages: Please check it on [Translate upPrev plugin](https://translate.wordpress.org/projects/wp-plugins/upprev). = How to add default image to post without thumbnail? = Use the `iworks_upprev_image` action, read more: [How to add default image to post without thumbnail?](http://upprev.com/faq/how-to-add-default-image-to-post-without-thumbnail.html) = How to change post thumbnail to other image? = Use the `iworks_upprev_get_the_post_thumbnail` filter, read more: [How to change post thumbnail to other image?](http://upprev.com/faq/how-to-change-post-thubnail-to-other-image.html) = How to add upPrev for pages or custom post types? = Yes. Just select post types on `Appearance -> upPrev -> Content` page in `Select post types` section. = How I can customize with my own styles? = See here: [How I can customize with my own styles?](http://upprev.com/faq/how-i-can-customize-with-my-own-styles.html) = Need more snippets? = Visit: [upPrev: snippet archive](http://upprev.com/tag/snippet) == Screenshots == 1. upPrev on post 2. upPrev options: appearance 3. upPrev options: content 4. upPrev options: links 5. upPrev options: cache == Changelog == = 3.4.0.1 = * Release date: 2017-05-12 * Fixed a problem with some older PHP versions. = 3.4.0 = * Release date: 2017-05-12 * IMPROVEMENT: added Finnish translation by [Avastorm]|(http://fi.avastorm.com/) * IMPROVEMENT: use analitics.js if it is available. * IMPROVEMENT: updated [Mobile-Detect](https://github.com/serbanghita/Mobile-Detect) class to 2.8.25. * IMPROVEMENT: updated [WordPress Options Class](https://github.com/iworks/wordpress-options-class) class to 2.4.1. = 3.3.30 = * Release date: 2015-10-06 * BUGFIX: fixed a problem with showing the title if contains tags with attributes. Props for [Ovidiu](http://pacura.ru/) = 3.3.29 = * Release date: 2015-09-01 * IMPROVEMENT: added Tagalog translation by [Kel DC](https://profiles.wordpress.org/kel-dc) = 3.3.28 = * IMPROVEMENT: added Slovak translation by Daniel Schmidt = 3.3.27 = * IMPROVEMENT: added Dutch translation by [Ruud Kok](http://www.ruudkok.nl/) = 3.3.26 = * BUGFIX: fixed empty post_type value thx to [Zeus](http://wordpress.org/support/profile/prabhakaraan) [UpPrev error - array_key_exists()!](http://wordpress.org/support/topic/upprev-error-array_key_exists) * IMPROVEMENT: added Italian translation by [Francesco Giossi](http://www.giossi.com/) = 3.3.25 = * IMPROVEMENT: updated Simplified Chinese translation by [Leo](http://smallseotips.com/) * IMPROVEMENT: added filter '[iworks_upprev_box_title](http://upprev.com/documentation/filter-reference/iworks_upprev_box_title)' for box title, return false to remove title = 3.3.24 = * BUGFIX: prevent to display upPrev box on attachment page thx to [Swaps4](http://wordpress.org/support/profile/swaps4) [upPrev displaying on attachment pages with no styling](http://wordpress.org/support/topic/upprev-displaying-on-attachment-pages-with-no-styling) * BUGFIX: remove add_contextual_help function (deprecated from 3.3). * IMPROVEMENT: updated IworksOptionClass to 2.0.0 = 3.3.23 = * BUGFIX: default value only when is need thx to [Jeff](http://wordpress.org/support/profile/lambje) [Offset Not Working](http://wordpress.org/support/topic/offset-not-working) * IMPROVEMENT: updated IworksOptionClass to 1.7.7 = 3.3.22 = * IMPROVEMENT: add [iworks_upprev_check filter](http://upprev.com/documentation/filter-reference/iworks_upprev_check), see documentation: [Filter Reference – iworks_upprev_check](http://upprev.com/fiter_reference_iworks_upprev_check.html) = 3.3.21 = * BUGFIX: replace WP_PLUGIN_URL with plugins_url() thx to [tigr](http://wordpress.org/support/profile/tigr) [SSL compatibility](http://wordpress.org/support/topic/ssl-compatibility) = 3.3.20 = * IMPROVEMENT: updated IworksOptionClass to 1.7.4 * IMPROVEMENT: check upPrev compatibility with WordPress 3.7 * BUGFIX: fixed "last selected tab" = 3.3.19 = * IMPROVEMENT: updated Hebrew translation by [של אודי בורג](http://blog.udiburg.com) = 3.3.18 = * IMPROVEMENT: updated Bulgarian translation by [Martin Halachev](http://wordpress.org/support/profile/mhalachev) = 3.3.17 = * BUGFIX: Move custom css after wp_enqueue_style. thx to [007me](http://wordpress.org/support/profile/007me) [Can't change font size and style and costumize close button](http://wordpress.org/support/topic/cant-change-font-size-and-style-and-costumize-close-button) = 3.3.16 = * BUGFIX: Excerpt number of words to show option not working for a concrete excerpt. thx to [gyalokai](http://wordpress.org/support/profile/gyalokai) [Excerpt number of words to show option not working](http://wordpress.org/support/topic/excerpt-number-of-words-to-show-option-not-working) * IMPROVEMENT: updated IworksOptionClass to 1.7.2 * IMPROVEMENT: added box to front page thx to [SARed](http://wordpress.org/support/profile/sared) [Using Upprev on a front page with latest posts?](http://wordpress.org/support/topic/using-upprev-on-a-front-page-with-latest-posts) = 3.3.15 = * IMPROVEMENT: added Hebrew translation by [עמיעד](http://hatul.info) = 3.3.14 = * BUGFIX: fixed limit for taxonomies thx to [darkjedipete](http://wordpress.org/support/profile/darkjedipete) = 3.3.13 = * IMPROVEMENT: added Czech translation by [Michal Bláha](http://michalblaha.cz/) = 3.3.12 = * BUGFIX: fixed compatibility errors with YARPP 4.x version thx to [adamdport](http://wordpress.org/support/profile/adamdport) * IMPROVEMENT: add css to changed tabs class in WordPress 3.5 * IMPROVEMENT: check upPrev compatibility with WordPress 3.5 = 3.3.11 = * IMPROVEMENT: added Bulgarian translation by [Martin Halachev](http://wordpress.org/support/profile/mhalachev) = 3.3.10 = * IMPROVEMENT: added Spanish translation by [Ramón Rautenstrauch](http://www.apasionadosdelmarketing.es/about/) = 3.3.9 = * IMPROVEMENT: added Romanian translation by [Florin Arjocu](http://drumliber.ro/) = 3.3.8 = * BUGFIX: critical update, plugin crash site if choose no post types = 3.3.7 = * IMPROVEMENT: added Russian translation by [Вадим Сохин](http://webbizreshenie.ru/) = 3.3.6 = * IMPROVEMENT: added German translation by [Mario Wolf](http://wolfmedien.de/) = 3.3.5 = * BUGFIX: fixed double output when using YARPP thx to [gyutae](http://wordpress.org/support/profile/gyutae) * BUGFIX: hide developer admin option = 3.3.4 = * IMPROVEMENT: added Brazilian Portuguese translation by [Leonardo Antonioli](http://www.tobeguarany.com/) * BUGFIX: fixed minor description bug (thx Eva) = 3.3.3 = * IMPROVEMENT: added Vietnamese translation by [Xman](http://thegioimanguon.com/) * BUGFIX: use crc32 to build ids for tabbed config, wich collapsed in other than utf8 charset = 3.3.2 = * IMPROVEMENT: added GA option: non-interaction to prevent events in bounce-rate calculation. = 3.3.1 = * IMPROVEMENT: added French translation by [Eva](http://myclientisrich-leblog.com/) = 3.3 = * IMPROVEMENT: added option to hide upPrevBox on mobile devices, matching implemented from [WP Mobile Detector](http://wordpress.org/extend/plugins/wp-mobile-detector/) ticket from [forum](http://wordpress.org/support/topic/plugin-upprev-mobile-themes) = 3.2 = * IMPROVEMENT: added action *[iworks_upprev_image](http://upprev.com/documentation/action-reference/iworks_upprev_image)* - you can add own code to produce icon, when them don't support post-thumbnails * IMPROVEMENT: added thumbnail filter *iworks_upprev_get_the_post_thumbnail* - now you can easy change thumbnail * IMPROVEMENT: added purging transient cache entries from $wpdb->options table when turn off this cache [forum](http://wordpress.org/support/topic/plugin-upprev-crazy-number-of-wp-options-database-entries) * IMPROVEMENT: add check _gaq object exist * CHECK: checked compatibility to WordPress 3.3 * IMPROVEMENT: updated IworksOptionClass to version 1.0.1 = 3.1.1 = * IMPROVEMENT: added ability to turn off "remove_all_filters" function = 3.1 = * IMPROVEMENT: change GA trackEvent syntax * IMPROVEMENT: added Turkish translation by [wpdestek](http://wordpress.org/support/profile/wpdestek) = 3.0.1 = * BUGFIX: fixed printing GA code when "I don't have GA tracking on site." is unticked. [forum](http://wordpress.org/support/topic/plugin-upprev-google-analytics-tracking-code-error-ga-tracking-installed) thx [win101](http://wordpress.org/support/profile/win101) = 3.0 = * BUGFIX: fixed end date filter for imported posts * BUGFIX: fixed javascript conflict on edit post screen * BUGFIX: fixed problem with unchecking 'Excerpts'. [forum](http://wordpress.org/support/topic/plugin-upprev-bugs-no-box-in-firefox-6-offset-doesnt-work-disable-excerpts-doesnt-work) thx [benjamin](http://wordpress.org/support/profile/kbenjamin) * BUGFIX: fixed sticky posts display loop * BUGFIX: fixed thumbnail display problem * IMPROVEMENT: added filter '[iworks_upprev_box_item](http://upprev.com/documentation/filter-reference/iworks-upprev-box-item)' for any item excerpt YARPPs * IMPROVEMENT: added GA track: view box and click link * IMPROVEMENT: added option *ignore sticky posts* * IMPROVEMENT: added sanitize function for offset * IMPROVEMENT: added thumbnail preview on posts/pages list * IMPROVEMENT: cleaning empty styles from custom css field * REFACTORING: option management = 2.3.7 = * BUGFIX: fixed problem for defaults post_type if no one choosed [forum](http://wordpress.org/support/topic/plugin-upprev-error) = 2.3.6 = * BUGFIX: fixed problem with using thumbnails in themes with thumbnail support [forum](http://wordpress.org/support/topic/plugin-upprev-version-235-update-breaks-thumbnail-support) * IMPROVEMENT: added custom css rules (forum](http://wordpress.org/support/topic/plugin-upprev-version-235-update-breaks-thumbnail-support) = 2.3.5 = * BUGFIX: fixed problem with using thumbnails in themes without thumbnail support = 2.3.4 = * BUGFIX: fixed problem with default values and values saving (again) * IMPROVEMENT: added correct way to enqueue style and js files = 2.3.3 = * BUGFIX: hide configuration link on plugins list page for WordPress MU * BUGFIX: fixed problem with post excerpt * BUGFIX: fixed problem with default values and values saving = 2.3.2 = * BUGFIX: fixed translation bug * BUGFIX: removed date limit for random posts * BUGFIX: fixed open in new window bug * IMPROVEMENT: added limit to display only on selected post types [forum](http://wordpress.org/support/topic/plugin-upprev-previous-post-animated-notification-custom-post-types) = 2.3.1 = * BUGFIX: fixed small bug with display option = 2.3 = * IMPROVEMENT: added filter **iworks_upprev_box** * IMPROVEMENT: added tabbed options (based on [Breadcrumb NavXT](http://wordpress.org/extend/plugins/breadcrumb-navxt/) plugin * IMPROVEMENT: added prefix and suffix to urls * IMPROVEMENT: added option to allow open links in new window * IMPROVEMENT: added integration with [YARPP](http://wordpress.org/extend/plugins/yet-another-related-posts-plugin/) * BUGFIX: fixed [Transients Cache Lifetime is set to wrong seconds](http://wordpress.org/support/topic/plugin-upprev-transients-cache-lifetime-is-set-to-wrong-seconds) * BUGFIX: fixed deactivation hook option names = 2.2.1 = * BUGFIX: fixed display problem with document shorter than browser * IMPROVEMENT: document post type as checkbox list = 2.2 = * IMPROVEMENT: added upPrev configuration link to admin bar * IMPROVEMENT: added registered custom posts * BUGFIX: fixed error if the behavior of boxing display for html element * BUGFIX: fixed wrong method post_type selection = 2.1.2 = * BUGFIX: remove margin-top for title element * IMPROVEMENT: added display taxonomies limit = 2.1.1 = * BUGFIX: When they scroll down again, the box flies out, which -- on a small screen -- can obscure a big chunk of the content. [forum](http://wordpress.org/support/topic/plugin-upprev-return-to-top-of-post-after-clicking-x) = 2.1 = * IMPROVEMENT: added box width option * IMPROVEMENT: added box bottom and side margin option * IMPROVEMENT: added transient cache for scripts and styles * IMPROVEMENT: added actions: **iworks_upprev_box_before** and **iworks_upprev_box_after**, called inside the upPrevBox, before and after post. Now you can add some elements to upPrevBox without plugin modification. * IMPROVEMENT: added option to display (or not) close button * IMPROVEMENT: added post type choose: post, page or any. * IMPROVEMENT: added random order for displayed posts = 2.0.1 = * BUGFIX: fixed translation load * IMPROVEMENT: added show box header option * IMPROVEMENT: added stamp for cache key * IMPROVEMENT: added Polish translation by [Marcin Pietrzak](http://iworks.pl/) = 2.0 = * BUGFIX: fixed display upPrev box in case of an equal height of the window and the document * IMPROVEMENT: added to use transient cache * IMPROVEMENT: added thumbnail width (height depend of theme thumbnail) * IMPROVEMENT: added prevent some options if active theme do not support it * IMPROVEMENT: added activation & deactivation hooks (to setup defaults and remove config ) * BUGFIX: remove all filters the_content for post in upPrev box = 1.0.1 = * BUGFIX: added post_date as parametr, to get real previous post * BUGFIX: javascript error * IMPROVEMENT: added header for simple method = 1.0 = * INIT: copy and massive refactoring of plugin [upPrev Previous Post Animated Notification](http://wordpress.org/extend/plugins/upprev-nytimes-style-next-post-jquery-animated-fly-in-button/) == Upgrade Notice == = 4.0 = Added simple configuration screen. Rebuild option page to easier configuration. Created PRO version. = 3.3.13 = Add Czech translation. = 3.3.12 = Fixed using YARPP 4.x. Check upPrev compatibility with WordPress 3.5. = 3.3.11 = Add Bulgarian translation. = 3.3.10 = Add Spanish translation. = 3.3.9 = Add Russian translation. = 3.3.8 = Critical update to prevent site crash! = 3.3.3.1 = Add Brazilian Portuguese translation. = 3.0 = Add GA tracking for display and click. Add filter and action to modify result. = 2.3 = Add YARPP integration. = 2.1 = Add support to custom post type. = 2.1 = Add some appearance, cache improvements. Scripts and styles optimization. New order available: random. = 2.0.1 = Add a polish translation. Fix cache refresh missing after change plugin configuration. = 2.0 = More configuration options. Uses transient cache to store results. Optimization activation & deactivation process.