WordPress.org

Ready to get started?Download WordPress

Forums

upPrev
[resolved] Customizable static popup content on selected posts (3 posts)

  1. shk.naim
    Member
    Posted 2 years ago #

    Hi,

    A great plugin indeed!
    I'm wondering whether it's possible to show changeable static content in the popup rather than next post. It's one of my clients requirement.

    I'm expecting some positive responses!

    Thanks..

    http://wordpress.org/extend/plugins/upprev/

  2. Marcin Pietrzak
    Member
    Plugin Author

    Posted 2 years ago #

    You have three ways to do it.

    1. Add custom post "my client static content" and setup upPrev to display only this custom post type without 'Match post type'.

    2. use action 'iworks_upprev_box_before' to add content before item(s) or use action 'iworks_upprev_box_after' to add content after item(s)

    3. use filter 'iworks_upprev_box_item' to modify any item (trunk/3.0 version), see example

    add_filter( 'iworks_upprev_box_item', 'item_eaeaeaeae' );
    
    function item_eaeaeaeae( $item )
    {
        return 'item:'.$item;
    }
  3. shk.naim
    Member
    Posted 2 years ago #

    Thanks buddy!
    I was able to get the expected result from your suggestions.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags