WordPress.org

Ready to get started?Download WordPress

Plugin Directory

upPrev

Display cool, animated flyout or fade box with related content. Just like New York Times.

upPrev is turn on, but ther is no box, what now?

First of all, check your template. Rof proper work plugin requires function wp_head and wp_footer. If your template dont use one of theme, upPrev will not work. If you cant check this action in your templates manualy 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:

  • Brazilian Portuguese
  • Bulgarian
  • Czech
  • French
  • German
  • Hebrew
  • Italian
  • Polish
  • Romanian
  • Russian
  • Simplified Chinese
  • Spanish
  • Turkish
  • Vietnamese

How to add default image to post without thumbnail?

Use the iworks_upprev_image action:

<?php
add_action( 'iworks_upprev_image' , 'default_image' );
function default_image()
{
    return '<img src="image.png" alt="" />';
}

How to change post thubnail to other image?

Use the iworks_upprev_get_the_post_thumbnail filter:

<?php
add_filter( 'iworks_upprev_get_the_post_thumbnail' , 'change_thumbnail' );
function change_thumbnail( $image )
{
    return '<img src="image.png" alt="" />';
}

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?

Switch settings to Advance and go to 'Other' tab to fill "Custom CSS" field.

Example:

/* header */
#upprev_box h6 a
{
    color: red;
}
/* header link: mouse over */
#upprev_box h6 a:hover
{
    color: black;
}
/* headera link: visited */
#upprev_box h6 a:visited
{
    color: gray;
}
/* container for title, thumbnail and excerpt */
#upprev_box .upprev_excerpt
{
    font-size: 8px;
}
/* excerpt */
#upprev_box .upprev_excerpt p
{
    line-height: 1em;
}
/* previous post link */
#upprev_box .upprev_excerpt p a
{
    text-transform: uppercase;
}
/* previous post link: mouse over */
#upprev_box .upprev_excerpt p a:hover
{
    text-decoration: underline;
}
/* previous post link: visited */
#upprev_box .upprev_excerpt p a:visited
{
    color: gray;
}
/* thumbnail image */
#upprev_box .upprev_thumb
{
    padding: 1px;
    border: 1px dotted red;
}
/* close button */
#upprev_close
{
    opacity: .7;
}

Need more snippets?

Visit: upPrev: snippet archive

Requires: 3.3 or higher
Compatible up to: 3.8.3
Last Updated: 2014-4-1
Downloads: 83,828

Ratings

4 stars
4.2 out of 5 stars

Support

2 of 4 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,2,2 100,2,2 50,2,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 50,2,1 100,1,1 100,1,1 100,1,1 100,1,1 100,3,3 75,4,3
100,2,2
100,3,3 100,2,2 100,1,1 100,1,1 80,5,4 100,1,1 100,1,1 100,1,1
100,1,1 100,3,3 100,3,3
50,2,1
50,2,1 100,3,3 100,2,2 100,1,1 100,2,2
100,2,2 100,1,1 0,1,0 100,4,4
100,4,4
100,2,2 100,1,1 100,1,1 100,5,5 100,1,1
100,3,3
100,1,1
100,1,1
100,1,1 100,1,1 100,1,1
100,1,1
100,1,1 100,3,3