Support » Plugin: Awesome Filterable Portfolio » How can i limit to display portfolio items ?

  • Hello,

    Please check the below point i want to update in the plugin

    This plugin is awesome but needs some changes, please help me for the same.

    1) How can i limit the display of the portfolio items, lets say home page only 12 items to be display

    2) how can i display active category as default, lets say i have 4 category but while loading i want to display with active of 3rd category so rest of all the images will not display and user can manually select the category what he wants to see

    Thanks
    Ashish Bhatt

    https://wordpress.org/plugins/awesome-filterable-portfolio/

Viewing 2 replies - 1 through 2 (of 2 total)
  • @ashishbhatt2005

    Hi,
    Did you find a solution for this? I want to achieve the same (limited items on home page)

    Thanks
    jidnyasa

    Hi all,
    Do the following steps
    #1: Copy afp_shortcode()
    #2: Paste it with another name and just change

    $items = $wpdb->get_results(‘SELECT * FROM ‘ . $wpdb->prefix . ‘afp_items ORDER BY ‘ . $orderby .$lim);

    . and initialize $lim with a value like 10 in afp.php page.
    #3: Then make another shortcode.
    #4: User the new shortcode where you want to show few items like 10. and the original shortcode to show all items.

    Thanks and enjoy.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How can i limit to display portfolio items ?’ is closed to new replies.