WordPress.org

Ready to get started?Download WordPress

Forums

Vertical scroll recent post
Showing entire post instead of title (2 posts)

  1. Marinko
    Member
    Posted 1 year ago #

    Hi,

    Is it possible to somehow tweak Your plugin to show up just one post from a category (lets say scheduled posts) in full content?

    I need something that will scroll entire single post content, in sidebar.

    Thanks!

    http://wordpress.org/extend/plugins/vertical-scroll-recent-post/

  2. anatayGrande
    Member
    Posted 1 year ago #

    uhm you can do that by... going to the plugin's php file and changing
    this code snippet:

    foreach ( $vsrp_data as $vsrp_data )
    		{
    			$vsrp_post_title = $vsrp_data->post_title;
    			$get_permalink = get_permalink($vsrp_data->ID);
    			$vsrp_post_title = substr($vsrp_post_title, 0, 130);
    
    			$dis_height = $dis_num_height."px";
    			$vsrp_html = $vsrp_html . "<div class='vsrp_div' style='height:$dis_height;padding:2px 0px 2px 0px;'>";
    			$vsrp_html = $vsrp_html . "<a href='$get_permalink'>$vsrp_post_title</a>";
    			$vsrp_html = $vsrp_html . "$content";
    			$vsrp_html = $vsrp_html . "</div>";
    
    			$vsrp_post_title = mysql_real_escape_string(trim($vsrp_post_title));
    			$get_permalink = mysql_real_escape_string($get_permalink);
    			$vsrp_x = $vsrp_x . "vsrp_array[$vsrp_count] = '<div class=\'vsrp_div\' style=\'height:$dis_height;padding:2px 0px 2px 0px;\'><a href=\'$get_permalink\' style=\'\'>$vsrp_post_title</a></div>'; ";
    			$vsrp_count++;
    
    		}

    to....

    foreach ( $vsrp_data as $vsrp_data )
    		{
    			$content = $vsrp_data->post_content;
    			$dis_height = $dis_num_height."px";
    			$vsrp_html = $vsrp_html . "<div class='vsrp_div' style='height:$dis_height;padding:2px 0px 2px 0px;'>";
    			$vsrp_html = $vsrp_html . "<a href='$get_permalink'>$vsrp_post_title</a>";
    			$vsrp_html = $vsrp_html . "$content";
    			$vsrp_html = $vsrp_html . "</div>";
    			$vsrp_x = $vsrp_x . "vsrp_array[$vsrp_count] = '<div class=\'vsrp_div\' style=\'height:$dis_height;padding:2px 0px 2px 0px;\'><p>$content</p></div>'; ";
    			$vsrp_count++;
    
    		}

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.