Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    Yes Possible. Just follow these steps:

    1. goto plugin folder, file include/lcp-catlistdisplayer.php & then open it.
    2. First remove or comment this IF(condition): if ( empty($this->params[‘no_post_titles’]) || !empty($this->params[‘no_post_titles’]) && $this->params[‘no_post_titles’] !== ‘yes’ ) {
    $lcp_display_output .= $this->get_post_title($single);
    }
    (Line number: 244)

    3. Search this code: $lcp_display_output .= $this->get_thumbnail($single);
    4. Add this code below $this->get_thumbnail($single): $lcp_display_output .= $this->get_post_title($single);
    (line number: 280)

    like this: $lcp_display_output .= $this->get_thumbnail($single);
    $lcp_display_output .= $this->get_post_title($single);

    5. Save file & Done.

    6. Optional: To view add this shortcode: [catlist id=20 thumbnail=yes]

    I hope it’s working.
    But If you do this get_post_title permanately remove.

    Thanks.

    Forum: Plugins
    In reply to: [Favorites] List

    Hi,

    For List of favorite posts you just paste the below code where you want to view faith. Post like your page or your template.

    You can check this site as an example: http://www.itsoneandonly.com/
    Save Item and for view list of item GOTO ‘Whislist’ menu.

    Thanks…

    <!—— CODE ——->

    $favorites = get_user_favorites();
    if ( $favorites ) : // This is important: if an empty array is passed into the WP_Query parameters, all posts will be returned
    $paged = ( get_query_var(‘paged’) ) ? get_query_var(‘paged’) : 1; // If you want to include pagination
    $favorites_query = new WP_Query(array(
    ‘post_type’ => ‘post’, // If you have multiple post types, pass an array
    ‘posts_per_page’ => -1,
    ‘ignore_sticky_posts’ => true,
    ‘post__in’ => $favorites,
    ‘paged’ => $paged // If you want to include pagination, and have a specific posts_per_page set
    ));
    if ( $favorites_query->have_posts() ) : while ( $favorites_query->have_posts() ) : $favorites_query->the_post();
    echo get_the_title();
    endwhile;
    next_posts_link( ‘Older Favorites’, $favorites_query->max_num_pages );
    previous_posts_link( ‘Newer Favorites’ );
    endif; wp_reset_postdata();
    else :
    echo “Please select an item for favorite post list”;
    endif;

Viewing 2 replies - 1 through 2 (of 2 total)